[Angstrom-distro-users] Java and AWT
oliver.fels at gmx.net
Sun Oct 19 12:47:12 CEST 2008
Carlos Torrejón Sampedro wrote:.
> May be I'm missing some step. I know that mi libgtkpeer.so is placed
> in /usr/lib/classpath/ and when I run mi AWT programm mi command is:
> java -cp .:/usr/lib/classpath helloAWT
The classpath libraries unfortunately have a misleadingname because it
conflicts with the JAVA concept of classpaths.
The GNU classpath libs are a native library providing the JAVA core
libraries which normally come with the SUN JRE or JDK.
The `java -cp` command expects a root directory with JAVA class files
while your problem is caused by a missing Linux shared library.
> What should I do with ldconfig? I'm sorry but probably I'm more newbie
> than what I thougth.
Try to set LD_LIBRARY_PATH before calling the java program:
Alternatively look at /etc/ld.so.conf and add /usr/lib/classpath to the
file (as root) and then call /sbin/ldconfig (also as root). Beware that
this is advanced Linux stuff as you are now tampering with system
> Swing is not a problem, because I have enough with AWT. I've heard
> about SWT and thinlet. Could you recommend me any lightweight JAVA GUI
> that you know? What I need is something easy to install. It doesn't
> mind if one is more beatiful than other.
AFAIK there is no SWT package available for Angstrom, unfortunately. I
also wonder whether it would work with jamvm and classpath because it is
normally usedwith the SUN JVM only.
More information about the Angstrom-distro-users