Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "4.7AndJava9"
m |
m |
||
Line 7: | Line 7: | ||
#Under -vmargs, add "--add-modules=ALL-SYSTEM". By now, if you should be able to launch eclipse. | #Under -vmargs, add "--add-modules=ALL-SYSTEM". By now, if you should be able to launch eclipse. | ||
#If you encounter an exception such as IllegalAccessException or InaccessibleObjectException, add "--permit-illegal-access" additionally after the -vmargs. | #If you encounter an exception such as IllegalAccessException or InaccessibleObjectException, add "--permit-illegal-access" additionally after the -vmargs. | ||
+ | |||
+ | A sample eclipse.ini file is given below: | ||
+ | <code> | ||
+ | -startup | ||
+ | plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar | ||
+ | --launcher.library | ||
+ | plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.500.v20170531-1133 | ||
+ | --launcher.defaultAction | ||
+ | openFile | ||
+ | --launcher.appendVmargs | ||
+ | -vm | ||
+ | D:\JDKs\jdk-9-ea+169_windows-x64_bin\jdk9\jdk-9\bin\ | ||
+ | -vmargs | ||
+ | --add-modules=ALL-SYSTEM | ||
+ | --premit-illegal-access | ||
+ | -Dosgi.requiredJavaVersion=1.8 | ||
+ | -Xms256m | ||
+ | -Xmx1024m | ||
+ | </code> | ||
+ | |||
Please note the following: | Please note the following: | ||
− | + | *Repeating that this page describes just how to use a Java 9 JDK to launch eclipse 4.7 - nothing more and nothing less. | |
− | + | *Java 9 features are not shipped standard with 4.7, you need to install that separately from [https://marketplace.eclipse.org/content/java-9-support-beta-oxygen MarketPlace] | |
− | + | *You need not launch eclipse with a Java 9 JDK to build Java 9 code in Eclipes; you can still launch with JDK 8, but use the patch for Java 9 from the above link. | |
− | + | *Java 9 is still in early access, and hence the options are yet to be stable. It is possible that the info given here will change over time. Currently verified with Java 9 EA 169. | |
This Page is Still under Construction | This Page is Still under Construction |
Revision as of 03:46, 2 June 2017
Launching Eclipse 4.7 with Java 9: You have downloaded an early access version of Java 9 and would like to launch eclipse Oxygen 4.7 with this version. This page describes how to do this. Since Java 9 comes in a modularized form, some initial configuration needs to be done in the eclipse configuration file eclipse.ini.
add the following lines (without the quotes) in eclipse.ini file
- add -vm <path to java> : for example "-vm D:\JDKs\jdk-9-ea+169_windows-x64_bin\jdk9\jdk-9\bin\" - This is the standard procedure for running with any JDK other than the standard on
- Add the line "-vmargs" if not present
- Under -vmargs, add "--add-modules=ALL-SYSTEM". By now, if you should be able to launch eclipse.
- If you encounter an exception such as IllegalAccessException or InaccessibleObjectException, add "--permit-illegal-access" additionally after the -vmargs.
A sample eclipse.ini file is given below:
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.500.v20170531-1133
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
D:\JDKs\jdk-9-ea+169_windows-x64_bin\jdk9\jdk-9\bin\
-vmargs
--add-modules=ALL-SYSTEM
--premit-illegal-access
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
Please note the following:
- Repeating that this page describes just how to use a Java 9 JDK to launch eclipse 4.7 - nothing more and nothing less.
- Java 9 features are not shipped standard with 4.7, you need to install that separately from MarketPlace
- You need not launch eclipse with a Java 9 JDK to build Java 9 code in Eclipes; you can still launch with JDK 8, but use the patch for Java 9 from the above link.
- Java 9 is still in early access, and hence the options are yet to be stable. It is possible that the info given here will change over time. Currently verified with Java 9 EA 169.
This Page is Still under Construction