Building experimental branch from source fails with "javac: invalid target release: 1.8" · Issue #433 · axoloti/axoloti · GitHub
More Web Proxy on the site http://driver.im/
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
Just tried to build from source to try out the changes in the experimental branch to see if it helps with #3 but unfortunately the build fails. Since the Linux build script depends on openJDK 7 I'm using an Ubuntu 14.04 image as my starting point (I'm running the build in a container), a couple of minor things are missing from the build script like installing build-essential and unzip but with that fixed the majority of the build works until it fails with the message:
-do-compile:
[javac] Compiling 738 source files to /root/axoloti/build/classes
[javac] javac: invalid target release: 1.8
[javac] Usage: javac <options> <source files>
[javac] use -help for a list of possible options
I guess this means the build actually requires JDK 8 instead of 7? Or is this caused by something else?
[edit] Seems like the experimental branch needs JDK 8. So I guess the build script on that branch needs to be updated as well?
The text was updated successfully, but these errors were encountered:
simonvanderveldt
changed the title
Building from source fails with "javac: invalid target release: 1.8"
Building experimental branch from source fails with "javac: invalid target release: 1.8"
Aug 1, 2018
I think that the dependency on openjdk-7 is a mistake in the build script that just hasn't been changed. I'm on Bionic 18.04 which no longer has an openjdk-7 package. But apparently the script was not actually stopping at that point. We probably need a more sophisticated strategy for java versioning on Linux. We're basically having the user install something and then we're expecting ant to actually execute on the JVM we installed. But just starting ant will take whatever java is selected via the alternatives mechanism at least on an Ubuntu machine. Let me think about a better strategy for this.
Interestingly the netbeans project does declare a 1.8 source level:
We need to be more explicit in the command line build. I'm not a netbeans user myself, and I'd like to see us get to a point where we aren't depending on it unless someone decides to use it.
@nicolasmiller I made a quick PR to make the build script work again. We can keep this issues open for a more structural fix for managing the JDK version or create a new issue for that if you prefer that :)
Uh oh!
There was an error while loading. Please reload this page.
Just tried to build from source to try out the changes in the experimental branch to see if it helps with #3 but unfortunately the build fails. Since the Linux build script depends on openJDK 7 I'm using an Ubuntu 14.04 image as my starting point (I'm running the build in a container), a couple of minor things are missing from the build script like installing
build-essential
andunzip
but with that fixed the majority of the build works until it fails with the message:I guess this means the build actually requires JDK 8 instead of 7? Or is this caused by something else?
[edit] Seems like the experimental branch needs JDK 8. So I guess the build script on that branch needs to be updated as well?
The text was updated successfully, but these errors were encountered: