You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to compile Jtcl on Java 1.8 with maven. The issue applies to both, release and latest github repo on windows 7 (Oracle JDK-1.8) and linux (openjdk-1.8).
First thing I get:
"""
INFO] --- exec-maven-plugin:1.2:exec (gensource) @ jtcl ---
javac: target release 1.5 conflicts with default source release 1.8
jdk tool check failed: JAVAC not working
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
"""
Obviously I stumble over the "-g -target 1.5" definition in src/main/resources/tcl/pkg/tjc/library/jdk.tcl line 252:
set javac_flags "-g -target 1.5"
I changed that to be
set javac_flags "-g"
Now the code compiles, and even the maven-exec plugin with tjc works, and compiles seemingly.
But then many of the tests fail and maven does not continue because of the failed tests. The output is too long for pasting it here...
Are the failing tests due to the now missing "-target 1.5"? If so: wouldn't it make sense to drop support for the far outdated Java 1.5 in favor of supporting more modern Java versions?
The text was updated successfully, but these errors were encountered:
I try to compile Jtcl on Java 1.8 with maven. The issue applies to both, release and latest github repo on windows 7 (Oracle JDK-1.8) and linux (openjdk-1.8).
First thing I get:
"""
INFO] --- exec-maven-plugin:1.2:exec (gensource) @ jtcl ---
javac: target release 1.5 conflicts with default source release 1.8
jdk tool check failed: JAVAC not working
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
"""
Obviously I stumble over the "-g -target 1.5" definition in src/main/resources/tcl/pkg/tjc/library/jdk.tcl line 252:
set javac_flags "-g -target 1.5"
I changed that to be
set javac_flags "-g"
Now the code compiles, and even the maven-exec plugin with tjc works, and compiles seemingly.
But then many of the tests fail and maven does not continue because of the failed tests. The output is too long for pasting it here...
Are the failing tests due to the now missing "-target 1.5"? If so: wouldn't it make sense to drop support for the far outdated Java 1.5 in favor of supporting more modern Java versions?
The text was updated successfully, but these errors were encountered: