[kaffe] Calendar performances
Hi all, I'm using a call to rightNow = Calendar.getInstance(); and the first call need 44 seconds to accomplish (kaffe 1.1.6 - MIPS 400MHz machine) the following calls are fast (less than 1 second, I did not measure them) Is there some reason for this - is there some initialization - can it be avoided (I just need system date and time). thanks giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] initial frame position
Gianluca Moro wrote: hi all, I'm running kagge with a graphical output directly on X, without any window manager. I see that all the applicatio I start are placed in (0,0) (upper lefr corner of the screen) while starting my java application under kaffe it is placed in a bit on the left, and below the upper screen (about (5,30)). I think that you are using kaffe-x-awt AWT ? Then there is an heuristic algorithm to detect the size of the decoration which is applied to a frame. In the case there is no WM maybe it is wrong. However it is possible to disengage the heuristic by removing the property EXTERNAL_DECO in libraries/clib/awt/X/tlk.c:tlkProperties(). Could you try this ? sorry for the delay: I just take up the kaffe work again :-) I tested the modification with no results :-( the window is some (8/9) pixel more shifted to the bottom ... thanks giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] split function (String): slow implementation
Hi all, I tested the following program, where I use the split functin. the 1st call to split needs 7/8 seconds to be accomplished, while all the following calls are quickly done. (kaffe-1.1.6 compiles on a MIPS platgorm - AMD au1100, 400MHz) It seems that kaffe need to to something (parser initialization?) very time consuming: is it a normal behaviour, or should not happen this? thanks giammy public class Spl { public Spl() { String s = Marameo|va|che|beo; String s2 = Marameo2|va2|che2|beo2; String [] subs = null; System.out.println(INIZIO); subs = s.split(\\|); System.out.println(OK + subs[1]); System.out.println(INIZIO); subs = s2.split(\\|); System.out.println(OK + subs[1]); } public static void main(String[] args) { Spl spl = new Spl(); } } -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] initial frame position
hi all, I'm running kagge with a graphical output directly on X, without any window manager. I see that all the applicatio I start are placed in (0,0) (upper lefr corner of the screen) while starting my java application under kaffe it is placed in a bit on the left, and below the upper screen (about (5,30)). I imagine this is some default setted in kaffe or in the java interface: is there an option to force the position in (0,0), osmething analogous to give -geometry +0+0? (My test: # LD_PRELOAD=/usr/X11R6/lib/libX11.so:/usr/lib/libpng.so:/usr/lib/libz.so:/usr/local/lib/libjpeg.so /usr/local/kaffe/bin/kaffe -geometry +0+0 -Dkaffe.awt.nativelib=xawt -Xbootclasspath/p:/usr/local/kaffe/kaffeawt.jar Jnoti gives: java.lang.ClassNotFoundException: +0+0 not found in java.lang.ClassLoader$1{urls=[file:/etc/init.d/./], parent=null} thanks giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] paint and repaint ...
sorry for the probably dumb question: I have a small example that draws a rect in a paint method of the canvas. based on an event I redraw the rect with a different color (with a call to fillRect). Then i call repaint with the including modified area to avoid flickering while updating. The update is correct with java from j2sdk1.4.2_06, while in kaffe 1.1.6 with Tiny-X on a MIPS machine, the windows is cleared and only the modified rectangle is drawn: seems that repaint clear all the window and repaint only the requested rectangle: should not it clear only the requested rectangle? thanks giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] kaffe and javax
Hi all, running some demos on my kaffe port (kaffe 1.1.6, compiled for mips machine, using Tiny-X), I testet successfully some programs using awt, now, I have a demo using swing, and the program fails as it do not find javax/swing/JComponent.setDropTarget! When I run it with: LD_PRELOAD=/usr/X11R6/lib/libX11.so:/usr/lib/libpng.so:/usr/lib/libz.so:/usr/local/lib/libjpeg.so kaffe -Dkaffe.awt.nativelib=xawt -Xbootclasspath/p:/home/AMDgiammy/kaffe-1.1.6/kaffeawt.jar JButtons I get the following error: java.lang.NoSuchMethodError: javax/swing/JComponent.setDropTarget(Ljava/awt/dnd/DropTarget;)V at javax.swing.JComponent.init (JComponent.java:413) at javax.swing.JRootPane.init (JRootPane.java:499) at javax.swing.JFrame.createRootPane (JFrame.java:214) at javax.swing.JFrame.getRootPane (JFrame.java:199) at javax.swing.JFrame.frameInit (JFrame.java:151) at javax.swing.JFrame.init (JFrame.java:113) at JButtons.init (JButtons.java:15) at JButtons.main (JButtons.java:11) It seems it do not find swing library: is it correct? I have looked into rt.jar (compiled on host PC and the copied on MIPS machine), and I see am entry -rw-rw-r-- 24643 20-Oct-2005 08:37:38 javax/swing/JComponent.class so I think the swing library is present. Do I need to enable some flags when running the demo? How can I tell where to find the library? thanks for the help giammy Here the example code: import java.awt.*; import javax.swing.*; /** Simple example illustrating the use of JButton, especially * the new constructors that permit you to add an image. * 1998-99 Marty Hall, http://www.apl.jhu.edu/~hall/java/ */ public class JButtons extends JFrame { public static void main(String[] args) { new JButtons(); } public JButtons() { super(Using JButton); //WindowUtilities.setNativeLookAndFeel(); //addWindowListener(new ExitListener()); Container content = getContentPane(); content.setBackground(Color.white); content.setLayout(new FlowLayout()); JButton button1 = new JButton(Java); content.add(button1); ImageIcon cup = new ImageIcon(images/cup.gif); JButton button2 = new JButton(cup); content.add(button2); JButton button3 = new JButton(Java, cup); content.add(button3); JButton button4 = new JButton(Java, cup); button4.setHorizontalTextPosition(SwingConstants.LEFT); content.add(button4); pack(); //setSize(500, 200); setVisible(true); } } -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] kaffe and javax
Hi, I made some tests ... --- Gianluca Moro [EMAIL PROTECTED] ha scritto: Hi all, running some demos on my kaffe port (kaffe 1.1.6, compiled for mips machine, using Tiny-X), I testet successfully some programs using awt, now, I have a demo using swing, and the program fails as it do not find javax/swing/JComponent.setDropTarget! When I run it with: It seems to me that the requested function are implemented in libraries/javalib/java/awt/ which is part of GNU classpath, while I'm using the implementation from libraries/javalib/awt-implementations/kaffe/java/awt/, So the question is: to have the supoprt for swing, do I need to use GNU classpath: the problem is that, from what I understand, if I remove --without-classpath-gtk-awt from configuration, I will need GTK, which is not present in my system: so to use swing, do I need to install GTK? thanks giammy LD_PRELOAD=/usr/X11R6/lib/libX11.so:/usr/lib/libpng.so:/usr/lib/libz.so:/usr/local/lib/libjpeg.so kaffe -Dkaffe.awt.nativelib=xawt -Xbootclasspath/p:/home/AMDgiammy/kaffe-1.1.6/kaffeawt.jar JButtons I get the following error: java.lang.NoSuchMethodError: javax/swing/JComponent.setDropTarget(Ljava/awt/dnd/DropTarget;)V at javax.swing.JComponent.init (JComponent.java:413) at javax.swing.JRootPane.init (JRootPane.java:499) at javax.swing.JFrame.createRootPane (JFrame.java:214) at javax.swing.JFrame.getRootPane (JFrame.java:199) at javax.swing.JFrame.frameInit (JFrame.java:151) at javax.swing.JFrame.init (JFrame.java:113) at JButtons.init (JButtons.java:15) at JButtons.main (JButtons.java:11) It seems it do not find swing library: is it correct? I have looked into rt.jar (compiled on host PC and the copied on MIPS machine), and I see am entry -rw-rw-r-- 24643 20-Oct-2005 08:37:38 javax/swing/JComponent.class so I think the swing library is present. Do I need to enable some flags when running the demo? How can I tell where to find the library? thanks for the help giammy Here the example code: import java.awt.*; import javax.swing.*; /** Simple example illustrating the use of JButton, especially * the new constructors that permit you to add an image. * 1998-99 Marty Hall, http://www.apl.jhu.edu/~hall/java/ */ public class JButtons extends JFrame { public static void main(String[] args) { new JButtons(); } public JButtons() { super(Using JButton); //WindowUtilities.setNativeLookAndFeel(); //addWindowListener(new ExitListener()); Container content = getContentPane(); content.setBackground(Color.white); content.setLayout(new FlowLayout()); JButton button1 = new JButton(Java); content.add(button1); ImageIcon cup = new ImageIcon(images/cup.gif); JButton button2 = new JButton(cup); content.add(button2); JButton button3 = new JButton(Java, cup); content.add(button3); JButton button4 = new JButton(Java, cup); button4.setHorizontalTextPosition(SwingConstants.LEFT); content.add(button4); pack(); //setSize(500, 200); setVisible(true); } } -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] --without-classpath-gtk-awt ignored
hi, try adding --disable-native-awt bye giammy --- Ito Kazumitsu [EMAIL PROTECTED] ha scritto: Hi, I have got the following error while doing ./configure \ --without-classpath-gtk-awt \ --without-kaffe-qt-awt \ --enable-debug in an environment where neither GTK nor X is available. checking for X... no configure: error: GTK+ peers requested but no X library available configure: error: /bin/sh './configure' failed for libraries/javalib/external/classpath ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] scaled image efficiency
Hi all, I'm testing Kaffe 1.1.6 on a MIPS processor (AU1100, 400MHz) and I noted the image refresh is very slow: 10-20 seconds to draw the image whenever I move another window over it! I traced the code, and I see that the time is wasted in initScaledImage function in file libraries/clib/awt/X/img.c, fundamentally in the rescaling code. (if I draw the image without scaling it the timing is very good) Anyone found such a problem? is it correct that initScaleImage is called whenever the image comes to foreground? is there a way to optimize the scaling, or not to call initScaleImage so frequently? The 10-20 seconds pause is not acceptable in the final program :-( thanks giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Re: kaffe image draw efficiency
--- Clemens Eisserer [EMAIL PROTECTED] ha scritto: Hi, I'm testing Kaffe 1.1.6 on a MIPS processor (AU1100, 400MHz) and I noted the image refresh is very slow: 10-20 seconds to draw the image whenever I move another window over it! I traced the code, and I see that the time is wasted in initScaledImage function in file libraries/clib/awt/X/img.c, fundamentally in the rescaling code. (if I draw the image without scaling it the timing is very good) Anyone found such a problem? is it correct that initScaleImage is called whenever the image comes to foreground? is there a way to optimize the scaling, or not to call initScaleImage so frequently? The 10-20 seconds pause is not acceptable in the final program :-( Was this with the GNU-Classpath AWT implementation (GTK based) or Kaffe's own X11 based implementation? Since there's a lot of ongoing work on Classpath's AWT I would recommend using it in favour of the X-lib solution, although its seriously under construction so from time to time things do not work as they should ;-) It is compiled with kaffe own X11 implementation. In my environment (embedded) I have not installed GTK, as I should keep it small. thanks giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] load image problem
hi all, I'm compiling kaffe 1.1.6 running with AWT on Tiny-X from XFree86 4.5.0. It work quite fine, but I cannot load and show images (I tested gif and png): kaffe gives no warning or error messages, even if the image file is not present: seems that the loading function just say OK but do nothing. thanks giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Re: kaffe and load image
hi all, I'm compiling kaffe 1.1.6 running with AWT on Tiny-X from XFree86 4.5.0. It work quite fine, but I cannot load and show images (I tested gif and png): kaffe gives no warning or error messages, even if the image file is not present: seems that the loading function just say OK but do nothing. thanks giammy The problem was in the configuration of kaffe: I did not defined HAVE_LIBPNG, so the drawing function just did nothing! Now I have 2 more problems: when starting kaffe, it do not find the symbols in libpng: I setted LD_LIBRARY_PATH, but with no success, while the following is successful: LD_PRELOAD=/usr/X11R6/lib/libX11.so:/usr/lib/libpng.so:/usr/lib/libz.so is there a clean way to make kaffe find what it needs? the second problem is that images are shown very slowly: a window repaint (with a png of just a few k) needs several second to repaint: this slow down is present only if I have some image in the frame. any idea what could cause this? thanks giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Native library libnull.so
The idea is to check a proprty that tells Kaffe which native library to load for the native implementation of the AWT code. In your case, I guess, you'd need to add -Dkaffe.awt.nativelib=xawt (assuming that's what you compiled against) to your command line invocation. You should also get the same result by just using kaffe -Xkaffe-xlib-awt HelloWorld Thank you very much: I got it The problem was tht the xawt library was not compiled as in the libraries/clib/awt/Makefile the line #MAYBE_KAFFE_X_AWT = X was commented (I thought that, with the --with-x option in the configure I should have it compiled) Anyway I uncommented and made make again. The -D option get the correct library (while if I use the -Xkaffe-xlib-awt options I get an Error: Unrecognized JVM specific option `-Xkaffe-xlib-awt'. Now kaffe starts correctly (I have another problem, I descrive in the next mail :-( thanks again giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] minor bug
Hi all, in file kaffe-1.1.6/libraries/clib/awt/X/fnt.c line 264 KAFFE_FONT_FUNC_DECL( void, Java_java_awt_Toolkit_fntFreeFontMetrics { } there's a missing ')' at the end of the definition (happens undefining KAFFE_I18N) By the way: can I18N b the cause of my not seeing any string (Tiny-X does support I18N?) bye giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] minor bug(2)
hi all, compiling kaffe-1.1.6, removing I18N support (commented the following // #define KAFFE_I18N 1 /* make Kaffe to be able to support i18n */ in file kaffe-1.1.6/libraries/clib/awt/X/toolkit.h I found the following errors: file kaffe-1.1.6/libraries/clib/awt/X/fnt.c line 299: KAFFE_FONT_FUNC_DECL( jint, Java_java_awt_Toolkit_fntGetMaxAdvance ) { return UNVEIl_FS(fs)-max_bounds.width; } should be UNVEIL and line 335: const int n = 256; n is assigned a value in line 253 thanks giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Native library libnull.so
Hi all, I'm compiling kaffe-1.1.6 on MIPS platform, with the following configuration ./configure --with-x --with-jikes=no --with-engine=intrp --enable-pure-java-math --without-esd --with-rt-jar=/home/AMDgiammy/kaffe-1.1.6/libraries/javalib/rt.jar --enable-debug --with-threads=unix-jthreads --with-libffi --without-classpath-gtk-awt The compilation is successful, the HelloWorld on terminal works correctly, the Hello World using AWT (open a frame and print hello world in the frame) gives the followin error: /usr/local/kaffe/bin/kaffe -Xbootclasspath/p:/home/AMDgiammy/kaffe-1.1.6/kaffeawt.jar HelloWorld java.lang.UnsatisfiedLinkError: Native library `null' not found (as file `libnull.so' in class loader null) in gnu.classpath.boot.library.path and java.library.path `[/usr/local/kaffe/jre/lib/mips/, /usr/local/kaffe/lib/, /usr/local/lib/]' I'm using Tiny-X/kdrive, compiled from the last XFree86 source tree (4.5.0). What is this missing libnull.so? As a matter of fact i do not have such a library in my system: should it be installed by kaffe, or by some other program? thanks giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Kaffe and Tiny-X
I all, I'm evaluating the possibility to compile Tiny-X (Kdriver - the XFree86 stripped down X version for embedded systems) to run Kaffe with it. Does anyone have idea if the standard compilation of X awt interface of kaffe works correctly with Tiny-X as X server? Anyone has tested this configuration? Any link to documentation? Thanks giammy -- Gianluca Moro http://groups.yahoo.com/group/embeddeditalia/ ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED [EMAIL PROTECTED] Visit http://ilpinguino.altervista.org/ ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] nano-X and kaffe: any experience?
Hi all, I'm trying to use kaffe with AWT nano-X interface: I found various problems, with button management, arc drawing, window refresh and now with image drawing. Are there any other experiences about using kaffe with nano-X? Both positive or negative? In case of successful use, have you used ufficial versions or heavily patched ones? I hoped to use this combination, especially nano-X for its low resources usage, but it seems to be a problematic solutions :-( thanks giammy -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] window refresh problem
hi all, in my test program, I open 3 window, writing on them hello world. The forground window is correctly updated, while, the windows which have not the focus are not refreshed (so when I move the foreground window over them, they remain blank. I have seen that nano-X throw various events, related all the windows (between them, the EXPOSED event), while, in handler.c file, in function Java_java_awt_Toolkit_evtGetNextEvent I see incoming events related only to the foreground window: do you have any idea what is going on and where could be lost the other events? thanks giammy (I'm porting kaffe 1.1.5 to a MIPS machine with microwindows and Nano-X) -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] kaffe and AWT on MIPS with multiple windows
--- Gianluca Moro [EMAIL PROTECTED] wrote: Hi all, I'm working on the porting of KAFFE on MIPS platform, with AWT and Nano-X interface. My current problem is a helloworld program with multiple frames: the problem is that all the drawing is done on the first created frame: it seems thar AWT do not keep the id of the various frame, or do not update it or something so ... (the code on Kaffe on PC works OK) Anyone already found something similar? Looking around in the code, I noted in file libraries/clib/awt/nano-X/graphics.c, function Java_java_awt_Toolkit_graInitGraphics the following code if ( graphicsP == NULL ) { graphicsP = (TLKGraphics*) TLK_MALLOC( sizeof(TLKGraphics)); graphicsP-gc = GrNewGC(); graphicsP-region = 0; graphicsP-target = (GR_ID)target; graphicsP-targetType = targetType; graphicsP-gid = (TLK_GRAPHICS_ID)graphicsP; graphicsP-magicNo = TLK_GRAPHICS_MAGIC_NO; } which do not update target if graphicsP is already initialized I think the code should be if ( graphicsP == NULL ) { graphicsP = (TLKGraphics*) TLK_MALLOC( sizeof(TLKGraphics)); graphicsP-gc = GrNewGC(); graphicsP-region = 0; graphicsP-gid = (TLK_GRAPHICS_ID)graphicsP; graphicsP-magicNo = TLK_GRAPHICS_MAGIC_NO; } graphicsP-target = (GR_ID)target; graphicsP-targetType = targetType; where target is always initialized (this draw all the windows) Now the problem is that a background windows is not refreshed :-( bye giammy -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] kaffe and AWT on MIPS with multiple windows
Hi all, I'm working on the porting of KAFFE on MIPS platform, with AWT and Nano-X interface. My current problem is a helloworld program with multiple frames: the problem is that all the drawing is done on the first created frame: it seems thar AWT do not keep the id of the various frame, or do not update it or something so ... (the code on Kaffe on PC works OK) Anyone already found something similar? thanks giammy Here the example code import java.awt.*; import java.awt.event.*; public class HelloWorld extends Frame { String str; public HelloWorld (String s) { str = s; } public static void main(String[] args) throws Exception { final Frame frame = new HelloWorld(Hello1); final Frame frame2 = new HelloWorld(Hello2); final Frame frame3 = new HelloWorld(Hello3); frame.setSize(400, 200); frame2.setBounds(400, 200, 400,200); frame3.setBounds(200, 400, 400,200); frame.setTitle(1); frame2.setTitle(2); frame3.setTitle(3); frame.setVisible(true); frame2.setVisible(true); frame3.setVisible(true); } public void paint(Graphics g) { System.out.println(demo: paint + this); g.drawLine(10,10,200,200); g.setFont(new Font(Dialog, Font.PLAIN, 50)); g.setColor(Color.red); //g.setBackground(Color.red); g.drawString(str, 10, 100); } } -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] kaffe + nano-X + MIPS
Hi all, As you (probably) remmember I'm porting kaffe on a MIPS platform with Nano-X. PROBLEM 1: I was stunned as the java windows frame was shown, but the contents were missing. The problem, as pinted out Dalibor, was caused by the parameter passing on MIPS platform. I compiled the libffi library and compiled kaffe with --with-libffi and the problem was solved. PROBLEM 2: I draw lines, rectangles, but not arcs!!! The problem was with the differents meaning in the GrArcAngle and java drawArc function: the conclusion was that, in file libraries/clib/awt/nano-X/graphics.c I replaced all occurences of GrArcAngle with GMY_GrArcAngle, and added the following define: #define GMY_GrArcAngle(id,gc,x,y,rx,ry,a1,a2,t) GrArcAngle(id,gc,(x)+(rx)/2,(y)+(ry)/2,(rx)/2,(ry)/2,a1,(a1)+(a2),t) Nano-X x,y is the center of the arc, while java x,y is the upper left point of the rectangle including the elipse containing the arc (desumed running vaious examples on PC) hope this helps, Now I ocntinue with the tests giammy -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] kaffe awt and thread management on MIPS
Recently, I am working on JIT and XScale series, and I have commited some Nano-X related fixes into cvs repository. Could you please take it a try with cvs head? However, thank you for sending and sharing the previous information about Nano-X AWT backend and threading on MIPS, which is another great platform Kaffe should support. Hi Jim, I found some problems with the last version of Kaffe (1.1.6), in particular, the problem I found was: java.lang.ExceptionInInitializerError caused by: java.lang.NullPointerException at java.awt.Toolkit.fntInitFont (Toolkit.java:native) Looking at the code, it seems that the function which initializa the fonts return an id (an integer, i think) while the nativeData field is declared as Pointer. I think that this gives the exception. I checked kaffe-1.1.5 and I saw tha nativeData was declared as Ptr: compiling kaffe-1.1.5 and following the same steps I followed for 1.1.6, I got a runnable kaffe which gave no exceptions. I'll check, as soon as I get a working kaffe, the CVS head, but I think I'll need to change the Pointer declaration to test it :-( Anyway, thans so far for kaffe team support bye giammy -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] kaffe awt and thread management
I'm testing kaffe in MIPS platform with Nano-X: my test program open a windows, but do not show anything in it (while the same program on Pc show the inner objects) Tracing the code, I see that the function kaffe-1.1.5/libraries/javalib/java/lang/VMThread.java:sleep() is calling the function vt.wait with parameter 250ms, but it never returns. From what I understand, that function calls /kaffe-1.1.5/libraries/clib/native/Object.c:java_lang_VMObject_wait, whose debugging message gives me 0x10276010 (0x102622f8) waiting for 0x102622f8, 0 It seems that here the parameter (250ms) became 0: do I understand correctly? And if so, why (and where) the 250 value was lost? (kaffe is ocmpiled with unix-jthreads) thanks giammy -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Getting kaffe to use nano-X AWT
Hi, I was getting the same problem: in the archive there's the thread, anyway, with the help of Dalibor, I get to the following command line which tells kaffe to use Nano-X: /usr/local/kaffe/bin/kaffe -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p:/path/to/kaffeawt.jar Hello which platform are you using: I'm testing on a MIPS machine. bye giammy --- [EMAIL PROTECTED] wrote: All, I'm a bit struggling getting to run nano-X AWT. I (cross)compile using the following switches (amongst others): --without-kaffe-x-awt \ --with-kaffe-nanox-awt --with-nanox-include (..) --with-nanox-library (...) \ --without-classpath-gtk-awt \ When I run with # kaffe-bin -Xkaffe-nanox-awt -Xbootclasspath:/tmp/nfs/jre/lib/rt.jar FirstAWT I get: java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit at java.awt.Toolkit.getDefaultToolkit (Toolkit.java:535) (...) Caused by: java.lang.UnsatisfiedLinkError: Could not find library 'gtkpeer' (...) Apparently, the build is OK, since a kaffe-bin -version shows me the --Xkaffe-nanox-awt switch, but when I use this, kaffe is still looking for gtk. Any suggestion is very welcome ! Thanks, Wim Note: I'm using the 1.1.5 release ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] kaffe awt and thread management on MIPS
Hi, I compiled my kaffe on mips with the following ./configure --with-jikes=no --with-engine=intrp --enable-pure-java-math --without-esd --without-kaffe-x-awt --with-kaffe-nanox-awt --with-rt-jar=/home/AMDgiammy/kaffe-1.1.5/libraries/javalib/rt.jar --without-classpath-gtk-awt --enable-debug --with-nanox-include=/usr/include/microwin --with-nanox-library=/usr/lib --with-threads=unix-jthreads perhaps the problem on threads in the MIPS porting can be solved with ad appropriate configuration of ./configure or CFLAGS or so: I found in the web, for example setenv CFLAGS -G 0 -mno-abicalls -fno-pic -mcpu=r4300 -mips2 but such a configuration fails in the configuration, while finding the size of a void *. Is there someone who compiled a more recent version of kaffe (I'm working on 1.1.5), and have a working configuration? (I doubt to be able to find a bug on the config/mips/* side :-) thanks giammy --- Dalibor Topic [EMAIL PROTECTED] wrote: Gianluca Moro wrote: I'm testing kaffe in MIPS platform with Nano-X: my test program open a windows, but do not show anything in it (while the same program on Pc show the inner objects) Tracing the code, I see that the function kaffe-1.1.5/libraries/javalib/java/lang/VMThread.java:sleep() is calling the function vt.wait with parameter 250ms, but it never returns. From what I understand, that function calls /kaffe-1.1.5/libraries/clib/native/Object.c:java_lang_VMObject_wait, whose debugging message gives me 0x10276010 (0x102622f8) waiting for 0x102622f8, 0 It seems that here the parameter (250ms) became 0: do I understand correctly? And if so, why (and where) the 250 value was lost? (kaffe is ocmpiled with unix-jthreads) Interesting. That might suggest there is a bug in the config/mips/* implementation of the ABI, or in the JNI code. You can try bulding Kaffe with libffi, which comes from gcc, and is in general up to date with different ABI changes. If it's a bug in the JNI code, you could look at fixing the compiler warnings in kaffe/kaffevm/jni* directory. cheers, dalibor topic -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] kaffe awt and thread management (and libffi)
You can try bulding Kaffe with libffi, which comes from gcc, and is just looking, but it seems that libffi has not been ported to mips architecture :-( anyway, thanks giammy -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Kaffe compilation with Nano-X awt interface
--- Dalibor Topic [EMAIL PROTECTED] wrote: I'm getting a very weird behaviour: if I start a demo (just open a window and set a green background) it starts with no errors, and stay there: 1 time in (about) 30 the windows appear on the LCD: the other times I do not see nothing!!! ... that sounds like a race condition somewhere :( You may want to check what happens during a successful startup vs a fialing startup and try to add 'synchronized' keyword in the class library for awt backend for nanox where it turns out be appropriate :( Hi Dalibor, I think the problem is in the thread library: kaffe was compiled with standard thread library (pthread); I tried to compile with the jthread library (--with-unix-jthreads) and the initialization always complete correctly. By the way, with pthreads, when the initialization was correct needed 30seconds, now it needs 10 seconds. Now I'm testing programs behaviour, starting from helloworld: import java.awt.*; public class Hello extends Frame { public static void main(String argv[]) { new Hello(); } public Hello() { super(Hello World!); Label hello = new Label(Hello World); // bring it under geometry control add(Center, hello); resize(500, 500); // map the widgets show(); } } this works correctly on PC, while on Nano-X do not display the label in the window (the window appears, but is empty) The window title string on the contrary is shown correctly. Now I'm investigating about this :-( Thanks so far bye giammy -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Awt - missing paint invocation
Hi all, I'm testing a simple program with kaffe-1.1.5: it draws some lines, and on PC it works correctly: on my porting on MIPS machine, it do not show anything: from what I have seen, the function paint is not called: does anyone have an idea where to check to verify why the function paint is not called? (even if I add a label it is not shown: it seems that everything in the frame is not shown!) Follows my test code: thanks giammy import java.awt.*; public class Hello extends Frame { public static void main(String argv[]) { new Hello(); } public void paint(Graphics g) { System.out.println(Hello: paint); g.drawLine(25, 10, 150, 80); g.drawArc(225, 10, 150, 80, 90, 135); g.setColor(Color.green); g.fillRect(25, 110, 150, 80); } public Hello() { super(Hello World!); setSize(500, 500); // map the widgets //show(); setVisible(true); } } -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] problem starting kaffe with Nano-X - AWT
Hi all, I'm testing kaffe with an AWT application using Nano-X: in my previous mail I described the problem (a demo application, opening a window, show the exepected output window just sometimes) I'm trying to trace the problem, printing somemessages: whne the window is not shown the progam calls only Java_java_awt_Toolkit_tlkInit, and then i see no more messages. When the window appear correctly, I see # /usr/local/kaffe/bin/kaffe -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p:/home/AMDgiammy/kaffe-1.1.5/kaffeawt.jar Hello Java_java_awt_Toolkit_tlkInit: open graphics OK window.c: Java_java_awt_Toolkit_wndCreateFrame... window.c: Java_java_awt_Toolkit_wndCreateFrame... wid =! NULL window.c: Java_java_awt_Toolkit_wndCreateFrame... OK create wid=0x2 4 24 492 472 window.c: Java_java_awt_Toolkit_wndSetVisible... window.c: Java_java_awt_Toolkit_wndSetVisible...SHOW OK that is the Nano-X environment is initialized, and the window is created and set visible. It seems to me that NAno-X is Ok; the problem is that kaffe do not call the wndCreateFrame function (and the following functions). which are the steps from tlkInit and wndCreateFrame? where does kaffe get lost? If I discover something, I'll let you know thanks giammy -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] multiple kaffe instantiation
Hi all, runnin a hello world AWT demo, I see many kaffe-bin tasks: is it correct (in my PC, running the same program, I see just 1 kaffe-bin) Could it be a race condition between all this task which prevent my application so be shown correctly on the LCD? thanks again giammy 127 root272 S nanowm 1395 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1423 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1424 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1425 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1429 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1430 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] how to porting kaffe to a ebedded linux?
--- muzzi [EMAIL PROTECTED] wrote: thank you for you email:) your embedded cpu is amd Au1XXX series with mips core? the core with or without mmu? have you modified the kaffe's configurations files by hand? Hi, I'm working on a AU1100, with MMU; from the datasheet: The Au1100 processor is a complete SOC based on the MIPS32 instruction set. Designed for maximum performance at very low power, the Au1100 runs up to 500 MHz. Power dissipation is less than 0.25 watt for the 400 MHz version. Highly integrated with onchip SDRAM, SRAM/Flash EPROM memory controllers, a LCD controller, 10/100 Ethernet Controller, USB Host and Device, UARTs (3), and GPIOs (up to 48,24 dedicated). The Au1100 processor runs a variety of operating systems, including Windows® CE.NET, Linux and VxWorks. Moreover, the integration of peripherals with the unique, high performance, MIPS-compatible core provides low system cost, small form factor, low system power requirement, simple designs at multiple performance points and thus, short design cycles. For the configuration it was not very direct: I compiled kaffe on PC # ./configure --with-engine=intrp --enable-pure-java-math --without-esd --without-kaffe-x-awt --with-kaffe-nanox-awt --without-classpath-gtk-awt then I changed /home/giammy/working/kaffe-1.1.6/libraries/javalib/Makefile uncommenting the line: #MAYBE_PEERLESS_KAFFE_AWT = awt-implementations and gave the make. Then I copied libraries/javalib/rt.jar on the AMD built tree of kaffe (same place) and copied /home/giammy/working/kaffe-1.1.5/libraries/javalib/awt-implementations/kaffe/kaffeawt.jar on AMD /home/AMDgiammy/kaffe-1.1.5/kaffeawt.jar Then I configure the AMD kaffe: ./configure --with-jikes=no --with-engine=intrp --enable-pure-java-math --without-esd --without-kaffe-x-awt --with-kaffe-nanox-awt --with-rt-jar=/home/AMDgiammy/kaffe-1.1.5/libraries/javalib/rt.jar --without-classpath-gtk-awt Removed from file kaffe-1.1.5/Makefile the raw libraries/javalib \ and changed in the file kaffe-1.1.6/libraries/Makefile the raw from SUBDIRS = clib javalib extensions to SUBDIRS = clib extensions and finally started the make -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Kaffe compilation with Nano-X awt interface (bug?)
Hi all, first of all my thanks to Dalibor for his help in compiling kaffe on a MIPS platfor with Nano-X. I could compile and run kaffe-1.1.6 using the Nano-X awt interface with Dalibor help. The problem I found was a java.lang.ExceptionInInitializerError caused by: java.lang.NullPointerException at java.awt.Toolkit.fntInitFont (Toolkit.java:native) Looking at the code, it seems that the function which initializa the fonts return an id (an integer, i think) while the nativeData field is declared as Pointer. I think that this gives the exception. I checked kaffe-1.1.5 and I saw tha nativeData was declared as Ptr: compiling kaffe-1.1.5 and followinf the same steps I followed for 1.1.6, I got a runnable kaffe which gave no exceptions. Do I missed something? there's a reason why that field type was changed? Anyway, now kaffe starts correctly, with no errors, but I see no output on my LCD My command line is: nano-X nanowm /usr/local/kaffe/bin/kaffe -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p:/home/AMDgiammy/kaffeawt.jar Hello I see nanowm background but nothing else. if I start another program, for example nxterm, I see it correctly on the LCD. There some option to give to kaffe to specify the output screen? many thanks giammy -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Porting kaffe to mips with nano-X
hi, thank to Dalibor for you help: the problem with nano-X interface was that kaffeawt.jar was not compiled. (the kaffe-1.1.6/libraries/javalib/Makefile had a line #MAYBE_PEERLESS_KAFFE_AWT = awt-implementations I uncommented it, compiled the kaffeawt.jar library on PC and copied the resulting file on my platform. this allows java to load the library starting it # nano-X nanowm /usr/local/kaffe/bin/kaffe -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p:/home/AMDgiammy/kaffeawt.jar Hello Now it stops with the following errors, which I'm investigating. thank for the help to now giammy # nano-X nanowm /usr/local/kaffe/bin/kaffe -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p:/home/AMDgiammy/kaffeawt.jar Hello createfont: (height == 0) found builtin font System (0) createfont: (height == 0) found builtin font System (0) createfont: (height == 0) found builtin font System (0) createfont: (height == 0) found builtin font System (0) java.lang.ExceptionInInitializerError caused by: java.lang.NullPointerException at java.awt.Toolkit.fntInitFont (Toolkit.java:native) at java.awt.Font.init (Font.java:79) at java.awt.Defaults.clinit (Defaults.java:447) at java.awt.Window.init (Window.java:35) at java.awt.Window.clinit (Window.java:27) java.lang.NullPointerException at java.awt.Toolkit.fntInitFont (Toolkit.java:native) at java.awt.Font.init (Font.java:79) at java.awt.Defaults.clinit (Defaults.java:447) at java.awt.Window.init (Window.java:35) at java.awt.Window.clinit (Window.java:27) nano-X: client closed socket: 9 Destroy client 9 resources Destroy font 1001 Destroy font 1000 # Window list: 1(0), Pixmap list: GC list: Font list: Region list: Image list: Timer list: -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Using Kaffe with Nano-X engine
Hi all, I'm trying to compile Kaffe on a MIPS embedded system with Nano-X as graphical library. The compilation was done with ./configure --with-jikes=no --with-engine=intrp --enable-pure-java-math --without-esd --without-kaffe-x-awt --with-kaffe-nanox-awt --with-jikes=no --with-rt-jar=/home/AMDgiammy/kaffe-1.1.6/libraries/javalib/rt.jar --without-classpath-gtk-awt Now I correctly execute java programs with textual output, but when I try a graphical Hello World test, I get: java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit It seems kaffe try to use X (non present), but I have not found where to tell it to use Nano-X! Can someone give me a pointer to some configuration or steps I must accomplish to make kaffe execute graphical programs on Nano-X? thanx giammy -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe