HELP!

Trying to get Java working on my computer to help with college work, while I can run programs using "java ...etc" when I run the compiler I get the following error:-

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

Now I'm pretty dure my paths are correct so any sugggestions...any help would be much appriciated!

(I've installed and uninstalled three times now & its getting very annoying!)

Thank you for your help.

[488 byte] By [garmee] at [2007-9-27 22:18:16]
# 1
RTF ReadmeInstall the SDK, not the JREPost in the "new to java" forum.
phohmeyer at 2007-7-7 12:36:08 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
I've installed the SDK 3 times now...so thats not it!
garmee at 2007-7-7 12:36:08 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3
Hello. Try this: set JAVA_HOME=c:\j2sdk1.4.1 (change correctly)java -classpath %JAVA_HOME%\lib\tools.jar ... etc
veramkovich at 2007-7-7 12:36:08 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 4
Tried it and it didn't work.I'm running windows me could it have anything to do with that?
garmee at 2007-7-7 12:36:08 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 5

Perhaps your tools.jar is corrupted?

Open %JAVA_HOME%\lib\tools.jar with any zip-tool.

Look if the file com\sun\tools\javac\Main.class is in the archive.

If it is,

java -classpath %JAVA_HOME%\lib\tools.jar com.sun.tools.javac.Main

WILL work (or at least give a different error)

If you cannot open the jar with a zip tool, it's corrupted and you'll have to download the sdk again.

phohmeyer at 2007-7-7 12:36:08 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...