jasonsalas
IS-IT--Management
Hi everyone,
I'm learning Java, coming over from the Microsoft .NET world. As such, I've got Microsoft's language compilers set as various environment variables on my WinXP development box. Thus, I do all my command-line compiling from within the default directory for the compiler: C:\j2sdk1.4.0_03\bin
(I'm stating this all to make sure I'm getting it, too...sorry, gurus.
)
Basically, I can create other directories and successfully compile a Java program from within BIN\ (I assume it compiles because the .CLASS file(s) are created) by using the following compile command:
javac -classpath . ..\samples\HelloWorld.java
...but I'm having a touch time executing the programs. I've tried numerous commands at the prompt, but I can't seem to get it to work.
Any suggestions?
Thanks!
I'm learning Java, coming over from the Microsoft .NET world. As such, I've got Microsoft's language compilers set as various environment variables on my WinXP development box. Thus, I do all my command-line compiling from within the default directory for the compiler: C:\j2sdk1.4.0_03\bin
(I'm stating this all to make sure I'm getting it, too...sorry, gurus.
Basically, I can create other directories and successfully compile a Java program from within BIN\ (I assume it compiles because the .CLASS file(s) are created) by using the following compile command:
javac -classpath . ..\samples\HelloWorld.java
...but I'm having a touch time executing the programs. I've tried numerous commands at the prompt, but I can't seem to get it to work.
Any suggestions?
Thanks!