claytonrcarter/cropplanning

"Uh Oh! appinfo.properties NOT FOUND!" when running on Linux

Opened this issue · 4 comments

Hi,

I get the above error when trying to run CropPlanning on Debian Linux with OpenJDK.

$ java -jar CropPlanning-0.7.0.jar 
[Boot] INFO:  setProperties(com.simontuffs.onejar.JarClassLoader@3a71f4dd)
[Boot] INFO:  using JarClassLoader: com.simontuffs.onejar.JarClassLoader
Uh Oh!  appinfo.properties NOT FOUND!

Java version:

$ java --version
openjdk 11.0.3 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+1-Debian-1)
OpenJDK 64-Bit Server VM (build 11.0.3+1-Debian-1, mixed mode, sharing)

I tried creating an empty appinfo.properties file, but that doesn't help.

The appinfo.properties file should be included in the jar. Is that Java version correct? It says 2019-04-16, which -- where I live -- is still in the future. :)

Unfortunately, I'm not going to be much help with this. I don't even have Java installed anymore, and I don't have access to a debian system w/ a display.

I unzipped the .jar file, and it does have the app.properties file in it.

And yes, that appears to be the correct version number. It's in the future for me too, and my computer's time is current (I use time servers to keep my time in sync). I dunno where it gets that date from...

@rsnyman got the same problem. just use Oracle JDK8 and everything runs well.

3.5 years later ... I just helped a friend get this back up and running and I can confirm that this error is related to JDK>8. OP got the error w/ JDK11 and I got this error today with JDK19. I installed OpenJDK8 and it worked as expected.