BeChris100 / osintgram4j

A rebranded version of our old, beloved Osintgram Client
GNU General Public License v3.0
35 stars 1 forks source link

Cant execute build.sh command #1

Closed TheSg2 closed 12 months ago

TheSg2 commented 1 year ago

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?

BeChris100 commented 1 year ago

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.

TheSg2 commented 1 year ago

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

BeChris100 commented 1 year ago

What JDK are you running on?

BeChris100 commented 1 year ago

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?

TheSg2 commented 1 year ago

Thankk youu, let me check i was playing league lol

TheSg2 commented 1 year ago

maybe im doing something wrong, but it says me the same :(

BeChris100 commented 1 year ago

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?

TheSg2 commented 1 year ago

sure, thanks.

TheSg2 commented 1 year ago

it dropped me the same :b do you want me to send you the logs?

TheCodingKitten commented 1 year ago

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

BeChris100 commented 1 year ago

Workaround:

  1. Download the latest JDK from either OpenJDK or Oracle
  2. Extract the JDK .tar.gz file to the specific location of your choice
  3. Set up the JAVA_HOME environment to the Root of the JDK that you just extracted into
  4. Link $JAVA_HOME/bin:$PATH to /etc/profile by doing export PATH="$JAVA_HOME/bin:$PATH". This will set the Java commands as primary ones. Alternatively, export the PATH environment to ~/.bashrc.
  5. After changing /etc/profile, run source /etc/profile to take changes temporarily. Alternatively, after changing ~/.bashrc, run source ~/.bashrc.