PatMartin / Dex

Dex : The Data Explorer -- A data visualization tool written in Java/Groovy/JavaFX capable of powerful ETL and publishing web visualizations.
https://dexvis.net
Apache License 2.0
1.32k stars 309 forks source link

Dex not compatible with OpenJDK 8? #13

Open habedi opened 6 years ago

habedi commented 6 years ago

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 commented 6 years ago

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?

habedi commented 6 years ago

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 commented 6 years ago

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

PatMartin commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Thank you.