Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 09-07-2007, 09:30 PM   #1
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Rep: Reputation: 30
problem with java in fedora 7

hi everyone

i have installed jdk 1.6 in fedora 7..
i am able to compile a program without any errors....but when i use the
java ClassName
i am getting the following error...

Exception in thread "main" java.lang.ClassFormatError: JFrameProgram (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(
at java.lang.ClassLoader.defineClass(
at gnu.gcj.runtime.SystemClassLoader.findClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(

I have set the environmental variable JAVA_HOME /home/fedora/jdk1.6.0

is there any conflict between the jdk that i have installed and the default java that has come with fedora 7...
if so how to rectify this conflict....??

Please help me to compile programs in terminal in fedora 7


Last edited by me4linux; 09-07-2007 at 09:31 PM.
Old 09-08-2007, 05:08 AM   #2
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
If there is a problem between versions of java it will probably be because you are running the "wrong" java. Setting JAVA_HOME wont help inregards to which java binary is being executed.


which java : will show which java is in your path first
java -version : will run the java in your path and show its version

if the wrong java is being run try running with the full path name:

/home/fedora/jdk1.6.0/bin/java javaprogram.jar

if that worked you might want to link your home java version to /usr/bin replacing the java that is there or change your $PATH variable to use your java first.


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
java 1.5 on fedora 6 andystanfordjason Linux - Newbie 1 04-01-2007 10:41 AM
J2ME and JAVA SDK configuration problem on Fedora Core 4 vikram_cvk Linux - Software 0 03-23-2006 05:12 AM
Problem installing Java on Fedora Core 4 metallicafan_316 Linux - Newbie 4 10-07-2005 09:46 AM
Java Problem with Firefox/ Fedora johnsonmbrandon Fedora 2 07-28-2005 03:28 PM
fedora 2 and java yeehi Fedora - Installation 4 05-30-2004 10:25 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:48 PM.

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