LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   eclipse startup problem (https://www.linuxquestions.org/questions/fedora-35/eclipse-startup-problem-623375/)

angle2009 02-23-2008 05:38 PM

eclipse startup problem
 
hi guys
i wanna ask for help
when i installed eclipse and then i run the program this message appeared to me and i have no choice to enter the program so what is the expected problem :Pengy:

Quote:

-JVM terminated. Exit code=-1
-Xms40m
-Xmx256m
-XX:MaxPermSize=128m
-Dosgi.sharedConfiguration.area=/usr/lib/eclipse/configuration
-Djava.class.path=/usr/share/eclipse/startup.jar
-os linux
-ws gtk
-arch x86
-showsplash /usr/share/eclipse//plugins/org.eclipse.platform_3.3.0.v20070613/splash.bmp
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
--launcher.library /usr/lib/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070606/eclipse_1017a.so
-startup /usr/share/eclipse/startup.jar
-vm /usr/lib/jre/bin/../lib/i386/client/libjvm.so
-vmargs
-Xms40m
-Xmx256m
-XX:MaxPermSize=128m
-Dosgi.sharedConfiguration.area=/usr/lib/eclipse/configuration
-Djava.class.path=/usr/share/eclipse/startup.jar

budword 02-24-2008 02:24 AM

What version of java do you have installd ?

b0uncer 02-24-2008 02:42 AM

Eclipse is built, as far as I understand, mostly on Java so basically all you need to run it is a working Java Runtime Environment (JRE). Can you run other Java apps?

To determine the version, run
Code:

java -version
which prints out something like
Quote:

java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)
Your Java version might be something else, though, and it's perfectly OK as long as it's recent enough.

pobbz 02-25-2008 04:15 AM

Hello.

To me it seems that the JVM is crashing. I had similar problems about a year ago; I couldn't start Eclipse because of JVM segfaulting. Eclipse should create crash dump somewhere, but I can't for the life of me remember where they get created. You might want to check at least under /tmp and under your workspace directory.

When/if you find the crash dump (it's basically a stack trace sort of thing) you might want to post it here, because usually it indicates some shared library (.so) where the crash occurred. Oh, on the second thought, don't post it directly, as it tends to be quite long. Instead make an attachment (if this forum allows attachments, I don't know as I rarely use this forum).

angle2009 02-26-2008 03:09 PM

for budword and b0uncer
the output of java version

java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

angle2009 02-26-2008 03:42 PM

for pobbz
i navigated the eclipse directory under /usr/lib/eclipse
and i typed ./eclipse
and i found on my shell this

Quote:

[root@localhost eclipse]# ./eclipse
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/equinox/launcher/JNIBridge (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/equinox/launcher/Main (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)


pobbz 02-28-2008 03:27 AM

Hello.

Ok, judging form what you saw in console, it actually doesn't seem to be a JVM crash. Instead, it seems that there's something wrong with the Eclipse code.

However, you are trying to run Eclipse version 3.3 on a 1.4 series Java virtual machine. I think that you should check the system requirements for Eclipse 3.3. It might well be that your Java version is too old to run Eclipse 3.3 -- in which case you need to update you Java.

angle2009 02-29-2008 04:40 PM

Hello pobbz,
yah you are right my problem successfully solved when i installed new jdk
and now my java version is
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

thanks alot


All times are GMT -5. The time now is 03:09 PM.