Home Tutorialhelp Comment Cannot run FirstExample: UnsupportedClassVersionEr

 
 

Comment

Yntze Prins
Cannot run FirstExample: UnsupportedClassVersionEr,
January 13, 2009 at 1:23 AM

Hallo,

I followed the tutorial, created the sample project in myEclipse, but cannot run FirstExample. It gets an UnsupportedClassVersionError.

Please, advice if possible.

Stacktrace:
ava.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)


UnsupportedClassVersionError: Bad version number in .class file
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Struts Questions

Cannot run Struts 2 on IntelliJ Project - Struts
Cannot run Struts 2 on IntelliJ Project  I have been trying to run Struts 2 on IntelliJ IDEA for the past two weeks, can anyone help with basic...! thank you.  Hi , This is kalyani, I know to to run struts2 

Hibernate Questions

How to run? - Hibernate
How to run?  Hiiiiiiiiiiiii friend.. i am Magesh... friends are told hibernate is a new entry to Java. so plz try to tell how to use Hibernate code in my application?  Hi friend, Hinernate : Hibernate 

Hibernate Questions

hibernate
hibernate  how to impot mysql database client jar file into eclipse for hibernate configuration   Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate/runninge-xample.shtml Thanks 

JSP Servlet Questions

cannot display an arrayList in JSP
cannot display an arrayList in JSP  Hello, My bean is called Zone, i got all Zones from sql Server with Hibernate. in DAO.Class: print("List zones = session.createQuery("FROM Zone").list();"); i want to send this List from 

Hibernate Questions

java.lang.IllegalArgumentException: node to traverse cannot be null!
java.lang.IllegalArgumentException: node to traverse cannot be null!  Can Any body help me out regarding the above exception in Hibernate HQL 

Hibernate Questions

java.lang.IllegalArgumentException: node to traverse cannot be null!
java.lang.IllegalArgumentException: node to traverse cannot be null!  Hi, I am new to Hibernate. I am facing the problem java.lang.IllegalArgumentException: node to traverse cannot be null! while updating a row. The code 

Hibernate Questions

java - Hibernate
the code and run using Hibernate and annotation..plse help me...  Hi... problems: SessionFactory cannot be resolved to a type The method getSessionFactory() is undefined for the type HibernateUtil Session cannot be resolved 

RMI Questions

ls: cannot access >: No such file or directory
ls: cannot access >: No such file or directory  import.../f.txt from terminal in linux its creating f.txt.But cant run from java program ls: cannot access >: No such file or directory error is displayed .No f.txt 

Hibernate Questions

java.lang.IllegalArgumentException: node to traverse cannot be null!
java.lang.IllegalArgumentException: node to traverse cannot be null!  In my Hibernate program following error is coming: java.lang.IllegalArgumentException: node to traverse cannot be null 

Log4J Questions

JSP cannot log to FileAppender - Log4J
JSP cannot log to FileAppender  Hi, Thank you for your attention... Log4j. At the moment, it logs fine to console when run from class main method... either RollingFileAppender or FileAppender it only works if run from class main 

Hibernate Questions

Why Dose Hibernate Run Very Slow?
Why Dose Hibernate Run Very Slow?  I use Hibernate in netbean 6.9.1, when I run by F6 of netbean, Hibernate run very slow, it run some row INFO.... in GlassFish of netbean, web of me run very slow. I have configure Hibernate 

Hibernate Questions

Hibernate
Hibernate  hello, how to run hibernate program in netbeans?please send me step by step instructions to run hibernate in netbeans 

Hibernate Questions

Hibernate application - Hibernate
Hibernate application  Hi, Could you please tell me how to implement hibernate application in eclipse3.3.0 Thanks, Kalaga.  Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate 

JDBC Questions

java [ cannot retrive date from sql ] why??
java [ cannot retrive date from sql ] why??   import... cannot I retrive data from bd even if I put correct data in it if( rs.next...(); } }   Hi, Try to print the sql on console and then run 

