Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse is not opening

 
prasad regula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded eclipse-SDK-3.5.2-win32, and unzipped using winzip. I clicked on the icon, the eclipse ide got opened. Things were fine. I downloaded Apache studio as a WSDL editor. Later I installed eclipse plugins for the Apache studio. As it didnt work, I decided to delete eclipse and reinstall on a clean slate. Now I unzipped eclipse again and tried to open it. Now eclipse is not opening. It is giving an message box "An error has occured. See the log file in the configuration folder". As I opened the log file, this is what I have found.

!SESSION 2010-05-05 11:38:50.001 -----------------------------------------------
eclipse.buildId=M20100211-1343
java.version=1.3.1_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 4 0 2010-05-05 11:38:50.516
!MESSAGE Startup error
!STACK 1
java.lang.NoSuchMethodError
at org.osgi.framework.BundleException.<init>(BundleException.java:149)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:207)
at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:649)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:298)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
 
prasad regula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just found that jvm version 1.3 is running. as I typed java -version. I have hot installed 1.3. I am not sure where it has picked it from.
 
prasad regula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How should I upgrade my jvm from 1.3 to 1.6. My path and classpath are being shown tyo 1.6 only. I dont know where it is picking this 1.3 from.
 
prasad regula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the solution to upgrade the jvm, do the following
Place the JAVA_HOME/bin and <other classpath statements as rt.jat, tools.jar> at the begining of the path statement. As it is placed in the end, as the system reads the path variable, if it comes across 1.3 in between it accepts 1.3 as its jvm version. So it overrides. To avoid this issue, place the java bin path and classpath statements at the begining of the path statement. This will change the jvm to the version you wanted it to be.
 
Prasanna Mondkar
Greenhorn
Posts: 1
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Small addition ...
If PATH variable does not contains older JDK/JRE entry (here, 1.3) before the newer one, but the issue still persists then, most probably, an older version of java.exe
exists in System32 of Windows (happens when you install an older JDK on windows).
Further, since "System32" is at the beginning of the PATH, and hence, before JDK entry, the "java.exe" placed in it is picked when executed.

Removing the file C:\windows\System32\java.exe file should do the trick.



 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unlike, say, Internet Explorer you can have multiple versions of Java on a Windows computer. Although 1.3 is so far past end-of-life that even Oracle doesn't use it anymore, and they held onto it for years.

It's fairly easy to select a JVM if you want to launch Eclipse in a command shell or .BAT file - just set the JAVA_HOME directory to point to the JDK directory, and add "%JAVA_HOME%\bin" to your PATH.

However, you probably want to launch it from the GUI. For that, go to the WIndows Control Panel/System applet and set the system or user environment variables for the JAVA_HOME and PATH you want to be your default Java version. You've probably already got settings for Java 1.3 in there, so get rid of them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic