I'm trying to use PrefixSpan with strings, through the graphical interface as well as command line. But I always get the following error:
$ java -jar spmf.jar run "PrefixSpan_with_strings" test_files/contextPrefixSpanStrings.txt 50% java.io.FileNotFoundException: file:/home/saiph/spam/spmf.jar!/ca/pfv/spmf/tests/contextPrefixSpanStrings.txt (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:138) at ca.pfv.spmf.sequentialpatterns.prefixspan_with_strings_saveToFile.SequenceDatabase.loadFile(SequenceDatabase.java:47) at ca.pfv.spmf.gui.MainWindow.runAlgorithm(MainWindow.java:964) at ca.pfv.spmf.gui.MainWindow.commandLine(MainWindow.java:1530) at ca.pfv.spmf.gui.MainWindow.main(MainWindow.java:168) Exception in thread "main" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207) at java.awt.Window.<init>(Window.java:535) at java.awt.Frame.<init>(Frame.java:420) at java.awt.Frame.<init>(Frame.java:385) at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1756) at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1831) at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1697) at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:863) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:667) at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:638) at ca.pfv.spmf.gui.MainWindow.runAlgorithm(MainWindow.java:1501) at ca.pfv.spmf.gui.MainWindow.commandLine(MainWindow.java:1530) at ca.pfv.spmf.gui.MainWindow.main(MainWindow.java:168)
It is a bug. It works fine under Windows. But when I test it with Cygwin, it gives a similar error.
It must be something with how I handle the file paths in the software. I tried to make it platform independent. But since I mostly work under Windows, I had not see that problem.
I will check this out tomorrow and fix it.
Until then, if you try on Windows, it will work fine.
Best,
Philippe
Edited 2 time(s). Last edit at 04/05/2013 03:11PM by webmasterphilfv.