Unable to build latest weasis source code

14 views
Skip to first unread message

Meer Asgar Hussain Bahawdeen

unread,
May 5, 2026, 9:22:53 AM (3 days ago) May 5
to dcm4che
Hi all,

After building the latest Weasis source code, while building the native binaries and installers, getting the following error.

$ ./build/script/package-weasis.sh --jdk "/usr/lib/jvm/jdk-25.0.3+9"
rootdir: /home/demo/Weasis_466/weasis-native
Error: Could not find or load main class org.weasis.core.util.NativeLibrary
Caused by: java.lang.ClassNotFoundException: org.weasis.core.util.NativeLibrary

ERROR: Cannot get Java system architecture


I tried in Linux and Windows with both Git Bash and Cygwin, getting the same error.

Please assist me on this.

Meer Asgar Hussain Bahawdeen

unread,
May 6, 2026, 9:49:25 AM (2 days ago) May 6
to dcm4che
Could someone please assist me on this issue?

Hyder Zaman

unread,
3:02 AM (7 hours ago) 3:02 AM
to dcm...@googlegroups.com

Install OpenJDK 17

Ubuntu/Debian:

sudo apt update
sudo apt install openjdk-17-jdk -y

Check:

java -version

Should show something like:

openjdk version "17"

Then rebuild project first:

cd /home/demo/Weasis_466
./mvnw clean install

OR if using Gradle:

./gradlew build

After successful build:

cd weasis-native
./build/script/package-weasis.sh --jdk "/usr/lib/jvm/java-17-openjdk-amd64"

Also verify the class exists:

find . -name "*.jar" | xargs jar tf | grep NativeLibrary

If nothing appears, the project did not compile correctly.


--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dcm4che/0a039c66-43c0-4d80-b4d8-3c3377b582b5n%40googlegroups.com.

Hyder Zaman

unread,
3:03 AM (7 hours ago) 3:03 AM
to dcm...@googlegroups.com
  Many Java projects including Weasis do NOT yet fully support Java 25.  

On Wed, May 6, 2026 at 6:49 PM Meer Asgar Hussain Bahawdeen <asgarhu...@raster.in> wrote:

Meer Asgar Hussain Bahawdeen

unread,
5:51 AM (4 hours ago) 5:51 AM
to dcm4che
Hi,

I tried in Open JDK 17 and the same issue occurred,

$ ./build/script/package-weasis.sh --jdk "/usr/lib/jvm/java-17-openjdk-amd64"
rootdir: /home/demo/weasis-native

Error: Could not find or load main class org.weasis.core.util.NativeLibrary
Caused by: java.lang.ClassNotFoundException: org.weasis.core.util.NativeLibrary

ERROR: Cannot get Java system architecture

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages