1 2 Previous Next 17 Replies Latest reply: Apr 30, 2007 6:00 AM by 807596 RSS

    get an error when run eclipse

    807596
      Hi

      after download sdk1.3, sdkee1.3.1, eclipse2.0.2 and when run eclipse i got the following error

      JVM terminated. Exit code=2
      c:\WINNT\syste,32\javaw.exe
      -cp E:\program Files\eclipse\startup.jar org.eclipse.core.launcher.main
      -os win32
      -ws win32
      -arch x86
      -showsplash e:\program files\eclipse\eclipse.exe -showsplash 600

      pls tell me what is the problem
        • 1. Re: get an error when run eclipse
          807596
          Hope you must have got the solution by now.
          It seems like more than one version of JDK causes problems.

          Keep one and remove the others.

          A.H
          • 2. Re: get an error when run eclipse
            807596
            hi,
            even i am having the problems in using eclipse(linux platform)
            i get the follownig errror...
            Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main

            and in an error window following message is diplayed...
            JVM terminated. Error code = 1.
            /usr/local/jdk1.3/bin/java
            -cp <root>/eclipse/./startup.jar org.eclipse.code.launcher.Main
            -os linux
            -ws gtk
            -arch x86
            -showsplash <root>/eclipse/./eclipse -showsplash 600

            Can anybody help me what i should do?

            regards
            pankaj
            • 3. Re: get an error when run eclipse
              807596
              hi,
              even i am having the problems in using eclipse(linux platform)
              i get the follownig errror...
              Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main

              and in an error window following message is diplayed...
              JVM terminated. Error code = 1.
              /usr/local/jdk1.3/bin/java
              -cp <root>/eclipse/./startup.jar org.eclipse.code.launcher.Main
              -os linux
              -ws gtk
              -arch x86
              -showsplash <root>/eclipse/./eclipse -showsplash 600

              Can anybody help me what i should do?

              regards
              pankaj
              • 4. Re: get an error when run eclipse
                807596
                Please read Angel_Heart 's reply.
                This thing happens when you have multiple Java runtimes installed.
                Pls keep one Java Runtime Environment, preferably the latest one.
                • 5. Re: get an error when run eclipse
                  807596
                  This thing happens when you have multiple Java
                  runtimes installed.
                  I've only the latest one 1.4.2-03 JRE, from Sun J2SDK but I still
                  get the same error.

                  PS. I am running Fedora Core 2 Test 1 Linux distribution.

                  regards
                  • 6. Re: get an error when run eclipse
                    807596
                    Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main
                    This speaks for the classpath argument's being not correctly set.
                    • 7. Re: get an error when run eclipse
                      807596
                      As part of your executable command include arguments for VM followed by location of the VM you would like to use as shown below:
                      eclipse -vm "C:\java\jdk\bin\javaw"
                      • 8. Re: get an error when run eclipse
                        807596
                        Yes this works, but....

                        If your SDK is installed under the c:\program files\...., then the program will retrun an error saying that :
                        A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:
                        C:\program
                        [OK]

                        I manually copied my SDK to my root, and now start my eclipse with the following info in a Bat-file:

                        eclipse.exe -vm C:\j2sdk_nb\j2sdk1.4.2\jre\bin\java.exe

                        My SDK has been installed in a co-bundle with Netbeans...

                        Good luck with it... Svens
                        • 9. Re: get an error when run eclipse
                          807596
                          An other possibility (for Windows):

                          Write in the command-console "java -jar startup.jar" (the File startup.jar is in the eclipse-directory). Now you can read an exception-message.

                          There is a path to the Registry, and you can simple change the registry (run "regedit"), to the value given in the message.
                          • 10. Re: get an error when run eclipse
                            807596
                            Thats it!
                            My Eclipse 3.0 worked fine with 1.4.2_03 until I installed JBuilder7SE.
                            I had the same Error-Message. But the trick with the registry worked excellent.

                            thx
                            • 11. Re: get an error when run eclipse
                              807596
                              I suggestion you can replace the eclipse 2.0.2 with eclipse 3.0.1 , it can work out the problem.

                              I already have deleted all JDK in my PC and manually set the JDK, the problem also happen .

                              So i use eclipse 3.0.1
                              • 12. Re: get an error when run eclipse
                                807596
                                Hi,

                                I had the same problem. I had installed eclipse on D:\, then found that D:\program files\ had 2 versions of JRE (1.5 and 1.4). I could not uninstall the 1.5 version.

                                I found that adding j2sdk1.4.2_05\jre\bin on my Path variable then allowed me to launch Eclipse directly by clicking on the Eclipse.exe. Otherwise I had to start eclipse via the command prompt :

                                eclipse.exe -vm d:\j2sdk1.4.2_05\jre\bin\java.exe

                                where I explicitly defined the path of the jre to be used.
                                • 13. Re: get an error when run eclipse
                                  807596
                                  When use install JRE 1.3 the following Windows registry key is set
                                  HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment
                                  CurrentVersion=1.3

                                  Change it back to
                                  CurrentVersion=1.4

                                  -------------------------------------------------------------------------
                                  I can duplicate the problem just by changing this value
                                  • 14. Re: get an error when run eclipse
                                    807596
                                    error run 18 which the solution?
                                    1 2 Previous Next