-
Notifications
You must be signed in to change notification settings - Fork 70
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
Failure to execute ShootOFF.jar with OpenJDK 1.8.0_252 on Ubuntu 20.04 #717
Comments
Hi! same thing here.. Running it on a raspberry pi 4 with latest version of raspbian with openjdk 11.0.8. javafx is installed. |
I am using Ubuntu 20.04. |
Okay solved my problem. You have to use Oracle Java OpenJDK does not work. |
Installed clean install 16.04. Definitely need Ubuntu 16.04 and Oracle Java 8. Don't know if Ubuntu 17, 18, 19 will work already shot (pun unintended) three days working on this. Maybe someday will test other variants of Ubuntu and Linux OS's but since they are for the most part essentially the same betting nothing recent will work. |
I get this as well with the current Oracle JDK download for Mac:
|
Doh - I didn't realize this project hasn't had a commit in five years. |
True but it still works just need to use "older" OS, works just fine with Lubuntu 16.04 even in a VM, and in WIndows 10 so far. You also need to make sure you are using Oracle Java 8 and a good laser not a cheap one. I found Laser Ammo to be the best. SIRT should also work well. |
Lots of problems. ls -lF /usr/lib/x86_64-linux-gnu/libv4l/v4* /usr/lib/i386-linux-gnu/libv4l/v4* so we need to add "| tail -1" because we can only use one filename without proper punctuation. I also replaced the outdated backticks: And we still have Which according to others means the program is unacceptably dependent on Oracle Java instead of OpenJDK. Oracle Java's license has become totally unacceptable. It is no longer free of charge for most uses. But even if we did try to install it, and manually select that version while everything else uses OpenJDK, it fails to install on Ubuntu 18.04.6 LTS, even though there is supposedly a 18.04 (bionic) package in the PPA. sudo apt-add-repository ppa:webupd8team/java E: Package 'oracle-java8-installer' has no installation candidate looking back at what scrolled off the screen, apt-add-repository noted that java 9 has reached end of life. https://www.linuxuprising.com/2021/09/how-to-install-oracle-java-17-lts-on.html sudo add-apt-repository ppa:linuxuprising/java no-install-recommends prevents making it the default jvm and making other program uses license violations.sudo apt-get install --no-install-recommends oracle-java17-installer make sure oracle hasn't become default and see how to invoke oracleupdate-alternatives --list java LD_PRELOAD=$(find /usr/lib -name "v4l1compat.so" | tail -1) /usr/lib/jvm/java-17-oracle/bin/java -jar ShootOFF.jar And after all that, it still can't find Main And if we try it with a fixed export (in parenthesis), it still doesn't work based on what we see at https://stackoverflow.com/questions/56622327/error-could-not-find-or-load-main-class-application-main-javafx we try:(export LD_PRELOAD=$(find /usr/lib -name "v4l1compat.so" | tail -1); /usr/lib/jvm/java-17-oracle/bin/java --module-path "/usr/share/java/" --add-modules javafx.controls,javafx.fxml -jar ShootOFF.jar) So we try without the redundant module path: find /usr/lib/jvm/java-17-oracle/ -iname 'javafx' So the program is still broken. At least the jar file doesn't contain log4j (security hole) |
Currently I'm on Ubuntu 18.04.6 LTS and I got ShootOFF to run. In short for x64 architecture:
|
Howto: ShootOFF on Ubuntu 18.0.6 LTS with currently latest x64 Adopt OpenJDK 16.0.2+7 and OpenJavaFX 18.0.2
|
The how to by @germanicianus works on Parrot OS 6.0.0 with javafx-sdk-19 and jdk-17.05+8, which are the latest versions from https://adoptium.net/temurin/releases and https://gluonhq.com/products/javafx/ ... I just had to update the filenames. |
I get
Error: Could not find or load main class com.shootoff.Main
when I executejava -jar ShootOFF.jar
using OpenJDK 1.8.0_252.I'm using shootoff-4.0-final.
The text was updated successfully, but these errors were encountered: