Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

IDE + Java + setting class path

Posted on 2003-10-28
9
Medium Priority
?
684 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 200 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
Industry Leaders: 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Suggested Courses

610 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