Page 1 of 1

Cannot get to run on ubuntu 18.04 java 8 or 11

Posted: Mon May 13, 2019 9:14 pm
by bixter1
absolutely love this program. I run it on my windows box but would love to run on my linuxcnc box.

Code: Select all

java -jar AutolevellerAE-0.9.5u2.jar 
Error: Could not find or load main class com.cncsoftwaretools.autoleveller.Autoleveller

Code: Select all

java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
I tried a few different versions of Oracle Java and OpenJDK and get roughly the same class error. Any advice?

Re: Cannot get to run on ubuntu 18.04 java 8 or 11

Posted: Mon May 20, 2019 9:53 pm
by bixter1
I recompiled the source code and all is fine now. Thanks for the awesome app and look for my donation!

Re: Cannot get to run on ubuntu 18.04 java 8 or 11

Posted: Tue May 21, 2019 10:09 am
by daedelus
Thanks. I compiled it with an earlier version of java:

Code: Select all

java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) Client VM (build 25.171-b11, mixed mode, sharing)
so maybe theres something incompatible with the two java 8 versions and is why recompiling works?

Re: Cannot get to run on ubuntu 18.04 java 8 or 11

Posted: Wed Jun 12, 2019 6:49 pm
by dmdamen
Hi,

I'm trying to get it to run on a Raspberry Pi and I'm getting the same error.

I have no experience with Java. Can you tell me how to recompile?

t.i.a.