greatspn / SOURCES

Main repository of the GreatSPN framework
GNU General Public License v2.0
42 stars 13 forks source link

(Windows 10) GreatSPN Editor.exe aborts with JNI error #22

Closed Arminius closed 3 years ago

Arminius commented 3 years ago

Hello, I just tried to run the new GreatSPN from this site. However, as soon as I try to start the GreatSPN Editor.exe after unpacking it, it says "Error: A JNI error has occurred, please check your installation and try again". There are no log files, so I can not tell you any more about what kind of error this is.

I have OpenJDK 11.0.10 installed on my system.

Do you have any idea how to find out more about what is causing this problem?

amparore commented 3 years ago

Il giorno gio 18 feb 2021 alle ore 23:09 Arminius notifications@github.com ha scritto:

Hello, I just tried to run the new GreatSPN from this site http://www.di.unito.it/~amparore/mc4cslta/editor.html. However, as soon as I try to start the GreatSPN Editor.exe after unpacking it, it says "Error: A JNI error has occurred, please check your installation and try again". There are no log files, so I can not tell you any more about what kind of error this is.

I have OpenJDK 11.0.10 installed on my system.

Actually you don't know but I was busy all day modifying this Java application and changing several parts, including the Windows make pipeline. I have rebuilt the application, this time on another machine. Hope it works now. It could require Java 15 however, since it is the only Java version I have on my devel machine. Could you please retry the download? I tested it on a win10 machine with java15 and it runs.

Do you have any idea how to find out more about what is causing this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/greatspn/SOURCES/issues/22, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLFJEXALSO2AKUTRSWXLX3S7WF2FANCNFSM4X3GHIUQ .

Arminius commented 3 years ago

After downloading the editor again, installing OpenJDK 15.0.2 and restarting my computer, I still get the same error.

amparore commented 3 years ago

ok, I have to check this. As a temporary workaround, if you go in the bin/ directory of the editor (ignore the .exe in the top-level dir) and , from the command terminal, you type: java -jar Editor.jar the editor should run anyway, assuming that java -version gives you v15.

Il giorno ven 19 feb 2021 alle ore 09:33 Arminius notifications@github.com ha scritto:

After downloading the editor again, installing OpenJDK 15.0.2 and restarting my computer, I still get the same error.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/greatspn/SOURCES/issues/22#issuecomment-781921057, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLFJESZKDLYF4WQSXWI6QLS7YO3ZANCNFSM4X3GHIUQ .

Arminius commented 3 years ago

Thank you, that does work as a workaround.

amparore commented 3 years ago

ok I understand that the problem is in the .exe (generated by the launch4j program), which apparently is not capable of finding the right directory of the right Java distribution. I will check if this can be updated. We use this .exe since it is easier to launch, being a regular Windows executable.

Il giorno ven 19 feb 2021 alle ore 11:07 Arminius notifications@github.com ha scritto:

Thank you, that does work as a workaround.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/greatspn/SOURCES/issues/22#issuecomment-781973963, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLFJEQD2ILRAJUTLOWQTELS7YZ67ANCNFSM4X3GHIUQ .

amparore commented 3 years ago

This issue should be solved.