Last time I checked, Swing does work with Avian, assuming you build
with the OpenJDK class library (i.e. pass the openjdk=$JDK_HOME) flag
to make). However, it doesn't work when you pass the
openjdk-src=$JDK_SRC_PATH flag to make, which is required to make a
stand-alone executable. The reason is that the openjdk-src build
compiles the OpenJDK JNI code from source and statically links it into
the final executable, and currently that only includes the source
files needed to make basic SWT and headless apps work.
To make Swing work with openjdk-src, someone would need to add the
Swing JNI source files to the openjdk-src build. The first step is
adding the needed filenames to
openjdk-src.mk. That probably won't be
sufficient, though, since there's usually extra work involved in
tricking the OpenJDK class library into thinking there's an installed
JRE on the system when there really isn't. For example, it will try
to load locale data from a directory under the JRE root directory, so
the VM has to intercept those file open and read operations and
fulfill them using an embedded resource. See classpath-openjdk.cpp
for details.
Short answer: no, there's no technical reason why Avian couldn't
support Swing in a standalone exe AFAIK, but it's probably not easy to
do.
>> > email to
avian+un...@googlegroups.com.
>> email to
avian+un...@googlegroups.com.
> email to
avian+un...@googlegroups.com.