Chikito Charles wrote:I tried this but the folders were not created:
c:\>set classpath=%classpath%;c:\java\work
Wonder what is wrong here...
Please help
The classpath environment variable is used by the Java compiler and JVM to find your packages. It doesn't create any directories or the packages themselves.
The classpath environment variable is used by the Java compiler and JVM to find your packages. It doesn't create any directories or the packages themselves.
i should have compiled using the following command:
javac -d . filename.java
to automatically create directories ( as per the package abc.xyz; line of code in the filename.java file) and have filename.class file inside xyz folder.
Else I have to manually create the nested folders and put the filename.class file inside xyz folder.
tq
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Setting package classpath in cmd line - how?