Is there any way I can rebuild the classes to use JDK 1.5.0.
You can use the -source
and -target
options to instruct javac to target an earlier JVM.
If you are using Eclipse's compiler, instead of the JDK's javac, then you set the compiler settings in the project properties.
http://help.eclipse.org/mars/topic/org.eclipse.jdt.doc.user/gettingStarted/qs-with-j2se50.htm?cp=1_1_2
http://help.eclipse.org/mars/topic/org.eclipse.jdt.doc.user/reference/preferences/java/ref-preferences-compiler.htm?cp=1_4_2_0_3
"Could not find the main Class. Program will exit"
This means the CLASSPATH (and/or bootclasspath) does not contain the class specified as the 'main' class to run.
How are you running javac? Are you maybe trying to compile using a JRE 5? That won't work as the JRE does not contain the compiler; you need a JDK.
Note that both 1.5 and 1.6 have been End-of-Life for a few years now (since 2009 and 2013 respectively). I recommend using a currently-supported JVM.