Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2008
    Location
    London
    Posts
    4

    Hello World Error

    Hi,

    Have just tried the HelloWorld java example and I don't understand the error I am getting when launching LS.
    Any idea?

    jag

    Code:
    04.Nov.08 22:27:51,484 <ERROR> Data adapter HELLOWORLD.DEFAULT init error
    java.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 com.lightstreamer.a.wb.loadClass(wb.java)
            at com.lightstreamer.g.z.c(z.java)
            at com.lightstreamer.g.z.a(z.java)
            at com.lightstreamer.g.z.b(z.java)
            at com.lightstreamer.g.g.a(g.java)
            at com.lightstreamer.a.p.run(p.java)
    04.Nov.08 22:27:51,501 <ERROR> Error while loading the Adapters
    java.lang.Exception: Unexpected error
            at com.lightstreamer.g.z.a(z.java)
            at com.lightstreamer.g.z.b(z.java)
            at com.lightstreamer.g.g.a(g.java)
            at com.lightstreamer.a.p.run(p.java)
    Caused by: java.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 com.lightstreamer.a.wb.loadClass(wb.java)
            at com.lightstreamer.g.z.c(z.java)
            ... 4 more

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi Jaguarg,

    that's the kind of error shown when you try to run a class compiled with a certain version of java on an older virtual machine.

    Can you check which is yours virtual machine version and which target version are you compiling for?

    See in example this thread: http://forums.sun.com/thread.jspa?th...art=0&tstart=0

  3. #3
    Member
    Join Date
    Nov 2008
    Location
    London
    Posts
    4
    sorted. exactly that. I just changed the target compiler in eclipse and all good now.

    cheers

    jag

 

 

Similar Threads

  1. Hello World -- Socket
    By mohelal84@yahoo.com in forum Adapter Protocol
    Replies: 5
    Last Post: March 25th, 2015, 10:26 AM
  2. Error when create Hello world sample
    By thitkhohotvit in forum Adapter APIs
    Replies: 9
    Last Post: January 19th, 2011, 12:50 PM
  3. How to Make Streaming Mode for Hello World Socket
    By gani in forum Adapter Protocol
    Replies: 5
    Last Post: April 30th, 2010, 11:03 AM
  4. Hello World Remote Socket Adapter
    By kclerc in forum Adapter Protocol
    Replies: 7
    Last Post: April 12th, 2010, 12:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 03:15 AM.