File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How to set classpath on XP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to set classpath on XP?" Watch "How to set classpath on XP?" New topic

How to set classpath on XP?

Bruno Frascino
Ranch Hand

Joined: Jul 22, 2003
Posts: 55
Hi there,
How to set classpath and the path, or anyone enviroment variable to make my javac useful?, on the winXP?!?
Which path, bin or lib, I have to set on the classpath and path?!
Thanks for any help!

Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Depends on what you are doing. To use the basic J2SE you don't need a classpath. Just add the bin directory to your path= so you can access javac.exe and java.exe.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
The steps to set the PATH environment variable in Windows XP are a lot like the steps to set the CLASSPATH, or any other environment variable. Take a look at for the step-by-step.
Did you figure it out?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Bruno Frascino
Ranch Hand

Joined: Jul 22, 2003
Posts: 55
Ok! Thanks buddies!!
It is sorta covered in the JavaRanch Style Guide.
subject: How to set classpath on XP?
Similar Threads
classpath and Path
classpath and path setting in windows XP OS ?
java installation
How can i set path and classpath?