You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it not possible to pass arguments to the Java compiler on a project with no build tools? I just want to pass -release 9 to java compiler to support older JVMs. I can't find anything in settings.
Activity
rgrunber commentedon Feb 8, 2022
For the
-releaseoption, you should be able to useorg.eclipse.jdt.core.compiler.compliance=9in a settings file. See https://github.com/redhat-developer/vscode-java/wiki/Settings-Global-Preferences for more details. I'm not sure if there's a setting that allows one to pass arbitrary compiler options. CC'ing @snjeza in case there is a way.rgrunber commentedon Feb 8, 2022
See #2304 (comment) for the more general way to do this. You'd need to install vscode-java-debug