Cant execute build.sh command
Closed this issue · 11 comments
Hello! Im having troubles with the build.sh, im in cloudshell and when I execute build.sh it says this :
The major JDK Version needs to be at least on the JDK 20.
To obtain the newest JDK Version, run the setup.sh with the '--force-download' argument
So i did that but it keeps droping me the same message.
Any solutions?
The thing is that I made the project require at least Java 20. As the message suggests, you can run the script by passing this:
./setup.sh --force-download
./build.sh
However, I might think about the Java 11/17 Requirement.
yea no I get it but i run the code, and when it says that the setup proces has finished I get the exact same message, idk why maybe a problem with cloudshell? I mean the --force-download
What JDK are you running on?
I fixed up the Building Script, so I hope that it fixed the error. If not, then do you have a new error message in any case?
Thankk youu, let me check i was playing league lol
maybe im doing something wrong, but it says me the same :(
Try redownloading the repository by doing git clone https://github.com/BeChris100/osintgram4j
, as I did new updates. Afterward, can you give me all the console logs that you get?
sure, thanks.
it dropped me the same :b do you want me to send you the logs?
if you are on debian linux then install openjdk-20-jdk (replace 20 with 21 or 22 if you want, I installed 22), that then worked fine for me
Workaround:
- Download the latest JDK from either OpenJDK or Oracle
- Extract the JDK .tar.gz file to the specific location of your choice
- Set up the JAVA_HOME environment to the Root of the JDK that you just extracted into
- Link
$JAVA_HOME/bin:$PATH
to/etc/profile
by doingexport PATH="$JAVA_HOME/bin:$PATH"
. This will set the Java commands as primary ones. Alternatively, export the PATH environment to~/.bashrc
. - After changing
/etc/profile
, runsource /etc/profile
to take changes temporarily. Alternatively, after changing~/.bashrc
, runsource ~/.bashrc
.