<P>Dear all,</P>
<P>I wrote a HelloWorld.java file listed below:</P>
<P>***************************</P>
<P>import java.awt.*;</P>
<P><BR>class MyFrame extends Frame<BR>{<BR> public MyFrame()<BR> {<BR> setTitle("HelloFrame");<BR> setSize(300,200);<BR> }</P>
<P>}</P>
<P>public class HelloFrame<BR>{<BR> public static void main(String[] args)<BR> {<BR> Frame frame = new MyFrame();<BR> frame.show();<BR> }<BR>}</P>
<P>************************************************</P>
<P>I tested this code in linux,and used kaffe vm and qt-embedded( if used kaffe vm and X11, there was no problem). </P>
<P>When I run it -- kaffe -verbose HelloFrame --, the exceptions happened:</P>
<P>**************************************************************************************</P>
<P>Loading java/lang/Object.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/Serializable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Cloneable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Class.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/String.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Comparable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/CharSequence.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/System.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Void.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Boolean.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Byte.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Number.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Character.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Short.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Integer.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Long.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Float.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Double.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/util/Ptr.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/ClassLoader.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Throwable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/ArrayIndexOutOfBoundsException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/IndexOutOfBoundsException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/RuntimeException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Exception.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/NullPointerException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/ArithmeticException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/ClassNotFoundException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/NoClassDefFoundError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/LinkageError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Error.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/StackOverflowError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/VirtualMachineError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/IOException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/String$ICComp.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Comparator.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Thread.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Runnable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/lang/ApplicationResource.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/RuntimePermission.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/security/BasicPermission.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/security/Permission.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/security/Guard.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/ThreadGroup.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Properties.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Hashtable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Dictionary.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Map.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/InputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/BufferedInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/FilterInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/io/StdInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/PrintStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/FilterOutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/OutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/BufferedOutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/io/StdOutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/io/StdErrorStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/FileInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/FileDescriptor.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/FileOutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/ObjectStreamField.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/HashMap.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/AbstractMap.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/IllegalArgumentException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/HashMap$Entry.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/AbstractMapEntry.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Map$Entry.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Package.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/lang/SystemClassLoader.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/SecurityManager.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/HashSet.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/AbstractSet.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/AbstractCollection.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Collection.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Set.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/net/URL.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/NoSuchElementException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Enumeration.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Vector.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/AbstractList.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/List.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/net/MalformedURLException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/StringTokenizer.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/File.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/zip/ZipFile.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/zip/ZipConstants.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/zip/ZipEntry.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/StringBuffer.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/ArrayStoreException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/reflect/Array.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/StringIndexOutOfBoundsException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Random.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Runtime.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Class$CallStack.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/lang/MemoryAdvice.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/FileNotFoundException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/UnsatisfiedLinkError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/NativeLibrary.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Vector$1.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/VerifyError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/OutOfMemoryError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading HelloFrame.class<BR>Loading MyFrame.class<BR>Loading java/awt/Frame.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Window.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Container.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Component.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/image/ImageObserver.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/MenuContainer.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Component$TreeLock.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Rectangle.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/geom/Rectangle2D.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/geom/RectangularShape.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Shape.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Defaults.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Color.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Font.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/BorderLayout.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/LayoutManager2.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/LayoutManager.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Cursor.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Insets.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Toolkit.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Dimension.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/FontMetrics.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Toolkit$1.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/peer/LightweightPeer.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/peer/ComponentPeer.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/Toolkit$2.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/peer/WindowPeer.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/NativeCollector.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/awt/AWTError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/ExceptionInInitializerError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/io/CharToByteConverter.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/UnsupportedEncodingException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/io/CharToByteDefault.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/io/CharToByteIconv.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/ClassCastException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/InstantiationException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/IllegalAccessException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/io/ConverterAlias.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/ObjectInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/ObjectInput.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/DataInput.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/ObjectStreamConstants.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/Locale.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Character$CharacterProperties.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading kaffe/util/IntegerHashtable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/ByteArrayOutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/ByteArrayInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/util/zip/ZipException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/Math.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/reflect/InvocationTargetException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/NoSuchMethodException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/reflect/Modifier.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/reflect/Constructor.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/reflect/AccessibleObject.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/reflect/Member.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/reflect/ReflectPermission.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/lang/reflect/Method.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>Loading java/io/InterruptedIOException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>java.lang.ExceptionInInitializerError: [exception was java.lang.UnsatisfiedLinkError: libawt: not found]<BR> at HelloFrame.main(HelloFrame.java:18)<BR>java.lang.UnsatisfiedLinkError: libawt: not found<BR> at java.lang.Throwable.fillInStackTrace(Throwable.java:native)<BR> at java.lang.Throwable.<init>(Throwable.java:38)<BR> at java.lang.Error.<init>(Error.java:81)<BR> at java.lang.LinkageError.<init>(LinkageError.java:21)<BR> at java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:21)<BR> at java.lang.Runtime.loadLibrary(Runtime.java:151)<BR> at java.lang.System.loadLibrary(System.java:250)<BR> at java.awt.Toolkit.<clinit>(Toolkit.java:107)<BR> at java.awt.Color.setNativeValue(Color.java:285)<BR> at java.awt.Color.<clinit>(Color.java:54)<BR> at java.awt.Defaults.<clinit>(Defaults.java:144)<BR> at java.awt.Window.<init>(Window.java:34)<BR> at java.awt.Window.<clinit>(Window.java:26)<BR> at HelloFrame.main(HelloFrame.java:18)<BR>Loading kaffe/lang/Application.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]<BR>*********************************************************************************************</P>
<P>I don't understand how it couldn't find libawt, since I have made kaffe vm followed the steps listing in the FAQ/FAQ.awt and have added the libawt.so path to the LD_LIBRARY_PATH.</P>
<P>Dose kaffe support qt-embedded well? Are there any restrictions on compiling kaffe and qt-embedded? What 's wrong on earth? </P>
<P>kaffe is kaffe20021222.tar.gz, and qte is qt-embedded-free-3.0.3. </P>
<P>Beat regards,</P>
<P>Tony</P>
<P> </P>
<P> </P>
<P> </P><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/finance/mailtagline/*http://taxes.yahoo.com/">Yahoo! Tax Center</a> - forms, calculators, tips, and more