Skip to content

Commit

Permalink
Open requested system packages for javac
Browse files Browse the repository at this point in the history
Signed-off-by: Snjezana Peco <[email protected]>
  • Loading branch information
snjeza authored and rgrunber committed Dec 30, 2024
1 parent d1b63d6 commit 266537c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/javaServerStarter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ function prepareParams(requirements: RequirementsData, workspacePath, context: E
'jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED',
'--add-opens',
'jdk.compiler/com.sun.tools.javac.resources=ALL-UNNAMED',
'--add-opens',
'jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED',
'--add-opens',
'jdk.zipfs/jdk.nio.zipfs=ALL-UNNAMED',
'--add-opens',
'java.compiler/javax.tools=ALL-UNNAMED',
'--add-opens',
'java.base/java.nio.channels=ALL-UNNAMED',
'--add-opens',
'java.base/sun.nio.ch=ALL-UNNAMED',
'-DICompilationUnitResolver=org.eclipse.jdt.core.dom.JavacCompilationUnitResolver',
'-DCompilationUnit.DOM_BASED_OPERATIONS=true',
'-DAbstractImageBuilder.compilerFactory=org.eclipse.jdt.internal.javac.JavacCompilerFactory'
Expand Down

0 comments on commit 266537c

Please sign in to comment.