Skip to content
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

Dex not compatible with OpenJDK 8? #13

Open
habedi opened this issue Jun 1, 2018 · 6 comments
Open

Dex not compatible with OpenJDK 8? #13

habedi opened this issue Jun 1, 2018 · 6 comments

Comments

@habedi
Copy link

habedi commented Jun 1, 2018

Hi,

When I try to start Dex I encounter this error using OpenJDK 8's runtime environment but when I use Oracle's JDK 8 there is no error and Dex starts without any problem.

(Dex) > bash startDex.sh 
Error: Could not find or load main class com.dexvis.dex.Dex
(Dex) > java -version
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-1~deb9u1-b11)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mod

Great tool by the way,
cheers.

@PatMartin
Copy link
Owner

Thanks for the feedback habedi!

It should work fine.

Try running this via: "java -jar Dex.jar" from the directory where Dex.jar resides.

What OS are you using here?

  • Pat

@habedi
Copy link
Author

habedi commented Jun 4, 2018

Actually I tried java -jar Dex.jar inside the repository folder but It still gave the same error, I'm on Debian 9 amd64 btw.

@PatMartin
Copy link
Owner

Thanks for the info. I'll try reproducing this and figure out if I packaged something incorrectly. Get back to you tonight.

@PatMartin
Copy link
Owner

So far I haven't been able to reproduce in any of my environments so I'll have to download and install a debian vm and mimic your exact setup more closely when i get the chance.

@PatMartin
Copy link
Owner

Well, I managed to reproduce this issue and I'm pretty stumped.

I think it's related to this similar issue: https://superuser.com/questions/1090396/error-could-not-find-or-load-main-class-with-openjdk-and-oracle-java-on-centos

but I can't seem to find a variation which works, even when I unpack the jar itself.

I'll update the issue here when I figure it out. All I can say for now is use an Oracle JVM as a workaround in the meantime I guess.

@habedi
Copy link
Author

habedi commented Jun 7, 2018

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants