Ask Your Question

Java is constantly generating an error log in my home directory?

asked 2014-01-12 11:15:15 -0500

jflory7 gravatar image

I have started to notice that whenever I use a Java-based application on Fedora 20, whether it's a game or Eclipse or something else, it will always generate an error log of some sort in home directory.

This is an annoying place for logs to be saved in the first place, but I obviously would like to fix whatever error it is referencing. But I am not quite sure what it is saying or how I would go about fixing this.

The name of the error logs are always abrt_checker_####.log, the #### being a series of random numbers.

Below is an example of what one of these error logs look like. So, my question is, what does this error mean and how I can I fix it?

Uncaught java.lang.ClassNotFoundException exception in thread "main" in a method java.lang.ClassLoader.loadClass() with signature (Ljava/lang/String;Z)Ljava/lang/Class;
Exception in thread "main" java.lang.ClassNotFoundException:
at$ [jar:file:/usr/lib/jvm/java-1.7.0-openjdk-!/java/net/URLClassLoader$1.class]
at$ [jar:file:/usr/lib/jvm/java-1.7.0-openjdk-!/java/net/URLClassLoader$1.class]
at Method) [jar:file:/usr/lib/jvm/java-1.7.0-openjdk-!/java/security/AccessController.class]
at [jar:file:/usr/lib/jvm/java-1.7.0-openjdk-!/java/net/URLClassLoader.class]
at java.lang.ClassLoader.loadClass( [jar:file:/usr/lib/jvm/java-1.7.0-openjdk-!/java/lang/ClassLoader.class]
at sun.misc.Launcher$AppClassLoader.loadClass( [jar:file:/usr/lib/jvm/java-1.7.0-openjdk-!/sun/misc/Launcher$AppClassLoader.class]
at java.lang.ClassLoader.loadClass( [jar:file:/usr/lib/jvm/java-1.7.0-openjdk-!/java/lang/ClassLoader.class]
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-13 06:43:53 -0500

jflory7 gravatar image

I have found a fix for this problem.

There is a guide on about how to install a true Java version over the OpenJDK preinstalled on Fedora. My issue was that I had downloaded and installed the RPM from Oracle already, but I had not set my alternatives to make it dominant over IcedTea (or OpenJDK).

I changed into the root user, and then ran the following commands:

alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 200000
alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 200000
alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 200000
alternatives --install /usr/bin/jar jar /usr/java/latest/bin/jar 200000
export JAVA_HOME="/usr/java/latest"
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-01-12 11:15:15 -0500

Seen: 858 times

Last updated: Jan 13 '14