wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Problem with starting Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Problem with starting Eclipse" Watch "Problem with starting Eclipse" New topic
Author

Problem with starting Eclipse

Mike Firkser
Ranch Hand

Joined: Oct 21, 2003
Posts: 247

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.


Mike Firkser
Rutgers '84
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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.


[Jess in Action][AskingGoodQuestions]
Mike Firkser
Ranch Hand

Joined: Oct 21, 2003
Posts: 247

Thanks for the quick reply.
Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

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.
 
 
subject: Problem with starting Eclipse
 
Similar Threads
Suggest me an IDE
about eclipse framework
IDE for java
CVS Revision and Date Tag do not work
which ide is best for mac?