-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK 17 not working #29
Comments
workaround: add JAVA_HOME=/home/jitpack/tools/jdk17 |
Do I mess it up? 😄 |
hmmm, at least it is working for me: (btw I use gradle) |
Workaround: wget -nv https://download.java.net/java/GA/jdk17.0.1/2a2082e5a09d4267845be086888add4f/12/GPL/openjdk-17.0.1_linux-x64_bin.tar.gz -O /home/jitpack/tools/jdk17/jdk17.tar.gz
tar xfz /home/jitpack/tools/jdk17/jdk17.tar.gz --strip-components=1 -C /home/jitpack/tools/jdk17 |
Was a solution ever reached? I've tried both workarounds (I also use maven) but it doesn't work. |
I haven't tried the second yet, but I believe it also won't work, because the maven issue will still remain :) |
After playing around with the JitCI, and looking through the path dirs, I've found a solution: The reason why above solutions didn't work was because the JAVA_HOME isn't actually in the PATH environmental variable. I'm not sure if setting to JDK17 will update these files in here. For some reason, maven does point to JAVA_HOME, but the actual shell doesn't. As for my solution, you simply just need to install JDK17 (I use Adoptium), put it in that tool directory, and update the PATH environmental variable so that JDK17 gets scanned first. Put this before running any Java Commands:
Running
|
This makes sense, thanks :) |
Although I chose JDK17
java
andmvn
will not change from Java 1.8, which causes the build to fail.I also tried to install Java 17 through
jabba
, but then came across another issue — I've no clue how to install another maven. Tried to download from Apache CND server, but it also failed.build.log
The project on JitCI
The text was updated successfully, but these errors were encountered: