Date: Wed, 3 Sep 1997 14:00:30 -0400 From: "=?ISO-8859-1?Q?Ricardo_N=FA=F1ez?=" <rinunez@telcel.net.ve> To: "FreeBSD" <freebsd-questions@FreeBSD.ORG> Subject: Problem: Kaffe and Applets Message-ID: <19970903180140.AAC7683@telcel.telcel.net.ve>
next in thread | raw e-mail | index | archive | help
Dear Gentlemen, PROBLEM: I canīt run any Java application with graphics using Kaffe software. DATA: I downloaded the four following packages from Kaffe pages: A) kaffe-0.9.1.tgz B) kaffe-0.9.1-package-biss-net.com.tgz C) kaffe-0.9.1-package-javasoft.com.tgz D) kaffe-0.9.1-package-epfl.ch.tgz Then I also dowloaded the ports package, I untar it in the untared other four files directory (/usr/local/share/kaffe-0.9.1/). I installed it as if it were a Linux OS... with four commands: make distclean ../configure make make install and worked!!!!! But just the terminal output. I run a kind of Hello World program. The AWT interface doesnīt work. I tried to run a graphics "HelloWorld" applet and it says it canīt find the AWT library (but... what about biss-net and/or epfl?). Well, Iīve tried a lot of CLASSPATHs: 1)CLASSPATH=/usr/local/share/kaffe:/usr/local/share/kaffe/biss:. 2)CLASSPATH=/usr/local/share/kaffe/classes.zip:/usr/local/share/kaffe-0.9.1/ packages/biss-net.com/APIawt/classes/biss.zip:. 3)CLASSPATH=/usr/local/share/kaffe-0.9.1/packages/javasoft.com/APIcore/class es:. 4)CLASSPATH=/usr/local/share/kaffe-0.9.1/packages/javasoft.com/APIcore/class es/classes.zip:/usr/local/share/kaffe-0.9.1/packages/biss-net.com/APIawt/cla sses/biss.zip:/usr/local/share/kaffe-0.9.1/packages/epfl.ch/APIawt/classes/s awt.zip:/usr/local/share/kaffe-0.9.1/packages/tjwassoc.co.uk/APIzip/lib/java .util.zip:. The first one is really the last one. I did it after unziping the zip files, but no way. All have worked with the simple "Helloworld" I think. Here are the other variables: LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/share/kaffe/lib KAFFEHOME=/usr/local/share/kaffe Iīll also tell you my software with problems. Here you have the AppletCode and HTML code: File "ButtonApplet.java": //ButtonApplet.java import java.applet.*; import java.awt.*; public class ButtonApplet extends Applet { public void init() { Button testButton = new Button("Button"); add (testButton); } } File "Button.html": <!--Esqueleto para ButtonApplet--> <HTML> <HEAD> <TITLE>Esqueleto de ButtonApplet</TITLE> </HEAD> <BODY> <APPLET CODE=ButtonApplet.class WIDTH=300 HEIGHT=300> </APPLET> </BODY> </HTML> I compiled the applet with FreeBSD Kaffe javac compiler and I saw the button through the HTML via Windows 95 Microsoft Explorer!!! So I run them in Win95. When I run "kaffe ButtonApplet" it tells me: java.lang.NoSuchMethodError When I run "appletviewer Button.html" it tells me: java.lang.UnsatisfiedLinkError: no awt in shared library path at java/lang/Throwable.<init>(line unknown, pc 0x1a66b7) at java/lang/Error.<init>(line unknown, pc 0x34d6a1) at java/lang/LinkageError.<init>(line unknown, pc 0x34d629) at java/lang/UnsatisfiedLinkError.<init>(line unknown, pc 0x34d5b1) at java/lang/Runtime.loadLibrary(line unknown, pc 0x35136a) at java/lang/System.loadLibrary(line unknown, pc 0x34acd4) at sun/awt/motif/MToolkit.<clinit>(43) at java/awt/Toolkit.getDefaultToolkit(243) at sun/applet/AppletCopyright.<init>(36) at sun/applet/AppletViewer.mainInit(984) at sun/applet/AppletViewer.main(993) I donīt know if it helps, but here you have a list of /usr/local/share/kaffe/lib: total 142 -rw-r--r-- 1 root bin 1532 Aug 25 00:47 appletviewer.properties -rw-r--r-- 1 root bin 984 Aug 25 00:47 awt.properties -rw-r--r-- 1 root bin 5639 Aug 25 00:47 content-types.properties -rw-r--r-- 1 root bin 7306 Aug 25 00:47 font.properties -rw-r--r-- 1 root bin 7757 Aug 25 00:47 font.properties.cs -rw-r--r-- 1 root bin 7713 Aug 25 00:47 font.properties.el -rw-r--r-- 1 root bin 7758 Aug 25 00:47 font.properties.hu -rw-r--r-- 1 root bin 13028 Aug 25 00:47 font.properties.ja -rw-r--r-- 1 root bin 9033 Aug 25 00:47 font.properties.ko -rw-r--r-- 1 root bin 7771 Aug 25 00:47 font.properties.lt -rw-r--r-- 1 root bin 7771 Aug 25 00:47 font.properties.lv -rw-r--r-- 1 root bin 7758 Aug 25 00:47 font.properties.pl -rw-r--r-- 1 root bin 7711 Aug 25 00:47 font.properties.ru -rw-r--r-- 1 root bin 7721 Aug 25 00:47 font.properties.tr -rw-r--r-- 1 root bin 8976 Aug 25 00:47 font.properties.zh -rw-r--r-- 1 root bin 23909 Aug 25 00:47 font.properties.zh_TW -rw-r--r-- 1 root bin 2693 Aug 25 00:47 psfont.properties.ja -rw-r--r-- 1 root bin 916 Aug 25 00:47 rmic.properties drwxr-xr-x 2 root bin 512 Aug 25 00:47 security -rw-r--r-- 1 root bin 362 Aug 25 00:47 serialver.properties What do you think itīs happening? What can I do? What should I do now? Thank you very much, Ricardo Nunez
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970903180140.AAC7683>