Setting java in Windows -


All,

I just reinstalled Java on my machine because I think I There are 2 versions of Java !! Anyway, I have set Pat and Clayspace for the Environment code to C: \ Program Files \ Java \ jdk1.6.0_21 \ bin \ / code>. I wrote a simple Java file in the C: \ Temp folder

  package myPackage; Public class myClass {public static zero main (string [] args) {System.out.println ("test"); }}  

This file should be compiled, do not create a folder myPackage which will contain the class file myClass ?

My basic question is that my own package is not creating a folder structure that should be made. I think there is a problem with the environment variable, but I'm not sure

probably no answer , But when I install JDK, I usually set the pat at% PATH%, PATH_TO_JDK \ bin (like you) and JAVA_HOME = PATH_TO_JDK (without ending). It works for most of my applications and development environments.


Comments