RM 4.2 on OS X

Legacy User
Legacy User New Altair Community Member
edited November 5 in Community Q&A
Hi!

I'm having trouble starting Rapidminer on OS X 10.5.
Tried it with several commands, i get this message every time:
xception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
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:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
I hope someone can give me feedback on this.


Tagged:

Answers

  • IngoRM
    IngoRM New Altair Community Member
    Hi,

    it seems that you do not use the appropriate Java version. The non-Windows package of RapidMiner (....zip) needs at least Java 5 or higher. You can download and install the latest Java version from Sun.

    Cheers,
    Ingo
  • Legacy User
    Legacy User New Altair Community Member
    I've installed the newest version! This bug only appears with 4.2, 4.1b is working well.
  • IngoRM
    IngoRM New Altair Community Member
    Hi,

    did you try to use Java 6? It is now (finally!) available for Mac and probably will resolve your problems.

    Cheers,
    Ingo
  • Legacy User
    Legacy User New Altair Community Member
    Yes, Java 6 is installed on both Macs (my Macbook Pro and the imac)

  • Legacy User
    Legacy User New Altair Community Member
    Do I have to start RM with a special console command, in order to use the new JAVA Version?


    Thanks
    Johannes
  • Legacy User
    Legacy User New Altair Community Member
    I FINALLY solved the problem!
    One should mention that Rapidminer requires Java 6 in order to function with OS 10.5 / 10.4! It is NOT  compatible with Java 5 aka 1.5xxx

    So:

    1. Download the newest JAVA Version from Apple.com (google for JAVA OS X)
    2. Install
    3. Search for JAVA Properties in Spotlight
    4. Change the order of the elements in the bottom like shown on the picture.

    image




  • IngoRM
    IngoRM New Altair Community Member
    Thanks for sending this in. Basically, it would also work with Java 5 but it seems that the last compilation was done with Java 6 (we internally switched to Java 6 already). Sorry for the inconvenience. We will update the mark on our web site.

    Cheers,
    Ingo
  • browndar
    browndar New Altair Community Member
    I actually have a constraint that has me needing to use 1.5 still.  I just build the rapidminer jar from source with 1.5 and it worked out well.  Of course it may be problematic in the future if any 1.6 specific code makes its way in.
  • IngoRM
    IngoRM New Altair Community Member
    We actually do currently not plan to switch to Java 6 (although we use it internally). As you said, RapidMiner can be compiled with Java 5 and Java 6 specific code is only used via reflection at one or two places - for that reason, we deliver the Windows version together with Java 6.

    Cheers,
    Ingo
  • dbeks
    dbeks New Altair Community Member
    Hi everyone and especially browndar,

    is it possible that you provide me the with Java 1.5 built rapidminer.jar? Maybe you can provide a download link?
    Thank you very much in advance.

    dbeks
  • Legacy User
    Legacy User New Altair Community Member
    Could you be more specific on how to set the Java properties on a MAC 10.5?

    Sorry for the newbie question.

    Thanks,
    Joe
  • Legacy User
    Legacy User New Altair Community Member
    Hello,

    I'd like to echo Joe's question above -- how can one install RM 4.2 on Mac OSX 10.4.11? I have Java 1.5.0 installed, but double clicking on lib/rapidminer.jar does not launch the program. When I try to run that file from Terminal using java -jar lib/rapidminer.jar, I get the following errors:
    Exception in thread "main" 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Any idea why this might be happening? Thanks very much in advance.





  • Legacy User
    Legacy User New Altair Community Member
    Sorry for the double post, I see this was answered in the Linux thread. Is there any alternative to downloading Java 6, which isn't available for non-Intel apples?
  • IngoRM
    IngoRM New Altair Community Member
    Hi Jason,

    currently the only alternative is to download and build RapidMiner yourself from the CVS version (it's actually quite easy by using Eclipse and is described in detail on our web site). The next release (4.3) will again be delivered based on Java 5 but it will take some weeks for some final tuning before we will do this release.

    Cheers,
    Ingo