Well unfortunately another set of errors seem to have crept up...
They appear in this order when typing: javac Helloworld.java
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' has value '1.6', but '1.3' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment
Any clues? I don't want to go messing around with the registry, but downgrading the version (let alone the fact that it is requiring it) just doesn't seem to make any sense!
FYI, I recently updated everything: 'JDK 6 Update 10' and 'JRE 6 Update 17' and installed 'JavaFX Production Suite 1.2' and 'Java EE SDK 5.08 (w/GlassFish v2.1.1)' and 'NetBeans
IDE 6.8 for Java'--those caused these somewhat new errors--see below.
Don't ask why I installed all of that stuff, other than to be up-to-date. I must mention that the .java files for which I'm trying to create .class files with javac.exe were created and run years ago (c. 2005) when I took a Java programming course at my university--the most current version was JDK 1.3.1 at the time, I believe (or at least it was pretty current). Nevertheless, the java.exe and javac.exe et al are from that JDK 1.3.1 CD disk that came with the text book (all sadly missing, though there are resources online).
Anyway, I stored all of the files I had in order to run the .java files unto a floppy disk back in 2005 (that's the media we used to store them and run them in the computer labs and at home). So, due to my wanting to get back into programming, I went and found a computer with a 3.5 floppy drive and emailed all of the .java files that I created (along with the .exe files) to myself in order to download them on my laptop (no .class files existed strangely enough, even though my
applets were there). Nevertheless, it's also important to note that before I installed all of the new, aforementioned software, I was still getting the aforementioned, three errors (due to the JDK 6 Update 10 being installed, which was preexisting on my computer before I ever had the idea to start programming again). So, I uninstalled it and then reinstalled the JDK 1.3.1 and that solved the above three errors, as version 1.3 was restored to the registry and the .dll must have shown up somewhere and an earlier Runtime Environment must have been restored. More importantly, it was then that I got the 'Exception in
thread "main" java.lang.NoClassDefFoundErorr: com/sun/tools/javac/Main' error--the reason I started this thread to begin with.
So, the problem seems to be at least two-fold and also seems to have a number of angles to it. Thank you greatly to anyone who can help--"may the force be with you!"