Computing.Net > Forums > Programming > netbeans classpath

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

netbeans classpath

Reply to Message Icon

Name: osaru
Date: January 20, 2004 at 20:26:55 Pacific
OS: win32
CPU/Ram: 512
Comment:

How do I set classpath in netbeans?
I don't see any way to set classpath for .jar file or class file in netbeans. I can do this in dos shell, but have no idea in netbeans GUI.



Sponsored Link
Ads by Google

Response Number 1
Name: gpp
Date: January 21, 2004 at 05:47:41 Pacific
Reply:

Its been a little while since I've used netbeans, but you dont need to manually edit any paths. There are 4 locations that classes and/or jars can be dropped.

1) %HOME%/common/lib (for jars)
2) %HOME%/server/lib (for jars)
3) %AppRoot%/WEB-INF/lib (for jars)
4) %AppRoot%/WEB-INF/classes (for classes)

I'm pretty sure that any jar or class file in those locations is automatically in the classpath. If its not in one of thos places, then you need to right click on the project and select 'mount'. This will put that jar in the classpath. If you're still not sure about any of this, then try printing out the classpath, and you can see everything thats in it.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: netbeans classpath

Java CLASSPATH www.computing.net/answers/programming/java-classpath/988.html

specifying a java classpath www.computing.net/answers/programming/specifying-a-java-classpath/15270.html

Setting Classpath with Perl www.computing.net/answers/programming/setting-classpath-with-perl/13791.html