"[SOLVED] RAPIDMINER and LINUX Installation"

emma
emma New Altair Community Member
edited November 5 in Community Q&A
Hi all,

I tried installing Rapidminer on my Linux OS(Red HAT). I have already used Rapidminer in windows.
According to the installation instructions I upgraded my java version from 1.4.2 to 1.5.0_09 . The next part was to simply unzip the files and type in java -jar rapidminer.jar  in the installed directory.However this doesnt seem to work and i have been getting the following error,

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)

It looks like it has  a problem with the java version but i downloaded it from the sun website  . So if anyone has a solution/suggestions please let me know.

Thanks,
Emma

Answers

  • IngoRM
    IngoRM New Altair Community Member
    Hi,

    It looks like it has  a problem with the java version but i downloaded it from the sun website  . So if anyone has a solution/suggestions please let me know.
    This is indeed a problem with a wrong Java version. We unfortunately used Java 6 for packaging the latest 4.2 release (although only Java 5 is necessary, we use Java 6 for other projects and accidentally also used Java 6 for the RM 4.2 release). This was pointed out in this thread:

    http://rapid-i.com/rapidforum/index.php/topic,183.0.html

    So simply installing and using Java 6 should solve the problem.

    Cheers,
    Ingo
  • sav
    sav New Altair Community Member
    would compiling the source help fix this?
  • sav
    sav New Altair Community Member
    I am using Apple Mac OSX 10.5
    Java version that I am supplied with by Apple is its latest:
    java version "1.5.0_30"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
    Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)

    Im getting the error:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
    when I try to run scripts/rapidminer

    What should I do to use RapidMiner?
  • Nils_Woehler
    Nils_Woehler New Altair Community Member
    Hi sav,

    did you try to update your java version to 1.6? (http://support.apple.com/downloads/Java_for_Mac_OS_X_10_5_Update_4)

    Best,
    Nils
  • sav
    sav New Altair Community Member
    hi,
    thanks for the reply,

    I actually did update this one: http://support.apple.com/downloads/Java_for_Mac_OS_X_10_5_Update_10

    isn't it newer than update 4?

  • sav
    sav New Altair Community Member
    the problem was that my older version of Java was being pointed in my symlinks