Or more simple, as a first atempt, Make sure you are using the same versions of JAVA and hence the JVM's on both sides, at the server machine as well as on the client machine. if the development environment i.e. netbeans or eclipse is on one machine (at the client code side) and the service you propagate/deploy to a dedicated server machine is on a second different machine your error will happen.
Having exact similar versions of Java is also required for remote and server side code debugging with netbeans on the client machine. Josef Stadelmann -----Ursprüngliche Nachricht----- Von: Karim Hamed-abdelouahab [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. Februar 2007 18:03 An: [email protected] Betreff: Re: error with samples (here quickstart) Hello alien overlord, thank you for your information. Mr google.com is'nt so readable like your mails. Best regards. Karim On 2/21/07, Javier Kohen <[EMAIL PROTECTED]> wrote: > El mié, 21-02-2007 a las 15:32 -0100, Karim Hamed-abdelouahab escribió: > > Hallo, > > here is the output when I tried to upload a sample example (quickstart): > > > > apache Tomcat/4.1.31 JDK( 1.4.1_07-b02) Server win2k (SP4) > > > > OUTPUT: > > Error: java.lang.UnsupportedClassVersionError: > > samples/quickstart/service/pojo/StockQuoteService (Unsupported > > major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native > > > Can someone help, or give me a hint? > > Did anyone ever introduce you to Mr. Google.com? Or do you even know the > Java SE platform (javadoc) API documentation? > > That exception indicates that you are trying to run program code on a > Java VM that doesn't understand the bytecode version you're giving it. > In other words, you're feeding a Java 1.4 VM code seemingly compiled > with a Java 5 compiler. > > While you're doing your homework reading the corresponding > documentation, make sure to check out the "target" compiler option. You > can use it to ask the Java 5 compiler to produce code a Java 1.4 VM can > understand. > > Yours truly, > your alien overlord. > -- > Javier Kohen <[EMAIL PROTECTED]> > ICQ: blashyrkh #2361802 > Jabber: [EMAIL PROTECTED] > > -- Mr K. HAMED-ABDELOUAHAB