Hibernate Questions

hibernate web project - Hibernate
links: http://www.roseindia.net/hibernate/index.shtml http://www.roseindia.net/hibernate/runninge-xample.shtml http://www.roseindia.net/struts/struts...hibernate web project  hi friends,very good morning,how to develop 

Hibernate Questions

hibernate...............
hibernate...............  goodevining. I am using hibernate on eclipse, while connection to database Orcale10g geting error .........driver ARNING..." org.hibernate.exception.GenericJDBCException: Cannot open connection 

Hibernate Questions

Problem in running first hibernate program.... - Hibernate
programs.It worked fine.To run a hibernate sample program,I followed the tutorial below.../FirstExample Exception in thread "main" " http://www.roseindia.net/hibernate/runninge...Problem in running first hibernate program....  Hi...I am using 

Hibernate Questions

java - Hibernate
/hibernate/runninge-xample.shtml Thanks...java  HI guys can any one tell me,procedure for executing spring and hibernate in myeclipse ide,plz very urgent for me,thank's in advance.   

Applet Questions

how to run applet - Applet
how to run applet   Hi everybody i am using connecting jdbc in applet program. this is executed successfully with appletviewer command >appletviewer -J-Djava.security.policy=A0.txt A0.html but cannot in browser 

Hibernate Questions

hibernate on netbeans - Hibernate
hibernate on netbeans  is it possible for me to run the hibernate program on Netbeans IDE 

Hibernate Questions

Hibernate - Hibernate
Hibernate  when I run Hibernate Code Generation wizard in eclipse I'm getting the following error. I added ojdbc14.jar to my build path. Still I'm.../hibernate/index.shtml Hope that it will be helpful for you. Thanks 

Hibernate Questions

Hibernate code - Hibernate
Hibernate code  firstExample code that you have given for hibernate... inserted in the database from this file. http://www.roseindia.net/hibernate/runninge-xample.shtml Thanks 

Hibernate Questions

java compilation error - Hibernate
whosevalues should be inserted into database. i have used hibernate and eclipse it is working fine. but when i make a war file and deploy it using ant and then run it it gives me exception saying that configure url cannot find and null ponter 

Hibernate Questions

hibernate - Hibernate
hibernate  hi i am new to hibernate. i wan to run a select query with oracle database. could you please help me out. my files are: package... hibernate for use SessionFactory sessionFactory = new Configuration 

Hibernate Questions

Hibernate compilation - Hibernate
Hibernate compilation  please explain how to compile and run Hibernate at command prompt ( in dos) with sample example 

Hibernate Questions

hibernate Configuration with eclpse 3.1 - Hibernate
/hibernate/runninge-xample.shtml http://www.roseindia.net...hibernate Configuration with eclpse 3.1  Dear Sir, i m developing a program using hibernate with struts. but i am not able to configure 

JDBC Questions

