Luyten icon indicating copy to clipboard operation
Luyten copied to clipboard

Installing error on linux ...

Open aiamuzz opened this issue 7 years ago • 10 comments

getting the following error while installing ... I am on DeepinOS (Debian based distro)

on ... java version "9" Java(TM) SE Runtime Environment (build 9+181) Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

[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 28 source files to /media/muz/srcRepo/android/reverseEngineering/tools/Luyten-master/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] /media/muz/srcRepo/android/reverseEngineering/tools/Luyten-master/src/us/deathmarine/luyten/ConfigSaver.java: Some input files use or override a deprecated API.
[WARNING] /media/muz/srcRepo/android/reverseEngineering/tools/Luyten-master/src/us/deathmarine/luyten/ConfigSaver.java: Recompile with -Xlint:deprecation for details.
[INFO] 2 warnings 
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /media/muz/srcRepo/android/reverseEngineering/tools/Luyten-master/src/us/deathmarine/luyten/Model.java:[648,74] incompatible types: java.util.Enumeration<javax.swing.tree.TreeNode> cannot be converted to java.util.Enumeration<javax.swing.tree.DefaultMutableTreeNode>
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:33 min
[INFO] Finished at: 2017-12-21T13:48:16+05:30
[INFO] Final Memory: 21M/69M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project luyten: Compilation failure
[ERROR] /media/muz/srcRepo/android/reverseEngineering/tools/Luyten-master/src/us/deathmarine/luyten/Model.java:[648,74] incompatible types: java.util.Enumeration<javax.swing.tree.TreeNode> cannot be converted to java.util.Enumeration<javax.swing.tree.DefaultMutableTreeNode>
[ERROR] 
[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

aiamuzz avatar Dec 21 '17 08:12 aiamuzz

What kind of java/JDK are you using? from here latest J9 is 9.0.1

http://www.oracle.com/technetwork/java/javase/downloads/index.html

and your logs showns 9 build 181 (?!?!)

greenozon avatar Dec 21 '17 09:12 greenozon

no ... its not the latest from the url you've mention ... i had installed build 181 a couple of months back.

aiamuzz avatar Dec 21 '17 09:12 aiamuzz

the question is where did you get it, is it official java build? version 9 has build 01 ver 8 - build 152 latest

where does 181 come from

greenozon avatar Dec 21 '17 10:12 greenozon

oh ... hahahaha ... its the Oracle official java build ... i had downloaded way back in september ...

aiamuzz avatar Dec 21 '17 10:12 aiamuzz

Procyon has issues with Java 9. https://bitbucket.org/mstrobel/procyon/issues/320/java-9-sunmiscurlclasspath-and

deathmarine avatar Dec 22 '17 03:12 deathmarine

wont work on the Java 7 either ...

error ...

[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ luyten ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ luyten ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 9 resources
[INFO] Copying 0 resource
[INFO] 
[INFO] --- download-maven-plugin:1.3.0:wget (default) @ luyten ---
[INFO] Got from cache: /home/muz/.m2/repository/.cache/download-maven-plugin/universalJavaApplicationStub.sh_66973b52e5a37f503b7d1f5dd5f7b54f
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ luyten ---
[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 28 source files to /media/muz/srcRepo/android/reverseEngineering/tools/Luyten-master/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] /media/muz/srcRepo/android/reverseEngineering/tools/Luyten-master/src/us/deathmarine/luyten/ConfigSaver.java: Some input files use or override a deprecated API.
[WARNING] /media/muz/srcRepo/android/reverseEngineering/tools/Luyten-master/src/us/deathmarine/luyten/ConfigSaver.java: Recompile with -Xlint:deprecation for details.
[INFO] 2 warnings 
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /media/muz/srcRepo/android/reverseEngineering/tools/Luyten-master/src/us/deathmarine/luyten/Model.java:[648,74] incompatible types: java.util.Enumeration<javax.swing.tree.TreeNode> cannot be converted to java.util.Enumeration<javax.swing.tree.DefaultMutableTreeNode>
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.101 s
[INFO] Finished at: 2017-12-22T10:33:59+05:30
[INFO] Final Memory: 20M/66M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project luyten: Compilation failure
[ERROR] /media/muz/srcRepo/android/reverseEngineering/tools/Luyten-master/src/us/deathmarine/luyten/Model.java:[648,74] incompatible types: java.util.Enumeration<javax.swing.tree.TreeNode> cannot be converted to java.util.Enumeration<javax.swing.tree.DefaultMutableTreeNode>
[ERROR] 
[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

my java coniguration ...

java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

javac -version
javac 1.7.0_80

javaws -version
Java(TM) Web Start 10.80.2.15-fcs 

aiamuzz avatar Dec 22 '17 05:12 aiamuzz

@aiamuzz , I came across the same error and decided it this way: Delete all versions jdk and install openjdk-8 from repository.

After that, the error was not repeated and the compilation was successful.

ASlava12 avatar Feb 28 '18 12:02 ASlava12

change to the location of your jdk-8 installation

export JAVA_HOME=/usr/lib/jvm/java-8-oracle
mvn clean compile

CalebWhiting avatar Apr 22 '18 20:04 CalebWhiting

The Procyon issues with Java 9 are fixed: https://bitbucket.org/mstrobel/procyon/commits/7f19d10346b177e9cf754f04e7a1cdb3fd97e136

But still mvn install only works with Java 8; for me

archlinux-java set java-8-openjdk

plutext avatar Oct 13 '18 23:10 plutext

Having the same issue with Java 11 - both Oracle and OpenJDK.

p-himik avatar May 02 '19 18:05 p-himik