LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-18-2009, 01:57 PM   #1
Ishkabibble
Member
 
Registered: Aug 2003
Location: Worcester MA
Distribution: Ubuntu 8.04
Posts: 120

Rep: Reputation: 15
Java not working in Ubuntu


Everything seems to be installed correctly, but Java's not running properly. The console shows:
Code:
Java Plug-in 1.6.0_10
Using JRE version 1.6.0_10 Java HotSpot(TM) Client VM
User home directory = /home/ishyhere




----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file jreCheck
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:192)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:632)
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
	at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2302)
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
	at sun.applet.AppletPanel.run(AppletPanel.java:368)
	at java.lang.Thread.run(Thread.java:619)
java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file jreVerify
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:192)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:632)
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
	at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2302)
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
	at sun.applet.AppletPanel.run(AppletPanel.java:368)
	at java.lang.Thread.run(Thread.java:619)
Exception in thread "AWT-EventQueue-2" java.lang.IllegalThreadStateException: forbid thread creation in disposed TG
	at sun.plugin.security.ActivatorSecurityManager.checkAccess(ActivatorSecurityManager.java:155)
	at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:288)
	at java.lang.Thread.init(Thread.java:332)
	at java.lang.Thread.<init>(Thread.java:433)
	at java.awt.EventDispatchThread.<init>(EventDispatchThread.java:58)
	at java.awt.EventQueue$1.run(EventQueue.java:822)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.EventQueue.initDispatchThread(EventQueue.java:819)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:153)
java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file testvmDynamicJavaComPopUp819
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:192)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:632)
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
	at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2302)
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
	at sun.applet.AppletPanel.run(AppletPanel.java:368)
	at java.lang.Thread.run(Thread.java:619)
java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file testvmDynamicJavaComPopUp819
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:192)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:632)
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
	at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2302)
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
	at sun.applet.AppletPanel.run(AppletPanel.java:368)
	at java.lang.Thread.run(Thread.java:619)
java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file testvmDynamicJavaComPopUp819
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:192)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:632)
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
	at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2302)
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
	at sun.applet.AppletPanel.run(AppletPanel.java:368)
	at java.lang.Thread.run(Thread.java:619)
I don't know how to read that stuff properly. Can someone help me figure this out?
 
Old 07-18-2009, 03:29 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by Ishkabibble View Post
Everything seems to be installed correctly, but Java's not running properly.
It would help if you provided more information about the problem and your system.

Are you really still using Ubuntu 7.1?

Did you check with Google at all?

How do you know that "everything seems to be installed correctly"?
 
Old 07-18-2009, 03:50 PM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Incompatible magic value 1013478509 in class file jreCheck

You have a file named jreCheck.class (possibly inside a Jar file) that is for a later Java version than the JVM that you are trying to use to run it.

This may mean that you have multiple java executables installed; try removing any that are for a version below 1.6.

To find out what the Java version you are actually running is, can you please run the following from a terminal and post the results? <code>which java
java --version</code>
 
Old 07-18-2009, 03:52 PM   #4
Ishkabibble
Member
 
Registered: Aug 2003
Location: Worcester MA
Distribution: Ubuntu 8.04
Posts: 120

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by stress_junkie View Post
It would help if you provided more information about the problem and your system.

Are you really still using Ubuntu 7.1?

Did you check with Google at all?

How do you know that "everything seems to be installed correctly"?
I'm using Ubuntu 8.04.

The reason I say it seems to be installed correctly is that I have the same things installed on my laptop as are installed on that system and it's running well. Also "Enable Java" shows up in the Preferences as an option.
 
Old 07-18-2009, 07:02 PM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by rjlee View Post
Incompatible magic value 1013478509 in class file jreCheck

You have a file named jreCheck.class (possibly inside a Jar file) that is for a later Java version than the JVM that you are trying to use to run it.

This may mean that you have multiple java executables installed; try removing any that are for a version below 1.6.

To find out what the Java version you are actually running is, can you please run the following from a terminal and post the results? <code>which java
java --version</code>
Well this is certainly an interesting post. I think you wanted to have the following for the commands.

Code:
which java
java -version
Quote:
Originally Posted by Ishkabibble View Post
I'm using Ubuntu 8.04.
Okay. That's good.

I'm running *buntu 8.04 and Java 1.6.0.14 that lives at /usr/lib/java-6-sun-1.6.0.14. The executable is jre.

I am ALSO running kaffe 1.4.2 which lives at /usr/bin. The executable is named java.

The two seem compatible. OOo sees the genuine Sun Java while everything else sees the kaffe imposter.

Quote:
Originally Posted by Ishkabibble View Post
The reason I say it seems to be installed correctly is that I have the same things installed on my laptop as are installed on that system and it's running well. Also "Enable Java" shows up in the Preferences as an option.
As rjlee implies by asking you to run 'which java' and 'java -version' you may not have exactly what you think you have. My *buntu systems started out with messed up Java. I tried a bunch of things before I got it to settle down and work. I don't remember exactly what I did but it involved removing this and installing that and yada yada yada until it just started to work.

Do the two commands that rjlee specified and post the results. Please.

Last edited by stress_junkie; 07-18-2009 at 07:16 PM.
 
Old 07-20-2009, 09:21 AM   #6
Ishkabibble
Member
 
Registered: Aug 2003
Location: Worcester MA
Distribution: Ubuntu 8.04
Posts: 120

Original Poster
Rep: Reputation: 15
"which java" returns
/usr/bin/java

"java -version" returns
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

Thanks for all your help!
 
Old 07-31-2009, 07:17 PM   #7
Ishkabibble
Member
 
Registered: Aug 2003
Location: Worcester MA
Distribution: Ubuntu 8.04
Posts: 120

Original Poster
Rep: Reputation: 15
What?? Did I stump everyone??
 
Old 09-02-2009, 11:32 PM   #8
lindsay_keir
LQ Newbie
 
Registered: Nov 2004
Location: Langley, BC, Canada
Posts: 5

Rep: Reputation: 0
Firefox 3.5 has a "broken" IcedTea6

The media site www.ninjavideo.net uses a java applet to setup a secure downloader. This fails under Firefox 3.5

The ninjavideo's user shockdiode's solution is ...
sudo apt-get remove icedtea6-plugin
sudo apt-get install sun-java6-plugin

Afterward you still have ...
java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11)
OpenJDK Client VM (build 14.0-b08, mixed mode, sharing)


Note: If you don't have it, the sun-java6-plugin will automatically install Firefox 3.0 - don't worry about it; the security applet will work even if it's started from Firefox 3.5

Ishkabibble - I have no idea if this has anything to do with your problem. But maybe?, I hope.

Tags: kubuntu java IcedTea6 Firefox
 
  


Reply

Tags
firefox, java, kubuntu



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
Ubuntu 64-bit, Opera 64-bit, Java not working Debian_Poland Linux - Desktop 6 08-12-2008 01:15 PM
Java applet in FF not working, JRE installed (Ubuntu 7.10) linkmaster03 Linux - Software 4 04-20-2008 02:24 PM
Ubuntu 7.10 64bit - how to set java path to/redirect java to libjvm.so ? Thane Ubuntu 1 03-25-2008 05:52 PM
Java/Firefox java plugin not working with HP Webjetadmin iamskykid Linux - Software 2 03-02-2006 02:38 PM
Web start java not working (java works fine) powadha Debian 5 06-05-2004 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:16 AM.

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
Open Source Consulting | Domain Registration