Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with starting Eclipse

 
Mike Firkser
Ranch Hand
Posts: 249
Java Oracle PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just downloaded Eclipse, unzipped the files and clicked the .exe file. I got the splash screen, then an error message which refered me to logfile. Two exceptions on it are:

java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory and
java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler

Any help will be appreciated.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're trying to run Eclipse 3.x using JDK 1.3. It requires 1.4, even though the FAQ doesn't say so. Eclipse ought to check for this as soon as it starts up, but it doesn't seem to.

Anyway, make sure that "java" from JDK (or JRE) 1.4.x is the first one on your path.
 
Mike Firkser
Ranch Hand
Posts: 249
Java Oracle PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the quick reply.
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have j2sdk1.4.2_07 as my JAVA_HOME and my classpath is set like:


.;C:\j2sdk1.4.2_07\bin;C:\j2sdk1.4.2_07\jre\bin;C:\j2sdk1.4.2_07\lib;C:\j2sdk1.4.2_07\lib\tools.jar;C:\j2sdk1.4.2_07\jre\lib;C:\j2sdk1.4.2_07\jre\lib\rt.jar


The JDK in my Eclipse 8.1 is j2sdk1.4.1_05.

Are those two different versions of JDK going to make the Eclipse confused and fail to perform as it is supposed to?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34422
347
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Daniel,
Eclipse will just use the first one it finds. Since they are both 1.4 versions, you should be fine.

This does introduce the question of why you need/want to versions of 1.4 on your classpath. An application will only find one so the other is just taking up space. Might be time to do a little clean up.
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Eclipse 8.1 that I have comes with its own version of JDK, which is j2sdk1.4.1_05.

I already have a JDK in my machine. The JDK is j2sdk1.4.2_07.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34422
347
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Daniel,
Eclipse comes with an embedded JDK (used for auto-complete) which is in the Eclipse directory. The JRE/JDK used to run Eclipse itself can be changed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic