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

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,244
Latest member
cryptotaxsoftware12

Latest Threads

Top