C
crab.dae
I'm going through the Tutorial on Sun's site and have installed JDK SE
Update 2.
I 1st uninstalled all JAVA from my PC, then did the install, leaving
all settings with the default value of the installer.
After install, I ran into a problem with using JAVAC to compile
HelloWorldApp from the tutorial. That was fixed with a change in the
Enviro Variable to ClassPath set to C:\Program Files\Java
\jdk1.6.0_02\bin
Afterwards, I tried to run it from c:java. From the c:\java
directory, I typed java HelloWorldApp when I get the below error:
==========
C:\JAVA>java helloworldapp
Exception in thread "main" java.lang.UnsupportedClassVersionError:
helloworldapp
(Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$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.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
==========
I then tried added C:\Program Files\Java\jdk1.6.0_02 to the PATH
Enviroment Variable and I still get the error. I'm thinking it might
be a problem with Oracle. Below is my PATH variable. Should I move C:
\Program Files\Java\jdk1.6.0_02 and/or change it to something else?
C:\Program Files\Oracle\Ora92\bin;
C:\Program Files\Oracle\jre\1.3.1\bin;
C:\Program Files\Oracle\jre\1.1.8\bin;
%SystemRoot%\system32;%SystemRoot%;
%SystemRoot%\System32\Wbem;%SystemRoot%\system32;
%SystemRoot%;%SystemRoot%\System32\Wbem;
C:\Program Files\ATI Technologies\ATI Control Panel;
C:\Program Files\Visual Networks\Dial Analysis\;
C:\Program Files\Microsoft SQL Server\80\Tools\BINN;
C:\Program Files\Common Files\Adaptec Shared\System;
%HummPATH%;C:\sybtools\ASEP;
c:\sqlany50\win32;c:\sybtools\win32;
C:\Program Files\Java\jdk1.6.0_02\
Thanks!!!
Update 2.
I 1st uninstalled all JAVA from my PC, then did the install, leaving
all settings with the default value of the installer.
After install, I ran into a problem with using JAVAC to compile
HelloWorldApp from the tutorial. That was fixed with a change in the
Enviro Variable to ClassPath set to C:\Program Files\Java
\jdk1.6.0_02\bin
Afterwards, I tried to run it from c:java. From the c:\java
directory, I typed java HelloWorldApp when I get the below error:
==========
C:\JAVA>java helloworldapp
Exception in thread "main" java.lang.UnsupportedClassVersionError:
helloworldapp
(Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$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.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
==========
I then tried added C:\Program Files\Java\jdk1.6.0_02 to the PATH
Enviroment Variable and I still get the error. I'm thinking it might
be a problem with Oracle. Below is my PATH variable. Should I move C:
\Program Files\Java\jdk1.6.0_02 and/or change it to something else?
C:\Program Files\Oracle\Ora92\bin;
C:\Program Files\Oracle\jre\1.3.1\bin;
C:\Program Files\Oracle\jre\1.1.8\bin;
%SystemRoot%\system32;%SystemRoot%;
%SystemRoot%\System32\Wbem;%SystemRoot%\system32;
%SystemRoot%;%SystemRoot%\System32\Wbem;
C:\Program Files\ATI Technologies\ATI Control Panel;
C:\Program Files\Visual Networks\Dial Analysis\;
C:\Program Files\Microsoft SQL Server\80\Tools\BINN;
C:\Program Files\Common Files\Adaptec Shared\System;
%HummPATH%;C:\sybtools\ASEP;
c:\sqlany50\win32;c:\sybtools\win32;
C:\Program Files\Java\jdk1.6.0_02\
Thanks!!!