Joshua Horowitz

Greenhorn
+ Follow
since Aug 18, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Joshua Horowitz

It seems like all the Java files are there in c:\java

Directory of C:\Java

08/23/2009 02:36 AM <DIR> .
08/23/2009 02:36 AM <DIR> ..
08/16/2009 12:14 AM <DIR> bin
07/31/2009 04:29 PM 3,841 COPYRIGHT
08/16/2009 12:17 AM <DIR> demo
08/23/2009 02:36 AM 0 dir.txt
08/16/2009 12:14 AM <DIR> include
08/16/2009 12:15 AM <DIR> jre
08/16/2009 12:16 AM <DIR> lib
08/16/2009 12:14 AM 17,524 LICENSE
08/16/2009 12:14 AM 17,632 LICENSE.rtf
08/16/2009 12:14 AM 29,043 README.html
08/16/2009 12:14 AM 25,828 README_ja.html
08/16/2009 12:14 AM 21,275 README_zh_CN.html
08/16/2009 01:06 AM 5,329 register.html
08/16/2009 01:06 AM 5,748 register_ja.html
08/16/2009 01:06 AM 4,926 register_zh_CN.html
08/16/2009 12:18 AM <DIR> sample
07/31/2009 04:30 PM 19,641,221 src.zip
08/16/2009 12:14 AM 252,567 THIRDPARTYLICENSEREADME.txt

I changed System Variable so it looks like this:

Variable name: JAVA_HOME
Variable value: C:\java\bin\

I also tried putting the value in quotes.

When I try to run the javac command I get the is not recognized as an internal or external whatever message. However when I use it as "C:\java\bin\javac.exe" it works. But the java command works in command prompt without the full file path needed.

I'm stumped do you guys have any ideas?
15 years ago
Thank you for your help. I followed the instructions and made an environment variable pointing at C:\java\bin\ which is the directory moved java to and it still wont work. Any suggestions?
15 years ago
I recently installed JDK SE on my computer, I then moved the content of the bin folder to the windows directory so that I could use it without pointing to c:\java\bin every time. Now when I try to use the javac command I get the error shown below (I copied it by hand so there might be some errors but it's almost completely correct). I know it's not my program because i tried copying the hello world program from this website and I got the same error. Thank you for your help.

Exception in thread "main" Java.lang.NoClassDefFoundError: com/sun/tools/javac/main
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
at java.net.VRLClassLoader$1.run(unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: com.sun.tools.javac.main. Program will exit.
15 years ago