Fedora Linux Support Community & Resources Center
Old 20th January 2012, 06:09 AM
ameet Offline
Registered User
Join Date: Jan 2012
Location: india
Posts: 6
Java Program

I am new user on fedora (release: 8 codename: werewolf kernel linux GNOME 2.20.1),
while doing java program got error,

Exception in thread "main" java.lang.UnsupportedClassVersionError: HelloWorld : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java :638)
at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:143)
at java.net.URLClassLoader.defineClass(URLClassLoader .java:281)
at java.net.URLClassLoader.access$000(URLClassLoader. java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java: 216)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:209)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 24)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 69)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:337)
Error: Could not find the main class.
Error: A JNI error has occurred, please check your installation and try again

public class HelloWorld {

public static void main(String[] args) {
System.out.println("Hello, World");


this error is there in other programs also,
please tell me what is wrong.
Reply With Quote
Old 21st January 2012, 03:19 PM
ameet Offline
Registered User
Join Date: Jan 2012
Location: india
Posts: 6
Re: Java Program

This problem is solved ,
i am not sure but what i did is , i installed the jdk again .
this problem was may be because of not installing jdk properly .
Reply With Quote

java, program

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with this java program. knightrider123 Programming & Packaging 2 2nd March 2011 10:38 AM
Help with java program Alienpostie Using Fedora 2 30th September 2007 01:25 AM
java program install thyraios Using Fedora 11 14th August 2007 11:25 PM
how to use shell program parameters in java program?? srujanabobba Using Fedora 1 10th August 2006 07:24 PM
help with java program required iamroot Programming & Packaging 5 17th August 2005 12:51 PM

Current GMT-time: 09:33 (Thursday, 17-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat