LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-23-2008, 04:11 PM   #1
golu_g
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(libgcj.so.7rh)
at java.lang.ClassLoader.defineClass(libgcj.so.7rh)
at java.security.SecureClassLoader.defineClass(libgcj.so.7rh)
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)



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
jay73
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 jpackage.org 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.
 
  


Reply


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


All times are GMT -5. The time now is 01:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration