Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-23-2008, 04:11 PM   #1
LQ Newbie
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
Unhappy problem while running java in fedora core linux...

Hii everyone ....i have jdk i.6 in fedora 4...i have installed it successfully..even the programs are compiling fine..but the problem is whem im trying to run it,im having problems like this-----

Exception in thread "main" java.lang.ClassFormatError: Souvik (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(

moreover when im using the command java -version its showing java 1.4 rather than 1.6...
waiting for reply...THANX
Old 07-23-2008, 04:14 PM   #2
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
That is because Fedora uses its own java package. You will have to tell it otherwise. Set up the repository and install the compat-package (documented on their site), then switch versions using the galternatives GUI (needs to be installed first) or the update-alternatives --config java set of commands. See google for further information.

Note: if you installed the sun .bin package rather than the rpm.bin one, you'll find all of this a lot harder to do. You may want to reinstall you sun java in that case.

Last edited by jay73; 07-23-2008 at 04:16 PM.


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
Problem running Fedora Core 7 in vmware vhasun Linux - Distributions 3 08-03-2007 11:42 AM
J2ME and JAVA SDK configuration problem on Fedora Core 4 vikram_cvk Linux - Software 0 03-23-2006 06:12 AM
Problem running GPRS Easyconnect on Fedora Core 1 with PL-2303 DKU-5 Cable manishsingh4u Linux - Software 0 11-27-2005 12:00 PM
Problem installing Java on Fedora Core 4 metallicafan_316 Linux - Newbie 4 10-07-2005 10:46 AM
windows java based app running on fedora core 3? linuxmandrake Linux - Software 2 06-18-2005 12:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:09 AM.

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