The Data Mining Forum                             open-source data mining software data mining conferences Data Science for Social and Behavioral Analytics DSSBA 2022 data science journal
IMPORTANT: This is the old Data Mining forum.
I keep it online so that you can read the old messages.

Please post your new messages in the new forum: https://forum2.philippe-fournier-viger.com/index.php
 
Running SPMF in Debian Linux Shell
Posted by: Igor
Date: February 12, 2015 04:08AM

Hello and thank you for this great tool you made!

I have used SPMF on my WINDOWS machine and it is working great.
Now I would like to run it from my Debian Linux shell.
I downloaded the spmf.jar today.
I have followed the instructions on the webpage but I keep getting this:

# java -jar /usr/share/java/spmf.jar run PrefixSpan contextPrefixSpan.txt output.txt 50%

Exception in thread "main" java.lang.UnsupportedClassVersionError: ca/pfv/spmf/gui/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: ca.pfv.spmf.gui.Main. Program will exit.

My Java version
# java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

I tried copying spmf.jar to /usr/share/java because I have no problem running Weka this way:

# java -cp /usr/share/java/weka.jar weka.classifiers.trees.J48 -t /usr/share/doc/weka/examples/weather.arff

So I guess Java is working ok.


Thanks in advance for any suggestions!

Regards,
Igor

Options: ReplyQuote
Re: Running SPMF in Debian Linux Shell
Date: February 12, 2015 04:34AM

Hi,

Thanks for using SPMF and happy that you like it! ;-)

The problem is with the version of Java that you have installed. You have version 1.6.

The error message " Unsupported major.minor version 51.0 " indicates that you should have version 51.0, which is:

J2SE 8 = 52,
J2SE 7 = 51,
J2SE 6.0 = 50,
J2SE 5.0 = 49,
JDK 1.4 = 48,
JDK 1.3 = 47,
JDK 1.2 = 46,
JDK 1.1 = 45

Thus, to solve the problem you should upgrade your java to the latest version. This error occurred because I use a recent version of Java to compile the code.

However, note that an alternative solution would be to recompile the code with Java 1.6.

Best,

Philippe



Edited 1 time(s). Last edit at 02/12/2015 04:35AM by webmasterphilfv.

Options: ReplyQuote
Re: Running SPMF in Debian Linux Shell
Posted by: Igor
Date: February 16, 2015 02:38AM

Thank you, that clears it.

I have read a lot of your (and your colleagues) papers on integrating SPM in your CanadaARM ITS.

I am working on a web based (PHP,MySQL) ITS that will work in a similar way (be integrated with SPMF) and use the frequent sequences found as one of the steps in adapting the order of the learning units (set in the knowledge base) to each student.

So far it is a challenge to implement, but hopefully I make it...

Options: ReplyQuote
Re: Running SPMF in Debian Linux Shell
Date: February 16, 2015 05:07AM

Hi Igor,

That is interesting. Looking forward to know more about your research when you will get some results. ;-)

Best,
Philippe

Options: ReplyQuote


This forum is powered by Phorum and provided by P. Fournier-Viger (© 2012).
Terms of use.