trouble with eclipse

Guys I have a little problem installing Eclipse on my machine I am getting the below error. Seems to be a common problem when I googled it but dint find any solutions that worked for me, any one has suggestions?

This is how the initial part of the error log file looks.......I think it is because of the plugins directory but what I dont understand is I do have plugins directory.

!SESSION 2006-09-08 01:11:23.687 --

eclipse.buildId=M20060629-1905

java.version=1.4.1_07

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 2006-09-08 01:11:24.562

!MESSAGE An error occurred while automatically activating bundle org.eclipse.core.runtime.compatibility (25).

!STACK 0org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.plugins.CompatibilityActivator.start() of bundle org.eclipse.core.runtime.compatibility.

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1014)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:970)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:256)

at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.preFindLocalClass(EclipseLazyStarter.java:86)

at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:409)

at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188)

at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:339)

at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:391)

at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:352)

at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)

at java.lang.ClassLoader.loadClass(ClassLoader.java:255)

at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:276)

at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1245)

at org.eclipse.core.internal.runtime.CompatibilityHelper.getPluginDescriptor(CompatibilityHelper.java:63)

at org.eclipse.core.runtime.Plugin.initializeDescriptor(Plugin.java:706)

at org.eclipse.core.runtime.Plugin.start(Plugin.java:692)

at org.eclipse.core.internal.runtime.PlatformActivator.start(PlatformActivator.java:39)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:995)

at java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:989)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:970)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:329)

at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1037)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:573)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)

at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:455)

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)

Caused by: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Plugin

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Class.java:1627)

at java.lang.Class.privateGetPublicMethods(Class.java:1655)

[4443 byte] By [saranatora] at [2007-10-3 4:33:04]
# 1
Which version of Eclipse are you trying to install? I think (read: guess)that the 1.4.1 JRE version is a bit too old for it.kind regards,Jos
JosAHa at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 2
u were rit.....uff it was stupid of me not to have see that....ny ways thanks man
saranatora at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 3
Major keyboard catastrophe!
Aleena at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 4
I have exactly the same problem with Eclipse. Installed version of Java is 1.5.0_10, butEclipse error log file says its java.version=1.4.1_03How can I get rid of the old version of Java?
dalibora at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 5
I cannot find that old version of Java in Add/Remove Programs....
dalibora at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 6
You can change the active / preferred JRE in eclipse's preferences settings.Pull down the Window menu then > Preferences.Scroll down to the Java section and then to Installed JRE's ... You can add one if it doesn't know about it already.Hope this
puckstopper31a at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 7
I cannot even open Eclipse, but when I try to run startup.jar - Eclipse starts!? There is only one JRE installed that is reckognized by Eclipse....and it is jre1.5.0_10
dalibora at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 8

> I cannot even open Eclipse, but when I try to run

> startup.jar - Eclipse starts!? There is only one JRE

> installed that is reckognized by Eclipse....and it is

> jre1.5.0_10

your eclipse.ini is probably pointing explicitly at one JRE, and your OS runs java with a different one. all the eclipse executable does is start a JVM against startup.jar (nice tip for the "how to convert .class to .exe" brigade.....)

georgemca at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 9
So, what should I do to solve the problem?
dalibora at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 10

I can't for the life of me remember how to tell eclipse to start up with a particular JVM. I know it can be done, because I've done it. if I remember I'll get back to you, but your best bet is to slide over to eclipse.org and have a look through their wiki and (more usefully) the newsgroups

georgemca at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 11
I think you can (and in fact, should) use the -vm argument to tell eclipse which vm to use.
YoGeea at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 12

> your best bet is to slide over to eclipse.org and have a look through

> their wiki and (more usefully) the newsgroups

I think your bestest best bet is to remove all the installed JREs from

your computer and install a Java 1.5 or 1.6 JRE. Only then install the

latest Eclipse version.

kind regards,

Jos

JosAHa at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 13
this question has annoyed me. there was a time I could answer this without even thinking. grrrrrI'll be back...............
georgemca at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 14
check your JAVA_HOME environment variable. it needs to point to your JDK install path. For example, mine is "c:\JDKs\1.5.0_06"
Jasprea at 2007-7-14 22:36:38 > top of Java-index,Java Essentials,Java Programming...
# 15
> check your JAVA_HOME environment variable. it needs> to point to your JDK install path. For example, mine> is "c:\JDKs\1.5.0_06"you can persuade eclipse to start up with whatever JVM you want. I just can't remember how :-(
georgemca at 2007-7-21 10:35:17 > top of Java-index,Java Essentials,Java Programming...
# 16

> check your JAVA_HOME environment variable. it needs to point to

> your JDK install path. For example, mine is "c:\JDKs\1.5.0_06"

No, that's not it. Eclipse doesn't need a JDK; it manages fine with just

a JRE installed.

kind regards,

Jos

ps. other plugins may have different requirements though.

JosAHa at 2007-7-21 10:35:17 > top of Java-index,Java Essentials,Java Programming...
# 17

> No, that's not it. Eclipse doesn't need a JDK; it

> manages fine with just

> a JRE installed.

sorry, I thought Eclipse interrogated the JAVA_HOME var at startup as a hint.

http://prod1.cleancode.com/spindle/infocenter/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/running_eclipse.htm

Jasprea at 2007-7-21 10:35:17 > top of Java-index,Java Essentials,Java Programming...
# 18
What does 'java -version' tell you?
bckrispia at 2007-7-21 10:35:17 > top of Java-index,Java Essentials,Java Programming...
# 19

> > No, that's not it. Eclipse doesn't need a JDK; it manages fine with

> > just a JRE installed.

>

> sorry, I thought Eclipse interrogated the JAVA_HOME

> var at startup as a hint.

No it's much easier than that: given the PATH variable Eclipse tries to

find a JRE. If it succeeds its Java part will start up. No magic, nothing

hidden up it's sleeves ;-) Anyway, there's no JDK involved.

kind regards,

Jos

JosAHa at 2007-7-21 10:35:17 > top of Java-index,Java Essentials,Java Programming...
# 20

I faced the similar issue. install a higher version of JRE. remove older version. I tried starting eclipse and it gave error "There is no JRE" and said it was checking in c:\eclipse\jre\bin\javac.exe. But there was no folder named JRE in the Eclipse folder. I then went into the new Java SDK folder(in my case c:\j2sdk1.4.2_13) and copied all folders from there and pasted it in the c:\Eclipse folder and it worked correctly. I would say try this out if othing else works for you.

tommyjosea at 2007-7-21 10:35:17 > top of Java-index,Java Essentials,Java Programming...
# 21

I've had the same problem. I thought I had only one installed JDK (1.4.2_09), but I checked with java -version that answered 1.4.1_xx.

Then I remembered that I re-installed Oracle after the JDK... It uses JDK 1.4.1_xx. When I installed Oracle, it modified my Path, placing its paths before mine.

So I only had to place my C:\java\j2sdk1.4.2_09\bin on the first place and then it worked.

Annnea at 2007-7-21 10:35:17 > top of Java-index,Java Essentials,Java Programming...