danionita / e3tools

e3tool is a Java GUI-based tool for constructing and evaluating e3value models. Includes the e3fraud fraud assessment extension
Other
3 stars 4 forks source link

JAR doesn't start on MacOS #94

Closed rstml closed 6 years ago

rstml commented 6 years ago
% uname -a
Darwin rustam-mba.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

% java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

% java -jar e3tools-0.7.6.jar
no main manifest attribute, in e3tools-0.7.6.jar
danionita commented 6 years ago

Weird. The manifest attribute is present and I previously tested it on MacOS.

Could you try running like this: java -cp e3tools-0.7.6.jar design.Main

On Mon, Aug 14, 2017 at 12:41 AM, Rustam Aliyev notifications@github.com wrote:

% uname -a Darwin rustam-mba.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

% java -version java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

% java -jar e3tools-0.7.6.jar no main manifest attribute, in e3tools-0.7.6.jar

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/danionita/e3tools/issues/94, or mute the thread https://github.com/notifications/unsubscribe-auth/AKjEpOgXrF1qOPayezTeaHkGhMwRcVhrks5sX3ulgaJpZM4O10eY .

rstml commented 6 years ago

If I look into .jar, Main-class is not in the Manifest.

java -cp e3tools-0.7.6.jar design.Main

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: com/mxgraph/view/mxGraph
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
    at java.lang.Class.getMethod0(Class.java:3018)
    at java.lang.Class.getMethod(Class.java:1784)
    at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: com.mxgraph.view.mxGraph
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 7 more
danionita commented 6 years ago

Ah, it seems I uploaded the wrong JAR to the latest release. I've replaced it with the right one. Here is a direct link to it: https://github.com/danionita/e3tools/releases/download/v0.7.6/e3tools-0.7.7.jar

rstml commented 6 years ago

Works, thanks!