Solved

IDE + Java + setting class path

Posted on 2003-10-28
9
678 Views
Last Modified: 2013-12-14
Im quite at a loss on how to set the classpath on netbeans IDE.

Ive checked netbeans documentaion but still puzzled.

I'm using netbeans to code a parser in java on windows 2000 and I have the Xerces parser jar files on my C drive.

How do I set the classpath for the Jar files ion netbeans IDE (a general answer, not specific to netbeans IDE may also be helpful).

Would be grateful for any hints

thanks

mm

0
Comment
Question by:mellowmoose
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 9633155
Put the Xerces libraries in all lib\ext directories
0
 
LVL 3

Accepted Solution

by:
savalou earned 50 total points
ID: 9637394
Actually, creating a directory called endorsed in the $JAVA_HOME/jre/lib  directory of the JRE you're using and moving the xercesImpl.jar and xml-apis.jar files there should do it.  

For NetBeans specifically, another way to add jars to your development (project) classpath is to mount the jars (right-click on filesystem and "mount archives").
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9640941
>>Actually, creating a directory called endorsed ...

Not sure why you'd do that. Wouldn't anything placed in ext be endorsed by definition?

>>For NetBeans specifically...

Of course, the generic solution is better

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:savalou
ID: 9641815
> Not sure why you'd do that. Wouldn't anything placed in ext be endorsed by definition?

I don't know.  It says here (http://java.sun.com/j2se/1.4.2/docs/guide/standards/index.html) that org.w3c.dom.* classes should go in in the endorsed directory.

0
 

Author Comment

by:mellowmoose
ID: 9643519
>For NetBeans specifically, another way to add jars to your development (project) classpath >is to mount the jars (right-click on filesystem and "mount archives").

thanks savalou, that appears to have done the trick ...
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9643541
...but is not consistent with your requirement:

>>(a general answer, not specific to netbeans IDE may also be helpful).
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9643590
Also savalou, i'm not too sure that the Xerces libraries are endorsed, according to the list at the url you posted.
0
 
LVL 3

Expert Comment

by:savalou
ID: 9645841
> Also savalou, i'm not too sure that the Xerces libraries are endorsed, according to the list at the url you posted.

Why not?

It seems like the ext packages are those that have not made it into the core jar, usually they start with javax.

Endorsed packages are pretty much anything else that you want every time you use java on the machine and by everyone.  In a development project you might not want to throw any new jar you come across into the java directories.  

Anyway, whatever.  
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9651783
>>It seems like the ext packages are those that have not made it into the core jar

They are simply extensions to the standard libraries, either from Sun or third parties.

I would either read or re-read the url you posted ;-)
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question