I am trying to run BlueJ, but it won't run until I define the path of jdk in its launch script.
Here's the location of my /bin folder of JDK /home/akash/java/jdk-12.0.2/bin
I need to edit this file inorder to run bluej, but I don't understand what to change
#!/bin/sh
unset JAVAPATH
FOUND="false"
for VMNAME in java-11-openjdk ; do
for JDKCANDIDATE in /usr/lib/jvm/"$VMNAME"* ; do
if [ -e "$JDKCANDIDATE"/bin/javac ]; then
JAVAPATH="$JDKCANDIDATE"
FOUND="true"
break
fi
done
if [ x"$FOUND" = x"true" ]; then