Judy Deo
asked on
compiling .java file into .class file
ok i downloaded the java development kit (JDK) from the SUN website which included the Java Runtime Environment (JRE).
all i am looking to do is compile a .java file i have into a .class file. is there some site (which uses the latest version of the compiler) that will let you submit the .java file and spit back a .class file?
all i am looking to do is compile a .java file i have into a .class file. is there some site (which uses the latest version of the compiler) that will let you submit the .java file and spit back a .class file?
look at the directory where you installed the java.
make sure that the directory "JAVA_INSTALL_DIR/bin" is in your path.
make sure that the file "JAVA_INSTALL_DIR/jre/lib/ rt.jar" and "JAVA_INSTALL_DIR/lib/some thing.jar" (i don't recall right now which one) are in the CLASSPATH.
On Windows:
set CLASSPATH=path_to_rt.jar;p ath_to_som ething.jar
On Linux:
export CLASSPATH=path1:path2
If it fails, post here the configuration of your JDK installation (OS, path of installation etc)
HIH,
mGaurav
make sure that the directory "JAVA_INSTALL_DIR/bin" is in your path.
make sure that the file "JAVA_INSTALL_DIR/jre/lib/
On Windows:
set CLASSPATH=path_to_rt.jar;p
On Linux:
export CLASSPATH=path1:path2
If it fails, post here the configuration of your JDK installation (OS, path of installation etc)
HIH,
mGaurav
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
why doesn't the JDK automatically create these settings when it installs? also is there a visual studio version for Java (i.e like microsoft's Visual Studio) created by SUN or some other company?
ASKER
quick question about experts exchange. why doesn't it let you assign partial points? i am going to give the points to "s_lavie" because the link he provided was for an excellent tutorial but "mgaurav" also gave a good answer.
There are plenty.
MS has the VJ++
Borland has the JBuilder
And many more...
There is one for free: http://www.netbeans.org/
MS has the VJ++
Borland has the JBuilder
And many more...
There is one for free: http://www.netbeans.org/
ASKER
led me to the perfect tutorial. very good answer.
Thanks!
Hope it helps.