psal / jstylo

JStylo-Anonymouth - Authorship Attribution and Authorship Anonymization Framework
Other
176 stars 42 forks source link

fresh maven install, "mvn package" in terminal from dir produces chaos #15

Open QuixoticGitHub opened 5 years ago

QuixoticGitHub commented 5 years ago

[INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 92 source files to /jstylo-master/target/classes [INFO] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/featureProcessing/CumulativeFeatureDriver.java: Some input files use or override a deprecated API. [INFO] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/featureProcessing/CumulativeFeatureDriver.java: Recompile with -Xlint:deprecation for details. [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /jstylo-master/src/test/java/edu/drexel/psal/jstylo/test/BekahUtil.java:[12,1] package sun.audio does not exist [ERROR] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/GUI/AnalysisTabDriver.java:[317,96] incompatible types: java.util.Enumeration cannot be converted to java.util.Enumeration [ERROR] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/GUI/AnalysisTabDriver.java:[671,80] incompatible types: java.util.Enumeration cannot be converted to java.util.Enumeration [ERROR] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/GUI/AnalysisTabDriver.java:[684,88] incompatible types: java.util.Enumeration cannot be converted to java.util.Enumeration [ERROR] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/GUI/ClassTabDriver.java:[363,89] incompatible types: java.util.Enumeration cannot be converted to java.util.Enumeration [ERROR] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/GUI/ClassTabDriver.java:[408,97] incompatible types: java.util.Enumeration cannot be converted to java.util.Enumeration [ERROR] /jstylo-master/src/test/java/edu/drexel/psal/jstylo/test/BekahUtil.java:[464,9] cannot find symbol symbol: class AudioStream location: class edu.drexel.psal.jstylo.test.BekahUtil [ERROR] /jstylo-master/src/test/java/edu/drexel/psal/jstylo/test/BekahUtil.java:[464,30] cannot find symbol symbol: class AudioStream location: class edu.drexel.psal.jstylo.test.BekahUtil [ERROR] /jstylo-master/src/test/java/edu/drexel/psal/jstylo/test/BekahUtil.java:[466,20] package AudioPlayer does not exist [ERROR] /jstylo-master/src/test/java/edu/drexel/psal/jstylo/test/BekahUtil.java:[468,20] package AudioPlayer does not exist [INFO] 10 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:50 min [INFO] Finished at: 2019-08-30T15:23:06+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project jstylo: Compilation failure: Compilation failure: [ERROR] /jstylo-master/src/test/java/edu/drexel/psal/jstylo/test/BekahUtil.java:[12,1] package sun.audio does not exist [ERROR] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/GUI/AnalysisTabDriver.java:[317,96] incompatible types: java.util.Enumeration cannot be converted to java.util.Enumeration [ERROR] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/GUI/AnalysisTabDriver.java:[671,80] incompatible types: java.util.Enumeration cannot be converted to java.util.Enumeration [ERROR] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/GUI/AnalysisTabDriver.java:[684,88] incompatible types: java.util.Enumeration cannot be converted to java.util.Enumeration [ERROR] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/GUI/ClassTabDriver.java:[363,89] incompatible types: java.util.Enumeration cannot be converted to java.util.Enumeration [ERROR] /jstylo-master/src/main/java/edu/drexel/psal/jstylo/GUI/ClassTabDriver.java:[408,97] incompatible types: java.util.Enumeration cannot be converted to java.util.Enumeration [ERROR] /jstylo-master/src/test/java/edu/drexel/psal/jstylo/test/BekahUtil.java:[464,9] cannot find symbol [ERROR] symbol: class AudioStream [ERROR] location: class edu.drexel.psal.jstylo.test.BekahUtil [ERROR] /jstylo-master/src/test/java/edu/drexel/psal/jstylo/test/BekahUtil.java:[464,30] cannot find symbol [ERROR] symbol: class AudioStream [ERROR] location: class edu.drexel.psal.jstylo.test.BekahUtil [ERROR] /jstylo-master/src/test/java/edu/drexel/psal/jstylo/test/BekahUtil.java:[466,20] package AudioPlayer does not exist [ERROR] /jstylo-master/src/test/java/edu/drexel/psal/jstylo/test/BekahUtil.java:[468,20] package AudioPlayer does not exist [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

QuixoticGitHub commented 5 years ago

stacktrace.txt

QuixoticGitHub commented 5 years ago

fulldebuglog.txt

SorenKF commented 4 years ago

I second this. From what I can tell, the sun.audio API has been removed from versions of java SDK 9+. The swing.tree issues I get, but I do not understand them.

plowman commented 3 years ago

Hey @QuixoticGitHub @SorenKF I managed to find a workaround for this stuff. I have a new branch here with a couple of small changes.

Then I run this:

# Build the jstylo jar
mvn clean install -DskipTests

# Run the gui and include the jgaap jar in the classpath
java -cp ./lib/jgaap-5.2.0-lite.jar:./target/jstylo-2.9.0-jar-with-dependencies.jar edu.drexel.psal.jstylo.GUI.GUIMain

This launches the GUI. Not sure yet if this GUI does everything as expected, but hopefully that at least helps whoever comes next.

vmrfrankie commented 3 years ago

Hi @plowman I used that line to run the gui and it launched but it is blank. Is it the same for you or you able to see more.

plowman commented 3 years ago

@vmrfrankie did you do it from the branch I linked to? It works for me there, and stuff shows up, etc.

vmrfrankie commented 3 years ago

@plowman Gotcha I'll try it again, thanks for letting me know!

Yup it worked for me after I downloaded the code from your branch!

vmrfrankie commented 3 years ago

Hey @plowman I'm having some issues with the classifiers, just wondering do they work for you? I get a Classifier Selection Error every time I click on one of them.

Minivolt commented 3 years ago

Has anyone had success using @plowman's branch recently? I keep getting the following error after running:

Error: Could not find or load main class edu.drexel.psal.jstylo.GUI.GUIMain Caused by: java.lang.ClassNotFoundException: edu.drexel.psal.jstylo.GUI.GUIMain