leginar 2021-04-28 03:14
This game looked interesting but I wasn't able to get the jar file to execute. 'A JNI error has occurred please check your installation and try again' I have tried other java executables and they have worked.
Foon → Ludum Dare Explorer → LD48 → An Interview with Socram
By randoman38
| Category | Rank | Score | Count | |
|---|---|---|---|---|
| Overall | 3.00 | 3 | ||
| Fun | 3.00 | 3 | ||
| Innovation | 3.50 | 3 | ||
| Theme | 2.50 | 3 | ||
| Graphics | 3.00 | 3 | ||
| Audio | 2.50 | 3 | ||
| Humor | 2.50 | 3 | ||
| Mood | 3.00 | 3 |
This game looked interesting but I wasn't able to get the jar file to execute. 'A JNI error has occurred please check your installation and try again' I have tried other java executables and they have worked.
Epic game! love the simple art style! Keep up the good work!
I really want to play this, but I couldn't get it to work ``` [nix-shell:~/Downloads/ld48]$ java -version openjdk version "16" 2021-03-16 OpenJDK Runtime Environment (build 16+36-nixos) OpenJDK 64-Bit Server VM (build 16+36-nixos, mixed mode, sharing)
[nix-shell:~/Downloads/ld48]$ java -jar AnInterviewWithSocram/An_Interview_with_Socram/Interview.jar
(java:2262): Gtk-WARNING **: 21:23:26.143: Theme parsing error: colors.css:71:44: Invalid number for color value
(java:2262): Gtk-WARNING **: 21:23:26.143: Theme parsing error: colors.css:72:44: Invalid number for color value
(java:2262): Gtk-WARNING **: 21:23:26.143: Theme parsing error: colors.css:74:53: Invalid number for color value
(java:2262): Gtk-WARNING **: 21:23:26.143: Theme parsing error: colors.css:75:53: Invalid number for color value
(java:2262): Gtk-WARNING **: 21:23:26.143: Theme parsing error: colors.css:76:56: Invalid number for color value
(java:2262): Gtk-WARNING **: 21:23:26.143: Theme parsing error: colors.css:77:65: Invalid number for color value Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.awt.image.BufferedImage.getWidth()" because "this.backup" is null at deeper.graphics.Bitmap.read(Bitmap.java:62) at deeper.graphics.Bitmap.
EDIT: It worked when I `cd`'d into the same directory as the jar and ran java there :thumbsup:
@leginar Some friends I had play it had the same problem, actually. I've never had problems like this before, but we got it to work by re-installing the Java RE and the JDK. If that doesn't work, I'm sorry I can't be more helpful. I'm looking into it more myself, because I'd like to prevent this from being a running issue.
If you have Nix (or want to install it - it won't interfere with anything), you can get a java that works with this game with:
``` nix-shell -p openjdk16 ```
My nixpkgs was at 20.09 (jdk16 is relatively new)
Then `java -jar Interview.jar` will work