Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Have not toyed around with Java since 05. Need help with classpath

Status
Not open for further replies.

other3

Programmer
Jul 30, 2002
92
US
The Java executable is in C:\Java\jdk1.5.0_02\bin\java. The main class is in C:\MyProjects\myprogram\myprogram. I want to set it up using -classpath. Any assistance would be appreciated. I'm using JCreator and it runs fine from within the IDE.

Everything I know I learned from The Grateful Dead and Buffy The Vampire Slayer
Charlie
 
If Main.java is in C:\MyProjects\myprogram\myprogram and does not have a package declaration, your classpath has to be C:\MyProjects\myprogram\myprogram.

Is your package myprogram.myprogram, then the classpath has to be C:\MyProjects.

The location of the jdk/bin is irrelevant for the classpath.

don't visit my homepage:
 
The package is myprogram

Everything I know I learned from The Grateful Dead and Buffy The Vampire Slayer
Charlie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top