Tuesday, May 31, 2011

How to Change the Java Version in the Eclipse.

Lots of time, peoples faces some issue while configuring the Maven in the Eclipse, stating, Eclipse is running in the JRE now in JDK and the mavin needs to have JDK Configured so that i can do its job just fine.

We need to understand that Eclipse will use the JDK settings only for the projects which it uses. but for the plugins it does not set the JDK property for them. It simply gives the JRE on what it runs.

To make the Eclipse to run in the JDK instead of JRE is specified below.

Step 1: Go to the Eclipse home directory and search for the file eclipse.ini.
Step 2: Edit the file using notepad or Text-pad or any Word processor.
Step 3: Add the below lines in between the Configuration

-vm
C:\Java\jdk1.6.0_25\bin\javaw.exe


Step 4: Restart the Eclipse and now you are done making the Eclipse to run in the JDK instead of JRE

SOURCE: http://wiki.eclipse.org/Eclipse.ini

No comments:

Post a Comment