LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   "Extra bytes at the end of class file" when installing WTK2.2 (https://www.linuxquestions.org/questions/linux-software-2/extra-bytes-at-the-end-of-class-file-when-installing-wtk2-2-a-529939/)

eikeland 02-17-2007 11:54 AM

"Extra bytes at the end of class file" when installing WTK2.2
 
I am trying to install WTK2.2 on Mandriva 2006 x64, but I am having a problem. I first install jdk-6, and it installs without problems.
The path is /usr/java/jdk1.6.0/bin
The files in this directory are:
appletviewer* javac* jinfo* jstatd* rmid* wsgen*
apt* javadoc* jmap* keytool* rmiregistry* wsimport*
extcheck* javah* jps* native2ascii* schemagen* xjc*
idlj* javap* jrunscript* orbd* serialver*
jar* jconsole* jsadebugd* pack200* servertool*
jarsigner* jdb* jstack* policytool* tnameserv*
java* jhat* jstat* rmic* unpack200*


When I try to install the Wireless Toolkit
j2me_wireless_toolkit-2_2-linux-i386.bin
I the path of the java interpreter:
/usr/java/jdk1.6.0/bin
but I get this error:
Testing /usr/java/jdk1.6.0/bin/java...
Exception in thread "main" java.lang.ClassFormatError: Extra bytes at the end of class file com/sun/kvem/environment/JavaVersionTester
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
/usr/java/jdk1.6.0/bin is not a suitable Java interpreter
Enter a path to a Java 2 SDK (For example: /user/jdk1.4/bin). You can type "exit" to cancel installation.

I have also tried:
/usr/java/jdk1.6.0/jre/bin
but I get the same error.

Any suggestions what's wrong here??

eikeland 03-06-2007 08:59 PM

I worked around this by un-installing 1.6 and installing jdk1.5.0_06.


All times are GMT -5. The time now is 07:10 AM.