facebook

getting eclipse to load the correct class version

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #249906 Reply

    danade
    Member

    Greetings,

    I’m building a simple java class in the IDE (JDK1.4.2_05, Eclipse 3.1.2, Windows), and am trying to use the package org.w3c.dom (Element class and Document class).

    My JDK already has an older version of these classes, in the jar file called rt.jar; I think it’s part of the boot class loader’s job. It’s in directory C:\Program Files\Java\JRE\lib.

    But, I need to use a newer version of these classes, found in the files xercesImpl.jar and xml-apis.jar.

    So, I added the newer files, using Project->Build Path->Add Libraries. But no matter how I add them, Eclipse insists on loading the original version of these files, coming from the rt.jar file and it won’t load the new ones.

    How do I make Eclipse load the newer versions? Can somebody help me on this?

    Thank you!

    Dave Naden
    dave.naden@sas.com

    #249930

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    Dave this sounds like a runtime issues of your app, not an Eclipse issue (meaning, if you were trying to run this app from the command line you would be having the same problem).

    In Eclipse though, I think you can edit your runtime config, go to Classpath, then add your JARs under Bootstrap Entries. That should cause your new copies to be loaded before the JDK copies. This is similar to using the -Xbootclasspath command line argument.

    #249990

    danade
    Member

    right you are; but at least I figured out how to tell Eclipse to do this; Run->run Classpath. Thanks for the reply! -Dave

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: getting eclipse to load the correct class version

You must be logged in to post in the forum log in