Results 1 to 3 of 3

Thread: Install J2ME

  1. #1
    Join Date
    Jun 2008
    Location
    Budapest, Hungary
    Posts
    61

    Unhappy Install J2ME

    Does anybody knows how to install java ME on openSUSE?
    It keeps me telling, that no sutable java version found, and cannot find something called JavaVersionTester

    Result:
    Code:
    Testing /usr/bin/X11/java...
    Exception in thread "main" java.lang.ClassFormatError: Extra bytes at the end of class file com/sun/kvem/environment/JavaVersionTester
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:637)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
    	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
    	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
    Could not find the main class: com.sun.kvem.environment.JavaVersionTester. Program will exit.
    
    No suitable Java interpreter was detected

  2. #2
    Join Date
    Jun 2008
    Location
    Finland, European Union
    Posts
    1,879

    Default Re: Install J2ME

    Sounds like the program may have issues with the OpenJDK so perhaps installing the normal Sun Java packages would alleviate the issue;

    Open a terminal and su - to root privileges, then issue; zypper in java-1_6_0-sun java-1_6_0-sun-devel

    That should get you on the way by installing the normal Sun Java packages and development environment. You can remove the OpenJDK if you have it installed.

  3. #3
    Join Date
    Jun 2008
    Location
    Budapest, Hungary
    Posts
    61

    Default Re: Install J2ME

    I've already installed them. (Probably the dev. package is not installed...)

    But I've just been able to install [something], all I needed, to install te Java Wireless Toolkit instead of the Java MicroEdition, and it has installed. This way, I can use netBeans, that I originally wanted, but did not mentioned.

    Also, just after this topic, I've tried to install JDK and J2ME from Sun, but that didn't work out, so I bet that the problem is something around with Java, and nothing to do with openSUSE.

    Btw. if OpenJDK wouldn't be installed, I wouldn't get even this message, only that JDK was not found. -- I guess, because after this message, you can give another path to look for Java, and does not write this error, it fails earlier.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •