setting CLASSPATH

N

navjot

i have all my .class files in the folder f:\LAB PROGS\JAVA and want to
run them from the C:\> in the cmd.exe window in Windows XP
Professional...Can anyone tell me how to setup the path that will help
me to run the application from anywhere....Please tell me what
CLASSPATH value should i set.Thankyou
 
I

IchBin

navjot said:
i have all my .class files in the folder f:\LAB PROGS\JAVA and want to
run them from the C:\> in the cmd.exe window in Windows XP
Professional...Can anyone tell me how to setup the path that will help
me to run the application from anywhere....Please tell me what
CLASSPATH value should i set.Thankyou

Why don't you just create a jar file with all your class's

"Java jar cf myFile.jar *.class" in f:\LAB PROGS\JAVA

Then just run as

"java -classpath f:\LAB PROGS\JAVA\myFile.jar MyProgram"

--

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top