Skip to content

Commit 266537c

Browse files
snjezargrunber
authored andcommitted
Open requested system packages for javac
Signed-off-by: Snjezana Peco <[email protected]>
1 parent d1b63d6 commit 266537c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/javaServerStarter.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ function prepareParams(requirements: RequirementsData, workspacePath, context: E
135135
'jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED',
136136
'--add-opens',
137137
'jdk.compiler/com.sun.tools.javac.resources=ALL-UNNAMED',
138+
'--add-opens',
139+
'jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED',
140+
'--add-opens',
141+
'jdk.zipfs/jdk.nio.zipfs=ALL-UNNAMED',
142+
'--add-opens',
143+
'java.compiler/javax.tools=ALL-UNNAMED',
144+
'--add-opens',
145+
'java.base/java.nio.channels=ALL-UNNAMED',
146+
'--add-opens',
147+
'java.base/sun.nio.ch=ALL-UNNAMED',
138148
'-DICompilationUnitResolver=org.eclipse.jdt.core.dom.JavacCompilationUnitResolver',
139149
'-DCompilationUnit.DOM_BASED_OPERATIONS=true',
140150
'-DAbstractImageBuilder.compilerFactory=org.eclipse.jdt.internal.javac.JavacCompilerFactory'

0 commit comments

Comments
 (0)