Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 428

The Java application works fine but the JAR file doesnt work.

$
0
0

Hi,

I'm working on a Comsol GUI application with the Java API. I used NetBeans and for begining i tried the beam model. I created the DemoBeamModel.java according to the Comsol Documentation. It works fine when i run it in NetBeans but When i export the program to a runnable JAR file, it doesnt work. Anybody got the same issue?

The errors comes from this part of the source code:

ModelUtil.initStandalone(true);

This is part of the errors as follows:

Exception in thread "AWT-EventQueue-1" java.lang.UnsatisfiedLinkError: Can't load library: /home/m/Documents/lib/glnxa64/libcssystemutil.so at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1827) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at com.comsol.model.util.ModelUtil$15.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at com.comsol.model.util.ModelUtil.initStandalone(Unknown Source) at com.comsol.model.util.ModelUtil.initStandalone(Unknown Source)

I'm trying to fix it but if anybody already got this issue solved let me know. Thanks.  

Viewing all articles
Browse latest Browse all 428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>