LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-17-2007, 12:54 PM   #1
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Rep: Reputation: 15
"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??
 
Old 03-06-2007, 09:59 PM   #2
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
I worked around this by un-installing 1.6 and installing jdk1.5.0_06.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Extra" moderators in the "Distro-forums" : Just curious... Megamieuwsel LQ Suggestions & Feedback 3 07-10-2004 05:18 AM
Oracle 10g says "end of file" cyclic redundancy error mmjulian Linux - Software 2 05-22-2004 03:57 AM
Can I redirect script output to a file without ">> $LOGFILE" at the end of each line davee Linux - General 1 12-19-2003 06:01 AM
"No new line at end of file" Misel Programming 2 12-05-2003 01:55 PM
Can't locate object method "splitpath" via package "File::Spec" RobJohnston Linux - General 2 06-28-2003 10:59 AM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration