You are not logged in.

#1 2023-10-21 16:41:53

tac
Member
Registered: 2023-10-21
Posts: 2

Can't run Comsol 6.0: Could not load SWT library, no swi-pi4 found

I'm trying to run Comsol 6.0 Multiphysics on my pc. It seems this software runs with Java. When I enter into

/usr/local/comsol60/multiphysics/bin/

, and then run

sudo ./comsol multiphysics

I get from the console:

grep: warning: stray \ before =
grep: warning: stray \ before =
grep: warning: stray \ before =

ERROR: Failed to start COMSOL. For details, see the log file /root/.comsol/v60/logs/comsol5.log
ERROR: Additional information: Could not load SWT library. Reasons: 
        no swt-pi4-gtk-4944r26 in java.library.path: [/usr/lib/jvm/java-11-openjdk/lib/server, /usr/lib/jvm/java-11-openjdk/lib, /usr/local/comsol60/multiphysics/ext/graphicsmagick/glnxa64/, /usr/local/comsol60/multiphysics/ext/dcm/glnxa64, /usr/local/comsol60/multiphysics/ext/cadimport/glnxa64, /usr/local/comsol60/multiphysics/lib/glnxa64, /usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]
        no swt-pi4-gtk in java.library.path: [/usr/lib/jvm/java-11-openjdk/lib/server, /usr/lib/jvm/java-11-openjdk/lib, /usr/local/comsol60/multiphysics/ext/graphicsmagick/glnxa64/, /usr/local/comsol60/multiphysics/ext/dcm/glnxa64, /usr/local/comsol60/multiphysics/ext/cadimport/glnxa64, /usr/local/comsol60/multiphysics/lib/glnxa64, /usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]
        no swt-pi4 in java.library.path: [/usr/lib/jvm/java-11-openjdk/lib/server, /usr/lib/jvm/java-11-openjdk/lib, /usr/local/comsol60/multiphysics/ext/graphicsmagick/glnxa64/, /usr/local/comsol60/multiphysics/ext/dcm/glnxa64, /usr/local/comsol60/multiphysics/ext/cadimport/glnxa64, /usr/local/comsol60/multiphysics/lib/glnxa64, /usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]
        Can't load library: /root/.swt/lib/linux/x86_64/libswt-pi4-gtk-4944r26.so
        Can't load library: /root/.swt/lib/linux/x86_64/libswt-pi4-gtk.so
        Can't load library: /root/.swt/lib/linux/x86_64/libswt-pi4.so

I

sudo ls /root/.swt/lib/linux/x86_64

in order to look which libraries were installed and found:

libswt-pi-gtk-4763.so  libswt-pi3-gtk-4763.so  libswt-pi3-gtk-4932r18.so  libswt-pi3-gtk-4944r26.so

And if it's useful, the complete log: https://0x0.st/HJJm.log

I think the problem is that I should somehow install libswt-pi4 (because as I see, I guess I have libswt-pi3) but I don't know in which package comes included. Besides, I tried the steps posted in https://bbs.archlinux.org/viewtopic.php?id=278891 but had no changes. Does someone have any suggestion?

Last edited by tac (2023-10-21 16:43:01)

Offline

#2 2023-10-21 19:21:49

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,453

Re: Can't run Comsol 6.0: Could not load SWT library, no swi-pi4 found

Why on earth do you run that as root?

Offline

#3 2023-12-05 16:54:09

hanqing
Member
Registered: 2023-12-05
Posts: 1

Re: Can't run Comsol 6.0: Could not load SWT library, no swi-pi4 found

I met the same problem, run by root or other user

Offline

#4 2023-12-12 10:17:57

lokoko96
Member
Registered: 2023-12-08
Posts: 2

Re: Can't run Comsol 6.0: Could not load SWT library, no swi-pi4 found

I have the same problem, please help me solve it

Offline

Board footer

Powered by FluxBB