Do you have that library?

Do you have other X libraries available.

If some of those missing, you might take a chance to pass |java.awt.headless=true to the JVM|

|
|

On 12/5/23 14:14, Brad Walker wrote:
I'm working on Amazon Linux and encountered a rather unusual error..

I really have no idea about this. Could someone possibly provide some
insight?

Maybe a piece of code is trying to load the libawt_xawt.so library?

Thanks.

-brad w.

. . .
files-init:

jdk-8-check:

-do-set-buildnumber:

set-buildnumber:

-define-custom-javac-task:

-init-compile-bootclasspath-nb:

-init-bootclasspath-prepend-compile:

-init-bootclasspath-prepend-run8:

-init-bootclasspath-prepend-run9:

-init-bootclasspath-prepend-run:

-init-bootclasspath-prepend:

-load-module-flags:

build-init:
[parseprojectxml] Distilling
/local/home/walkrzu/src/netbeans/nbbuild/build/public-package-jars/org-openide-io.jar
from
[/local/home/walkrzu/src/netbeans/nbbuild/netbeans/platform/modules/org-openide-io.jar]
[parseprojectxml] Distilling
/local/home/walkrzu/src/netbeans/nbbuild/build/public-package-jars/org-openide-loaders.jar
from
[/local/home/walkrzu/src/netbeans/nbbuild/netbeans/platform/modules/org-openide-loaders.jar]

-javac-init-nbjdk:

-javac-init-bootclasspath-prepend:

-javac-init-no-bootclasspath-prepend:

-javac-init:

-init-proxy:

init:

-prepare-mandatory-files-for-module:
     [mkdir] Created dir:
/local/home/walkrzu/src/netbeans/platform/api.search/build/classes/META-INF
[createlicensesummary] All tests passed

up-to-date:

-pre-compile:

-do-compile:
  [nb-javac] Compiling 122 source files to
/local/home/walkrzu/src/netbeans/platform/api.search/build/classes
  [nb-javac] Ignoring source, target and bootclasspath as release has been
set
    [repeat]
    [repeat]
    [repeat] An annotation processor threw an uncaught exception.
    [repeat] Consult the following stack trace for details.
    [repeat] java.lang.UnsatisfiedLinkError: Can't load library:
/usr/lib/jvm/java-17-amazon-corretto.x86_64/lib/libawt_xawt.so
    [repeat] at
java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2398)
    [repeat] at java.base/java.lang.Runtime.load0(Runtime.java:755)
    [repeat] at java.base/java.lang.System.load(System.java:1953)
    [repeat] at java.base/jdk.internal.loader.NativeLibraries.load(Native
Method)
    [repeat] at
java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
    [repeat] at
java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
    [repeat] at
java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
    [repeat] at
java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:315)
    [repeat] at
java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:285)
    [repeat] at
java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2403)
    [repeat] at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
    [repeat] at java.base/java.lang.System.loadLibrary(System.java:1989)
    [repeat] at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1388)
    [repeat] at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1386)
    [repeat] at
java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
    [repeat] at
java.desktop/java.awt.Toolkit.loadLibraries(Toolkit.java:1385)
    [repeat] at java.desktop/java.awt.Toolkit.initStatic(Toolkit.java:1423)
    [repeat] at java.desktop/java.awt.Toolkit.<clinit>(Toolkit.java:1397)
    [repeat] at java.desktop/java.awt.AWTEvent.<clinit>(AWTEvent.java:266)
    [repeat] at
java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
    [repeat] at
java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1155)
    [repeat] at
java.base/jdk.internal.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:42)
    [repeat] at
java.base/jdk.internal.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:185)
    [repeat] at
java.base/java.lang.reflect.Field.acquireFieldAccessor(Field.java:1132)
    [repeat] at
java.base/java.lang.reflect.Field.getFieldAccessor(Field.java:1113)
    [repeat] at java.base/java.lang.reflect.Field.getInt(Field.java:601)
    [repeat] at
org.openide.util.Utilities.initNameAndValues(Utilities.java:771)
    [repeat] at org.openide.util.Utilities.stringToKey(Utilities.java:958)
    [repeat] at org.openide.util.Utilities.stringToKeys(Utilities.java:1081)
    [repeat] at
org.netbeans.modules.openide.awt.ActionProcessor.processReferences(ActionProcessor.java:662)
    [repeat] at
org.netbeans.modules.openide.awt.ActionProcessor.handleProcess(ActionProcessor.java:311)
    [repeat] at
org.openide.filesystems.annotations.LayerGeneratingProcessor.process(LayerGeneratingProcessor.java:104)
    [repeat] at
jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:1023)
    [repeat] at
jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:939)
    [repeat] at
jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1267)
    [repeat] at
jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1382)
    [repeat] at
jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1234)
    [repeat] at
jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:916)
    [repeat] at
jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:317)
    [repeat] at
jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:176)
    [repeat] at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:64)
    [repeat] at
jdk.internal.reflect.GeneratedMethodAccessor191.invoke(Unknown Source)
    [repeat] at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [repeat] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    [repeat] at
org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:57)
    [repeat] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1352)
    [repeat] at
org.netbeans.nbbuild.CustomJavac.compile(CustomJavac.java:131)
    [repeat] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1092)
    [repeat] at
org.netbeans.nbbuild.CustomJavac.execute(CustomJavac.java:101)
    [repeat] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)

. . .

Reply via email to