How Jdbc program can be run??
How Jdbc program can be run??  import java.sql.*; import java.util....(ClassNotFoundException cnf) { System.out.println("Cannot load the Driver... ,but when i run it ,it gives following error-> C:\Program Files\Java 

JDBC Questions

HOW TO RUN JDBC PRORAM ON JDK1.5.0
HOW TO RUN JDBC PRORAM ON JDK1.5.0  import java.sql.*; import...("Cannot load the Driver"); System.exit(1); } Scanner kb=new Scanner(System.in... then it compiled successfully ,but when i run it ,it gives following error-> 

Hibernate Questions

Hibernate-Criteria - Hibernate
Hibernate-Criteria  Hi friends, I am new to hibernate. Im learning it. When im using Criteria im getting exception tht "Criteria cannot... for more information. http://www.roseindia.net/hibernate/hibernate-between 

Hibernate Questions

hibernate on eclipse - Hibernate
hibernate on eclipse  Hi, I know procedure to run Struts on eclipse(i.e create src folder, Run Xdoclet,add external files etc.)But as I am new to Hibernate ,I don't know the procedure.colud you send me procedure to run 

Hibernate Questions

Hibernate error - Hibernate
Hibernate error  I had run hibernate first example but it an error... want more examples of Hibernate please visit the following link. http://roseindia.net/hibernate Thanks and Regards RoseIndia Team 

Hibernate Questions

hibernate firstexample - Hibernate
hibernate firstexample  Hi all. i m new with hibernate,when i m trying to run my first application i m getting following exception. Error reading resource: Employee.hbm.xml give me the solution. Thank you 

Hibernate Questions

About Hibernate - Hibernate
://www.roseindia.net/hibernate">http://www.roseindia.net/hibernate/</a>And run all...About Hibernate  What is Hibernate? How can i learn it fast.  ... object/relational persistence and query service for Java. Hibernate lets you develop 

Hibernate Questions

hibernate code - Hibernate
hibernate code  sir, i have tried ur hibernate 3.0 firt example code, i have done as u have told in the tutorial like import all the related...,but when i run this it shows error i.e Exception in thread "main 

Hibernate Questions

hibernate insertion problem - Hibernate
hibernate insertion problem  Hi , Thanks for the material .Its very gud . when i run FirstExample.java i get the message insertion has been done int the table contact . but whne i look into database data is not inserted 

Java Beginners

error in java progran at run time - Java Beginners
error in java progran at run time  Hello sir,,, i make a servlet... javax.Servlet does not exist import javax.Servlet.*; ^ FirstServlet.java:4: cannot find... GenericServlet ^ FirstServlet.java:6: cannot find 

Java Beginners

error in java progran at run time - Java Beginners
error in java progran at run time  Hello sir,,, i make a servlet... javax.Servlet does not exist import javax.Servlet.*; ^ FirstServlet.java:4: cannot find... GenericServlet ^ FirstServlet.java:6: cannot find 

Hibernate Tutorial Example

Hibernate Getting Started
Hibernate Getting Started       Hibernate Getting Started In this Hibernate Getting Started you will quickly download the a Hibernate running example project and run 

JavaScript Questions

Grid World project Run Error !! help please!!
Grid World project Run Error !! help please!!  i'm trying to make... not "run" here is my code: import info.gridworld.grid.Location; import...(); randomGenerator.nextInt(); //when a bug cannot move , creates 

Hibernate Questions

Hibernate required jar files - Hibernate
Hibernate required jar files  Hi, What are the jar files are required for hibernate and Springs application. I want to run complete application springs and hibernate. Where it will be available? How can i use it i.e. 

Java Beginners

Applet run with appletviewer but not in browser, any code problem.
Applet run with appletviewer but not in browser, any code problem.  ... fine but not run from the browser as http://localhost:8080/ProgressoApplication... the 52 cards will be show in browser as by "appletviewer" and run as "java applet" I 

JDBC Questions

cannot connect to database - JDBC
cannot connect to database  Iam using eclipse in my system ,when connecting the database mysql version 5.0 to the eclipse iam getting an error as ""Creating connection to mysql has encountered a problem.Could not connect to mysql 

Hibernate Questions

Hibernate log4j
Hibernate log4j  Hi, when i run the FirstExample.java given in the tutorial, i got the right output, what my doubt is from where i am getting the log4j messages, like log4j:WARN no appenders could be found for logger 

Flex Questions

combobox cannot be resolved in JavaFX
combobox cannot be resolved in JavaFX  I want to design one application with a combobox containing items. and while selecting i want to give user autocomplete suggestion. but while doing this combobox is not getting resolved. i 

JavaScript Questions

cannot do the additional operator
cannot do the additional operator  i got problem with additional and multiplication operator...please anyone help me <html> <head> <title>Simple Calculator</title> <script language = "JavaScript 

Hibernate Questions

Eclipse hibernate problem
Eclipse hibernate problem  hie..i've just started a basic hibernate... an error saying "import org.hibernate.* cannot be resolved" ,mport org.hibernate.SessionFactory cannot be resolved. Can u please help me with this..    

Hibernate Questions

Java - Hibernate
Java  friends plz help me. when i run hybernate program i got, this type of output. ---------------------------- Inserting Record Done Hibernate... = null; try{ // This step will read hibernate.cfg.xml and prepare hibernate 

Struts Questions

Cannot find tag library descriptor
Cannot find tag library descriptor  Cannot find tag library descriptor...? How to resolve in struts in eclipse 

Java Beginners

System.out.println cannot be written inside a class
System.out.println cannot be written inside a class  why System.out.println cannot be written inside a class 

Java Beginners

PdfCopyFields cannot be resolved - Java Beginners
PdfCopyFields cannot be resolved   Trying to concatenate PDF files. I downloaded the example from PdfCopyFields cannot be resolved but other 

Java Beginners

PdfCopyFields cannot be resolved - Java Beginners
PdfCopyFields cannot be resolved  PdfCopyFields cannot be resolved but other classes in the iText-2.1.0.jar are resolved. Any suggestions? Thanks 

Hibernate Questions

org.hibernate.exception.GenericJDBCException - Hibernate
}: javax.faces.el.EvaluationException: org.hibernate.exception.GenericJDBCException: Cannot open 

Hibernate Questions

J2ee - Hibernate
that cannot insert exampleVO into database.. please help to me to solve this problem 

JSP Interview Questions

Failed to run Online Quiz Application in JSP - JSP-Interview Questions
your question. Thanks  Hi, I cannot run your online quiz...Failed to run Online Quiz Application in JSP   Hi, I have been following your following link to run the online quiz application, but I failed 

Hibernate Questions

myfaces,hibernate and spring integration - Hibernate
_hibernate" inside ur MySql. 7)save the jdbc.properties file 8)run the server 9...myfaces,hibernate and spring integration  sorry, in the previous.... so, plz help me out. plz give the steps to run this program.(step-by-step 

Hibernate Questions

StandardServiceRegistryBuilder not working in Hibernate 4.3.1
StandardServiceRegistryBuilder not working in Hibernate 4.3.1  Hi, It seems that the StandardServiceRegistryBuilder not working in Hibernate 4.3.1.... working with the Hibernate 4.3.1 and it is giving following error message: Access 

Hibernate Questions

Difficulty in plugging log4J with Hibernate.
Difficulty in plugging log4J with Hibernate.  I am using Hibernate 3.6. Followed your all instruction of plugging log4j with my hibernate code... log4j.properties in the class path. log4j.jar in the class path Still when I run 

Hibernate Questions

server problem - Hibernate
server problem  dear sir please give me best soloution how run hibernate and spring application on jboss and weblogic10.1.0 sever and compile thanks 

Java Beginners

cannot find symbol - Java Beginners
cannot find symbol  public class Areatest { public static void main(String[]args) { Figure[]figures={new Triangle(2.0,3.0,3.0),new Rectangle(4.0,6.0),new Square(5.0)}; for(int i=0;i 

Hibernate Questions

RunTime Exception in stand alone app with hibernate. - Hibernate
RunTime Exception in stand alone app with hibernate.  I have written small stand alone application using hibernate-3.2. When I run the application, It causes following types of exceptions. log4j:WARN Please initialize 

Java Beginners

cannot find symbol method nextchar()??
cannot find symbol method nextchar()??  import java.util.Scanner; public class Calc5{ public static void main(String args[]){ Scanner obj = new Scanner(System.in); System.out.println("please enter 

Struts Questions

org.apache.struts.action.ActionMessage cannot be cast to org.apache.struts.action.ActionError - Struts
org.apache.struts.action.ActionMessage cannot be cast...: org.apache.struts.action.ActionMessage cannot be cast to org.apache.struts.action.ActionError... java.lang.ClassCastException: org.apache.struts.action.ActionMessage cannot 

Programming Tutorials

HIBERNATE- BASICS
HIBERNATE- BASICS  (R.S.Ramaswamy)- ( in 3 parts) (part-1) ( CMP-EJB vs. HIBERNATE) (published in DeveloperIQ-July-2005... is agog with excitement about a very popular open-source technology , Hibernate 

Blog

Hibernate tools update site
Hibernate tools update site Are you looking for hibernate tools update site? Hibernate Tools is also available for the popular Eclipse plugin. You can download the latest version from Hibernate Tools site. You can also run Hibernate 

Java Beginners

Cannot assign an ArrayList to an empty ArrayList
Cannot assign an ArrayList to an empty ArrayList  I have a java file, in which a method returns an ArrayList. This ArrayList is supposed to contain all the Student object which are in X year. StudentsManager.java public 

Java Beginners

null pointer exception cannot be removed
null pointer exception cannot be removed  class list { public int integer; public String elem; public list next; private Exception nothing; public int r; public list() { this(null,null,0 

Java Beginners

image cannot be saved - Java Beginners
image cannot be saved  In the following program when we click on the menu item import, we can show any image on the panel but when we click on save the image is not drawn on the desired location.......please check the following 

Hibernate Questions

java compilation error - Hibernate
java compilation error  hi i am getting org.hibernate.exception.GenericJDBCException: Cannot open connection exception when runnig the code why this exception is coming 

Hibernate Questions

How to integrate core java with Hibernate
; Simple Hibernate Example ..! The files required to run the simple... with Hibernate How to integrate core java with Hibernate   xxxxxxxxx   Please visit the following link: Java with Hibernate The above 

Hibernate Interview Questions

HIBERNATE
HIBERNATE   What is difference between Jdbc and Hibernate 

Hibernate Interview Questions

hibernate
hibernate  what is hibernate flow 

Hibernate Questions

hibernate
hibernate  what is hibernate listeners 

Hibernate Questions

Hibernate giving exception - struts - MySQL - Hibernate
Hibernate giving exception - struts - MySQL  Hi all, My name is Asif. I am trying to Run one simple application using NetBeans IDE, and using Struts frame work with hibernate and MySQL database. I am getting exection 

Hibernate Questions

What's the usage of Hibernate QBC API?
What's the usage of Hibernate QBC API?  Hi, What's the usage of Hibernate QBC API? Thanks,   Hi, Hibernate Query By Criteria (QBC) API is used to create queries by manipulation of criteria objects at run 

Hibernate Tutorial Example

Hibernate Tutorials
to run the example in the Eclipse.   Understanding Hibernate O/R... Hibernate Tutorials       Deepak Kumar Deepak... by him on hibernate. Abstract: Hibernate is popular open source object 

Hibernate Questions

Hibernate criteria count.
Hibernate criteria count.  How do we count rows using criteria in hibernate?   Create hibernate configuration file (hibernate.cfg.xml... create Persistent class ?Hibernate uses the Plain Old Java Object (POJO) classes 

Hibernate-Tutorials

Hibernate criteria uniqueResult.
Hibernate criteria uniqueResult. Here, we will introduce you to about the uniqueResult() method of Criteria class of hibernate. Hibernate Criteria class...("Student = " + stud.getName()); } } When you run 

Hibernate Questions

myJSF,Hibernate and Spring integration code is not working. - Hibernate
myJSF,Hibernate and Spring integration code is not working.  the code given in this url : http://www.roseindia.net/roseindiamembers/login.php i have... not able to get the proper page. so, plz help me out. plz give the steps to run 

Hibernate-Tutorials

Hibernate criteria avg.
Hibernate criteria avg. In this example, you will see the use of avg() method...;Average value of fee column : " + totalFee); } } When you run this application it will display message as shown below: Hibernate 

Hibernate-Tutorials

Hibernate criteria sum.
Hibernate criteria  sum. Here, we will introduce you to about the sum... : " + totalFee); } } When you run this application it will display message as shown below: Hibernate: select sum(this_.fee 

Hibernate Questions

Hibernate
Hibernate  how to use pagination concept in Hibernate 

Hibernate Questions

hibernate
hibernate  what is hibernate why we use 

Hibernate Questions

Hibernate
Hibernate  hibernate delete query execution 

Hibernate Questions

hibernate
hibernate  please give me the link where i can freely download hibernate software(with dependencies)   Learn hibernate, if you want to learn hibernate, please visit the following link: Hibernate Tutorials 

Java Beginners

hibernate
hibernate  how to uses optional column in hibernate 

Hibernate-Tutorials

Hibernate criteria setFirstResult.
Hibernate criteria setFirstResult. In this tutorial, you will see the use of seFirstResult() method of criteria class. The setFirstResult() tell hibernate...;**************************************"); } } When you run this application it will display 

Struts Questions

error cannot access class com.opensymphony.xwork2.ActionContext, wrong version
error cannot access class com.opensymphony.xwork2.ActionContext, wrong version  Error(1,32): cannot access class com.opensymphony.xwork2.ActionContext; class file has wrong version 49.0, should be 45.3 or 46.0 or 47.0 or 48.0 

Hibernate Tutorial Example

Hibernate Criteria Not In
Hibernate Criteria Not In It is reverse of the Hibernate Criteria In, It take...()); } } } When you run this application it will display message as shown below: Hibernate: select this_.roll_no as roll1_0_0_, this_.name as name0_0 

Hibernate Questions

hibernate
hibernate   I want to learn how to use hibernate framework in web application . for storing database in our application 

Hibernate Questions

hibernate
hibernate   I want to learn how to use hibernate framework in web application . for storing database in our application 

Hibernate Questions

Problem with open connection - Hibernate
Problem with open connection  Hi Team, I am running one hibernate application and the database is ORACLE 10g.I am getting the below error.I... where my mistake is ? org.hibernate.exception.GenericJDBCException: Cannot 

Hibernate Questions

hibernate
why hibernate?  why hibernate?   Hibernate: -Hibernate... library. It solves object-relational impedance mismatch problems. Hibernate makes the application development process easy Hibernate saves the development 

Hibernate-Tutorials

Hibernate criteria sqlRestriction.
Hibernate criteria sqlRestriction. In this tutorial, we will introduce you...;); } } } When you run this application it will display message as shown below: Hibernate: select this_.id as id0_0_, this_.name as name0_0_, this_.class 

Hibernate-Tutorials

Hibernate criteria to sql.
Hibernate criteria to sql. In this tutorial, you will see the use of sql... you run this application it will display message as shown below: Hibernate: select this_.id as id0_0_, this_.name as name0_0 

Java Beginners

incompatible types: Row cannot be converted to XSSFRow
incompatible types: Row cannot be converted to XSSFRow  In my POI project i am getting the following error: incompatible types: Row cannot be converted to XSSFRow How to solve the error? Thanks   Hi, You should use 

Mobile Applications Questions

cannot declare variable inside @interface or @protocol
cannot declare variable inside @interface or @protocol  When i declare variable inside the interface, it always send an error saying "cannot declare variable inside @interface or @protocol". Can anyone please tell me why 

Hibernate Questions

hibernate
hibernate  why we should use hibernate projection 

Java Beginners

hibernate
hibernate  pls give one simple example program for hibernate 

Hibernate Questions

Hibernate
Hibernate  Please tell me the difference between hibernate and jdbc 

Hibernate Interview Questions

Hibernate
Hibernate  How do you handle parent - child tables relationships in hibernate? How do you handle Detach state in hibernate 

Advertisements Advertisements
 

 

 

DMCA.com