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

Java Program works on Windows, not Linux

$
0
0
I'm working on a COMSOL GUI application with the Java API, and I've gone through the beam model tutorial. Everything works when I run it from Eclipse directly, but when I export the program to a runnable JAR file OR if I run it on Eclipse on Linux, the program breaks when it tries to open the COMSOL window.

It seem to be an error finding the path to COMSOL. The error verbatim is:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\username\lib\win64\cssystemutil.dll
at java.lang.ClassLoader.loadLibrary(Unknown Source)
...

From debugging I think I can infer that Eclipse navigates correctly to my COMSOL directory, since the security check indeed contains all the paths of relevant .so files in /plugins...
On Linux I did try setting LD_LIBRARY_PATH to the COMSOL directory, and in Windows I did not.

Viewing all articles
Browse latest Browse all 71

Trending Articles