LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Java not working in Ubuntu (http://www.linuxquestions.org/questions/linux-software-2/java-not-working-in-ubuntu-741053/)

Ishkabibble 07-18-2009 01:57 PM

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?

stress_junkie 07-18-2009 03:29 PM

Quote:

Originally Posted by Ishkabibble (Post 3612000)
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"?

rjlee 07-18-2009 03:50 PM

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>

Ishkabibble 07-18-2009 03:52 PM

Quote:

Originally Posted by stress_junkie (Post 3612049)
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.

stress_junkie 07-18-2009 07:02 PM

Quote:

Originally Posted by rjlee (Post 3612067)
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 (Post 3612071)
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 (Post 3612071)
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. :)

Ishkabibble 07-20-2009 09:21 AM

"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!

Ishkabibble 07-31-2009 07:17 PM

What?? Did I stump everyone??

lindsay_keir 09-02-2009 11:32 PM

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.:scratch:

Tags: kubuntu java IcedTea6 Firefox


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