Re: [kaffe] Please support javac from ant
On Thu, Oct 25, 2007 at 01:57:33AM +0200, Dalibor Topic wrote: Michael Koch wrote: Hello Dalibor, Ant directly invokes com.sun.tools.javac.main.Main when compiling java classes to bytecode. Please include such a class for compatibility with other runtimes. In the Debian package of kaffe we include such a class copied from java-gcj-compat. Thanks for the hint. Has that class been included in Classpath 0.95+, or do I have to put inside Kaffe for now? No, it doesnt contain that yet. Another issue with this is that kaffe doesn't provide a tools.jar out of the box. It provides kaffe-classpath-tools.jar. In Debian we provide a symlink from tools.jar to kaffe-classpath-tools.jar to make ant happy. OK. I think I'll just rename the jar file. Afaik it was named tools.jar in 1.1.7 and was renamed in 1.1.8. I havent investigated the reason. Cheers, Michael ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Please support javac from ant
Hello Dalibor, Ant directly invokes com.sun.tools.javac.main.Main when compiling java classes to bytecode. Please include such a class for compatibility with other runtimes. In the Debian package of kaffe we include such a class copied from java-gcj-compat. Another issue with this is that kaffe doesn't provide a tools.jar out of the box. It provides kaffe-classpath-tools.jar. In Debian we provide a symlink from tools.jar to kaffe-classpath-tools.jar to make ant happy. Cheers, Michael ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Kaffe on ppc (Slackintosh Linux 2.6.x)
On Thu, Jun 29, 2006 at 12:44:40PM +0200, gioco wrote: Hi all , I'm new to Kaffe. I have compiled successfully Kaffe 1.1.7 on my iBook G4 (running Slackintosh current, Linux 2.6.17.1), but when I run 'make check' I get: Method Constant Pool: soft_fixup_trampoline(): return 0x1012de58 /bin/sh: line 4: 23653 Segmentation fault env TEST_CLASSES=ConstMethods.class ConstMathMethods.class ParameterizedMethods.class ParameterizedMathMethods.class ParameterizedLogicalMethods.class ParameterizedBitwiseMethods.class ControlFlowMethods.class StaticMethodCall.class TypeConversion.class StaticFields.class PrimitiveArrays.class ObjectFields.class MethodOptimizations.class NativeMethodCall.class Exceptions.class VirtualMethod.class `. ../../BUILD_ENVIRONMENT; BOOTCLASSPATH=.:\${BOOTCLASSPATH}; export BOOTCLASSPATH; sed 's/.*export \(.*\)/echo \1=$\1/' ../../BUILD_ENVIRONMENT | sh` ${dir}$tst FAIL: jitBasic 1 of 1 tests failed Please report to kaffe@kaffe.org When I try to run a simple HelloWorld application (compiled with jikes) I get: [EMAIL PROTECTED]:~/src$ java HelloWorldApp Internal error: caught an unexpected exception. Please check your CLASSPATH and your installation. java/lang/NullPointerException Abortito I also noticed that there is no Klasses.jar in /usr/local/kaffe. I don't know how to make it work, could you help me, please? This looks like you use GCC 4.1 to build kaffe. kaffe is known to be broken when compiled with 4.1. Dalibor is working on this. Workaround is to use an older GCC like 3.3, 3.4 or 4.0. Cheers, Michael -- http://www.worldforge.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Kaffe Segmentation Fault
On Wed, Jun 21, 2006 at 02:58:30AM -0400, Mike Drozdick wrote: Hi. I successfully built/installed/tested Kaffe on a i386 linux machine running CentOS4.3, building with gcc 3.4.5. I tested kaffe with a simple java HelloWorld and everything worked fine! (The java is the kaffe alias.) I repeated the exact procedure on another machine running Fedora Core 5, building with gcc 4.1.1. Everything built, but when I tried java HelloWorld I got a Sementation Fault with no additional information. I tried MANY experiments altering various configure options; no change. Suspecting the compiler, I reverted to gcc 3.4.5 as in the successful case, repeated the entire procedure from scratch on the Fedora 5 machine, and still got the Segmentation Fault. Does anyone recognize this symptom or have any ideas? Any thoughts would be most welcome. GCC 4.1 is known to give some headaches. Which version of kaffe have you tried? 1.1.7 or recent CVS? There are some fixes for GCC 4.1 in CVS. Cheers, Michael -- http://www.worldforge.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Building of fastjar severely broken
Hello list, I tried current CVS and it failed when building fastjar. There were several problems which I tried to fix locally but failed. There are even different errors when building --with-system-zlib or with the in-tree zlib. I used $builddir == $srcdir if that matters. Cheers, Michael -- http://www.worldforge.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Enable kaffe for Firefox
On Fri, May 26, 2006 at 05:54:23PM -0700, Jim Pick wrote: Correct. It would be nice to see the integration happen anyways - perhaps it could be enabled for only trusted sites. And then maybe it would motivate someone to complete the verifier and other security tasks. I believe that Firefox is dual-licensed under the GPL, so it should even be possible to distribute a version of Firefox with Kaffe/Classpath built in by default. :-) When gcjwebplugin is merged from Classpath the base should be done for this. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Re: NSAPI/ OJI/ Applet plugin
On Mon, Mar 06, 2006 at 06:46:34PM +0100, Philippe Laporte wrote: Do you have a schedule/roadmap/timeline for this to be completed? When its done. Sorry, the task is so big that we cant promise any date to finish it. What are these really missing features and how essential are they? Fixing a bug that makes $Browser crash when navigating to another page after the first page with applet was visited. Adding a security manager/security policy. Support for signed jars. More compatibility with SUNs command line appletviewer. etc. It's all fine. I would be working in conjunction with the minimo guys and they use the latest Gecko/Mozilla. If it supports the Netscape-base plugin API it most probably work. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Re: NSAPI/ OJI/ Applet plugin
On Mon, Mar 06, 2006 at 01:15:03PM +0100, Philippe Laporte wrote: Some preliminary questions: - Why is the security not finished? No one seriously using this plugin yet? Why not? Because its a hell of lot of work to audit several hundred thousend lines of existing code in GNU classpath. RedHat has now some person working fulltime on the audit but it still needs much time. - Why non-gnu? Why not migrate to the classpath tree? We are working on this and consider a merge when the security audit is done and some bugs are fixed and some really missing features are implemented. - How many browser to Java APIs are there all in all and what's their stories? ParseException: Can't understand the question. gcjwebplugin supports all browsers using the Gecko engine from Mozilla. Konqueror has its own applet framework which just needs a secure VM. Last I tried jamvm worked but I wouldnt use it in a productive environment yet as the audit is not done. There is a good chance I will need a fully functional open-source OJI plugin sometime soon. As stated before OJI is deprecated and will be removed in the next major release of Mozilla. So we will hopefully never need a fully functional open-source OJI plugin. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Kaffe for OpenWRT
On Mon, Oct 17, 2005 at 09:01:15PM +1000, Richard Brady wrote: OK, you can ignore that, I'm running the configure script but it's erroring with checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no configure: error: Configuration mips-elf not supported You dont use a cross compiler for mips-elf it seems. Maybe its just not found. Make sure you use the correct --target=... and --build=... when calling kaffe's configure manually. I dont know the needed values of head currently. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Kaffe for OpenWRT
On Thu, Oct 13, 2005 at 09:13:56AM +1000, Richard Brady wrote: I grabbed 1.1.4 from www.controlap.com http://www.controlap.com but it is giving me wrong name errors regarding the LocaleInformation classes of the type '_EN' not '_en'. I'm not at home now so I don't have the exact message to hand. Also I'll need the xml classes which aren't in the ControlAP build. My main problem with building the source is that... cover your eyes.. I don't have a Linux box. ;) I've played with Debian in the past so I might setup that again but I'm extreemly lazy so that's my last resort. If Michaels got a build, even one earlier than 1.1.4 I'd be interested to give it a try. When it did it I used kaffe 1.1.5. I`m currently testing with 1.1.6. When this works I will just submit it to the OpenWRT upstream. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Kaffe for OpenWRT
On Thu, Oct 13, 2005 at 07:04:57PM +0200, Dalibor Topic wrote: Richard Brady wrote: I grabbed 1.1.4 from www.controlap.com http://www.controlap.com but it is giving me wrong name errors regarding the LocaleInformation classes of the type '_EN' not '_en'. I'm not at home now so I don't have the exact message to hand. Also I'll need the xml classes which aren't in the ControlAP build. My main problem with building the source is that... cover your eyes.. I don't have a Linux box. ;) https://shipit.ubuntu.com/ can fix that :) More seriously, though, I don't know how hard it is to cross compile openWRT, so I can't say how much work setting up the toolchains would be. In general, once you have the build environment set up, cross-compiling kaffe should not be very hard. Download OpenWRT's buildroot environment, make menuconfig (same as linux kernel), make world, DONE. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] multiple kaffe instantiation
On Wed, Sep 28, 2005 at 03:15:19AM -0700, Gianluca Moro wrote: 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: Thats normal. Kaffe uses threads and each of these entries is just on thread. If you have a problem starting up it may be related to threads but normally it isnt. Please tell us more about your problem to let us help you. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Test kaffe 1.1.3
On Tue, Sep 13, 2005 at 10:24:47PM +0200, Carsten Ziegert wrote: 2 of 144 tests failed Please report to kaffe@kaffe.org make[4]: *** [check-TESTS] Error 1 make[4]: Leaving directory `/home/carsten/kaffe-1.1.3/test/regression' make[3]: *** [check-am] Error 2 make[3]: Leaving directory `/home/carsten/kaffe-1.1.3/test/regression' make[2]: *** [check-recursive] Error 1 make[2]: Leaving directory `/home/carsten/kaffe-1.1.3/test/regression' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/home/carsten/kaffe-1.1.3/test' make: *** [check-recursive] Error 1 [EMAIL PROTECTED] kaffe-1.1.3]# uname -a Linux vs137075.vserver.de 2.4.20-021stab028.17.777-enterprise #1 SMP Tue Jul 19 19:31:27 MSD 2005 i686 i686 i386 GNU/Linux Thanks for testing kaffe. kaffe 1.1.3 is REALLY outdated. Please try current release, currently 1.1.5. Note that 1.1.6 is planned to get released soon, probably next weekend. Your email doesnt say which tests fail. That would be the most interesting info. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] kaffe -jar fails when environment variable CLASSPATH is set
On Tue, Jun 07, 2005 at 01:08:27PM +0900, Ito Kazumitsu wrote: Kaffe invoked with -jar option failes if the environment variable fails CLASSPATH is set. Please see the following test case. How about this? --- kaffe/kaffe/main.c.orig Tue May 31 06:16:02 2005 +++ kaffe/kaffe/main.cTue Jun 7 13:00:52 2005 @@ -130,6 +130,17 @@ } #endif } + /* classpath may be changed later, so we copy it to a newly allocated +area so that the memory can be freed. */ + if (cp != NULL) { + char* newcp; + if ((newcp = malloc(strlen(cp) + 1)) == NULL) { + fprintf(stderr, _(Error: out of memory.\n)); + exit(1); + } + strcpy(newcp, cp); + cp = newcp; + } vmargs.classpath = cp; cp = getenv(LIBRARYPATH1); @@ -499,15 +510,17 @@ + strlen(argv[i]) + 1; - /* Get longer buffer FIXME: free the old one */ + /* Get longer buffer */ if ((newcpath = malloc(cpathlength)) == NULL) { fprintf(stderr, _(Error: out of memory.\n)); exit(1); } /* Construct new classpath */ - if( vmargs.classpath != 0 ) + if( vmargs.classpath != 0 ) { strcpy(newcpath, vmargs.classpath); + free(vmargs.classpath); + } else newcpath[0] = '\0'; strcat(newcpath, path_separator); ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe CLASSPATH and -classpath have to get completely ignored when using -jar. The only valid CLASSPATH is the Class-Path entry in the manifest of the jar. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] CVS kaffe (inaba): Fix bugs introduced in Gcc assembler to real assembler conversion.
On Sat, May 28, 2005 at 01:14:15PM +0200, Dalibor Topic wrote: Kaffe CVS wrote: PatchSet 6581 Date: 2005/05/28 03:16:35 Author: inaba Branch: HEAD Tag: (none) Log: Fix bugs introduced in Gcc assembler to real assembler conversion. thanks, Kiyo! I thought debian and my cross-compilers caught all of these, but it seems that debian has no sh port ;( It has, its just not an official port. http://www.m17n.org/linux-sh/debian/ Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Bug Report: rmic throws NullPointerException
On Wed, May 18, 2005 at 02:15:21AM +0200, Dalibor Topic wrote: Julio M. Merino Vidal wrote: Hi all, I'm using Kaffe 1.1.5 on a Debian system running on a iBook. First of all, congratulations to all developers for this great implementation (really, because Sun does not provide any binaries for Linux/powerpc). Thanks! Bug reports and patches are wonderful, but bug reports combined with patches and praise are even better ;) However, I have a problem with rmic. When I run it to parse some class of my own, it raises a NullPointerException with no further information. I've narrowed down the problem to rmic's Compiler.java, as it tries to use a nonexistent package name to find Compile_* classes. Yeah, seems like a leftover from the early days when the code was in a different package in gnu classpath. Sorry about it. It'd be great if it was fixed mainstream (assuming this is the correct patch). Thanks for the patch, confirmed that it works, and checked in. Could you send the patch to [EMAIL PROTECTED] as well, as that is the original source of the code? [EMAIL PROTECTED] ;-) Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ./configure error in the kaffe-1.1.5
On Mon, May 16, 2005 at 08:49:09PM +0900, [EMAIL PROTECTED] wrote: Hi all.. When I have ./configure, I found the error message. === checking for gtk+-2.0 = 2.4 gthread-2.0 = 2.2 libart-2.0 gdk-pixbuf-2.0... Requested 'gtk+-2.o =' but version of GTK+ is 2.2.1 configure: error: Library requirements (gtk+-2.0 =2.4 gthread-2.0 = 2.2 libart-2.- gdk-pixbuf-2.0)not met: consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them === If I upgrade gtk+ version, It is possible to compile kaffe-1.1.5. I want to know what's the problems. The problem is that you have GTK 2.2.1 and you need at least 2.4.0. As the error message above says. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] First kaffe execution
On Fri, May 06, 2005 at 12:18:55PM +0200, kentropy wrote: Hi I am definitely newbie about Java and Kaffe (I usually program in C++) I don't know how to launch a test application that works fine under Windows with Sun Java I am calling this: /usr/local/kaffe/bin/java -jar APP.jar -jar ../JavaLIB_S.jar Simulator and I get back this error No ``Main-Class'' found in manifest AFAIK into Simulator.class there is public class Simulator implements Runnable Where I'm wrong? You are trying to execute some jar. What you want is to just put the needed jars into your classpath and start the Simulator class: /usr/local/kaffe/bin/java -classpath APP.jar:../JavaLIB_S.jar Simulator This assumes the class Simulator is part of one of the named jars. If its a class in the local directory just add :. to the classpath. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Kaffe Gnu ClassPath
On Wed, May 04, 2005 at 11:16:23AM +0200, Stage Iup - Fabrice Frédéric Kwiatkowski wrote: Hi all i'm looking for a Java VM fully compatible with 1.4.2 version of Java and i would like to know if it is possible to use Gnu ClassPath with Kaffe to enhance the compatibility Kaffe currently uses its own copy of GNU classpath, normally mostly merged with classpath CVS. This will change in the future but isnt done yet. GNU classpath and Kaffe both miss some things to be fully 1.4 compatible. We are working on this. You can track the current status of API completenes at http://www.kaffe.org/~stuart/japi/. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] compile error when compile the kaffe-0.4
On Wed, Apr 27, 2005 at 09:32:48PM +0900, [EMAIL PROTECTED] wrote: I compiled the kaffe-0.4 for study. I search the kaffe-0.4 in history download. when I compiled, found error messages. === gcc -DINTERPRETER -g -O -I, -I, -I./intrp -I./../config -c -fPIC baseClasses.c baseClasses.c: In function 'makeStringObject': baseClasses.c: 158: incompatible types in assignment gcc -DINTERPRETER -g -O -I, -I, -I./intrp -I./../config -c -fPIC ./intrp/machine.c baseClasses.c: In function 'virtualMachine': baseClasses.c: 165: incompatible types in assignment If this kaffe version be able to compile, somebody to help me...^^* kaffe-0.4 version Newer compilers are normaller much stricter then older compilers and dont allow code anymore that was accepted in the the past. Either you use an compiler that was recent at the time of the 0.4 release or you make the code working with newer compilers. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] libffi is missing
On Wed, Apr 20, 2005 at 09:59:22AM +, Hammam Mounir wrote: Hi all; when i try to configure kaffe-1.1.[4/5] with flag '--with-libffi' i have the following error : ***ERROR: libffi is missing I have installed libffi before : ls /usr/local/lib libffi.a libffi.la libffi.so libffi.so.1 ... /usr/local/include|lib is not searched by default. Add -I/usr/local/include to CPPFAGS and -L/usr/local/lib to LDFLAGS before configuring kaffe. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Iconv-based NIO charset provider
On Mon, Apr 18, 2005 at 11:04:45AM +0200, Dalibor Topic wrote: Am Montag, den 18.04.2005, 11:21 +0900 schrieb Ito Kazumitsu: The article http://lists.gnu.org/archive/html/classpath-patches/2005-04/msg00094.html is intriguing. I hope the time is coming near when we can take off Kaffe's original character/byte conversion. Yeah, Sven has been doing some excellent work. I hope to have the current round of catchup with GNU Classpath finished by today evening, and then the code should be in Kaffe. Note that Sven made some benchmarks and kaffe was the only runtime that was slower in converting charsets after applying his patches. All other were drastically faster. Best is to let Sven integrate it into kaffe. He knows the glitches best. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Static Builds
On Sun, Apr 17, 2005 at 10:52:34PM -0400, Michael Franz wrote: Hi, I have been trying to build Kaffe with the static flags (--with-staticlib/bin/vm) and getting build failures. Has anyone else tried this lately? I tried to cross-compile 1.1.5 to mipsel-unknown-linux-gnu and it actually worked after disabling esd sound support. My WLAN router surely has no sound. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Escaping the java trap
On Fri, Apr 08, 2005 at 01:15:39PM +, David Matthews wrote: Or at least trying to. My project did run on 1.1.4, using only the AWT toolkit, but its latest incarnations needs Swing-only features. Using 1.1.5, it compiles (with some warnings) using kaffes compiler(jikes?), but crashes with FATAL ERROR: No more room for local references, leaving an empty JFrame (no other widgets) on screen. If I use the verbose switch, I see a lots of kaffe-bundled classes being loaded, the last one (in case this gives any indication) being gnu/java/net/protocol/jar/Connection$JarFileCache.class(/usr/local/kaffe/jre/lib/rt.jar) Using the -ms switch does not seem to help. Previous experience with earlier versions of Kaffe led me to expect substantial code tweaking would be required, but I'm not sure how to start here. Any ideas please? Looks, like a bug in our GTK peer implementation. Please provide a minimalistic testcase so we can reproduce the bug and fix it. Normally not code tweaking should be need in java apps to make them run with kaffe. Its just the our Swing implementation is not very complete but this is being worked on really hard lately. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] [Question]jike and kaffe
On Fri, Apr 15, 2005 at 03:33:54AM +0100, neo anderson wrote: Hi, lately i try to install kaffe on my pc box, yet i found out one thing makes me confused. when ./configure in the kaffe* folder, messages is as follow. why do we need jikes? isn't jike acting the same as kaffe (simply it's released via ibm)? therefore, if i need to use jike, why i have to use kaffe? i appreciate any suggestions, sincerely. jason jikes is a java compiler. kaffe is in itself jave interpreter/jit. kaffe provides a JDK like environment which includes a compiler. As kaffe itself includes no compiler you can use jikes or kjc for this task. During build time jikes is need to compile all the jave files included in kaffe to bytecode. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] [EMAIL PROTECTED]: Default values for stack and heap size]
Hi kaffe people, I have a little feature request. Please output the default values for stak size, maximum and initial heap size. These values differ from arch to arch and tis hard to follow them. It would be convinient when they would be shown when calling kaffe -version or so. Thanks, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] cross-compiling kaffe for intel IXP425 xscale
On Mon, Apr 11, 2005 at 09:24:41AM +, mourad el badaoui wrote: hi well as said in the title i want to cross-compile kaffe-1.1.4 for a board which contains an intel IXP425 xsclae processor using the arm5b-jungo-linux-gnu toolchain and i want ask for configuration i must use (host?CFLAGS?LDFLAGS?...) thanks Please use 1.1.5 which got released lately, Its much better then the old outdated 1.1.4. CFLAGS and LDFLAGS depend on your cross-compile environment. --host and --build is whatever you compile on (e.g. i686-pc-linux-gnu) --target is arm5b-jungo-linux-gnu. Not that you need a kaffe install on your host to have a working kaffeh. Set KAFFEH=/path/to/kaffeh before configure. Configure is smart enough to tell you what wents wrong and gives you tipps. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Running Tomcat 5.0
On Sun, Apr 10, 2005 at 04:16:51PM +0900, Rei Odaira wrote: Guilhem Lavaux wrote: Hi, Hi Guilhem, No need to file the bug. I have done it myself. Thanks! I also spotted other bugs in the class library while I was trying to run Tomcat 5 on Kaffe. Should bug reports go to GNU Classpath instead of this mailing list? Yes, This would be great. Note that we need a copyright assignment for non-trivial contriutions. Please read http://developer.classpath.org/mediation/ClasspathFirstSteps for more infos. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Jikes Vs Kopi JC
On Sat, Apr 09, 2005 at 10:57:15AM -0500, Gustavo Guillermo Pérez wrote: Hello, I was reading the licens of Jikes and I see is not GNU/GPL, why is the default compiler for the classpath instead of Kopi Java Compiler, I noted that javac is pointing to jikes and I don't want to mix this kind of licences. Wrong: GNU classpath's default compiler is GCJ. I try to use kcj with an earlier compiled kaffe binary but hangs class compilation, and I noticed the build process finish a lot faster than before with jikes. Jikes is free. Just not GPL. That is no problem. Much good software is free but not GPL, see the BSD and Apache licenses. There is any problem with kcj, that makes forcing the use of jikes? Which are the advantages? - KJC is full of bugs, much more then jikes. - KJC was included in kaffe as binary blob which is a no-no for distributions like Debian. You are free to work on KJC to make it better and to include it as source in kaffe. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Jikes Vs Kopi JC
On Sat, Apr 09, 2005 at 12:04:01PM -0500, Gustavo Guillermo Pérez wrote: El Sábado, 9 de Abril de 2005 10:50, Michael Koch escribió: On Sat, Apr 09, 2005 at 10:57:15AM -0500, Gustavo Guillermo Pérez wrote: Hello, I was reading the licens of Jikes and I see is not GNU/GPL, why is the default compiler for the classpath instead of Kopi Java Compiler, I noted that javac is pointing to jikes and I don't want to mix this kind of licences. Wrong: GNU classpath's default compiler is GCJ. I try to use kcj with an earlier compiled kaffe binary but hangs class compilation, and I noticed the build process finish a lot faster than before with jikes. Jikes is free. Just not GPL. That is no problem. Much good software is free but not GPL, see the BSD and Apache licenses. That is that I was don't know, and of course jikes is a lot faster. There is any problem with kcj, that makes forcing the use of jikes? Which are the advantages? - KJC is full of bugs, much more then jikes. I see, ok, I was just ask, becouse I see the article of Richard Stallman called the trap of java. http://programming.newsforge.com/programming/04/04/07/2021242.shtml This article is good and important. We need a complete free toolchain. But this doesnt mean all needs to be GPL. There are a lot of GPL-compatible licenses. There are some isses between GPL and ASL but this getting worked out currently. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] RC for 1.1.5
On Sun, Apr 03, 2005 at 06:04:23AM +0200, Dalibor Topic wrote: Hi all, I've put up the snapshot of CVS head online at http://www.kaffe.org/~robilad/kaffe-1.1.x-cvs.tar.gz which is the 'release candidate' for 1.1.5. It doesn't have the uplifting RELEASE NOTES yet, though, those are coming tomorrow ;) Please give it a beating, and report build failures/send patches. Barring some major bug, that will become 1.1.5. I'm sorry for the delay, I spent most of it chasing build failures reported the contributors that sent in bug reports, failure notices, and above all, patches to fix them all. The tinderbox results look pretty good now. Dalibor: cvs tag -F branchname is your friend when you execute it on current head with the tagname of 1.1.5 branch. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] gnu.java.nio.VMSelector implementation
On Sun, Apr 03, 2005 at 05:04:32PM +0900, Rei Odaira wrote: --- libraries/clib/nio/gnu_java_nio_VMSelector.c 1 Apr 2005 01:02:56 - 1.5 +++ libraries/clib/nio/gnu_java_nio_VMSelector.c 3 Apr 2005 07:24:27 - @@ -166,7 +166,7 @@ /* Here we know we got EINTR. */ if ( (*env)-CallStaticBooleanMethod(env, thread_class, thread_interrupted) ) { - return EINTR; + return -2; } if (timeout) @@ -249,7 +249,7 @@ result = helper_select (env, thread_class, thread_interrupted, max_fd + 1, read_fds, write_fds, except_fds, time_data); - if( result == EINTR ) { + if( result == -2 ) { /* The behavior of JRE 1.4.1 is that no exception is thrown * when the thread is interrupted, but the thread's interrupt * status is set. Clear all of our select sets and return 0, Why do you do these? Using cryptic values withoud documenting it is at least not good for maintaining the code? What does the -2 stands for? We should use constant names wherever possible to make it easier to port the code to other archs. E.g. On my Linux EINTR has the value 4 and not -2. So this change looks just plain wrong for Linux. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [Kaffe] How can I test the Sun demos ?
On Tue, Mar 29, 2005 at 01:37:24PM +0200, Archaiesteron wrote: Michael Koch wrote: This class exists in the free Swing implementation since a long time. What version of kaffe are you using? Did you enabled AWT/Swing to be built at all when building kaffe? $ kaffe -version Kaffe Virtual Machine Copyright (c) 1996-2002 Kaffe.org project contributors (please see the source code for a full list of contributors). All rights reserved. Portions Copyright (c) 1996-2002 Transvirtual Technologies, Inc. The Kaffe virtual machine is free software, licensed under the terms of the GNU General Public License. Kaffe.org is a an independent, free software community project, not directly affiliated with Transvirtual Technologies, Inc. Kaffe is a Trademark of Transvirtual Technologies, Inc. Kaffe comes with ABSOLUTELY NO WARRANTY. Engine: Just-in-time v3 Version: 1.1.3 Java Version: 1.1 I didn't do anything but building the FreeBSD port ; I will have a look at this point. Sorry but 1.1.3 is really stone-age old. Please retry with current kaffe CVS (or with the upcoming 1.1.5 release if it ever gets released). Michael -- Homepage: http://www.worldforge.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [Kaffe] How can I test the Sun demos ?
On Mon, Mar 28, 2005 at 10:37:21AM +0200, Archaiesteron wrote: I still mention that my CLASSPATH variable is set to the jars from Sun (and especially rt.jar). That is surely wrong. SUNs rt.jar can't work with kaffe. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] make check fails on alpha arch
On Mon, Mar 28, 2005 at 12:46:22PM -0500, mel kravitz wrote: Hi, In kaffe-1.1.4, built succesfully on alpha (debian-unstable) ./configure --with-jikes, 'make check' fails with: soft_fixup_trampoline(): return 0x1201b3108 Internal error: caught an unexpected exception. Please check your CLASSPATH and your installation. java/lang/ArrayIndexOutOfBoundsException /bin/sh: line 1: 15962 Aborted env TEST_CLASSES=ConstMethods.cl ass ConstMathMethods.class ParameterizedMethods.class ParameterizedMathMethods.c lass ParameterizedLogicalMethods.class ParameterizedBitwiseMethods.class Control FlowMethods.class StaticMethodCall.class TypeConversion.class StaticFields.class PrimitiveArrays.class ObjectFields.class MethodOptimizations.class `BOOTCLASSP ATH=.; export BOOTCLASSPATH; . ../../BUILD_ENVIRONMENT; sed 's/.*export \(.*\) /echo \1=$\1/' ../../BUILD_ENVIRONMENT | sh` ${dir}$tst FAIL: jitBasic 1 of 1 tests failed Please report to kaffe@kaffe.org make[3]: *** [check-TESTS] Error 1 make[3]: Leaving directory `/home/mel/kaffe-1.1.4/test/internal' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/home/mel/kaffe-1.1.4/test/internal' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/home/mel/kaffe-1.1.4/test' make: *** [check-recursive] Error 1 my .bash_profile contains: CLASSPATH=/usr/local/kaffe/lib/kjc.jar export CLASSPATH -How to fix? -Mel Can you please retry with current CVS and report here? Current CVS is much advanced over 1.1.4 release. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Newbie : SecurityException problems
On Sun, Mar 27, 2005 at 09:43:58PM +0200, Archaiesteron wrote: Hi, I use kaffe for the very first time ; I can run some hello world programs with no problem, but if I want to run a huge project, I get a security exception. I have to tell that my CLASSPATH is (for the moment) set to the Sun rt.jar etc. This is because I use Swing, and other features. The program (a jar archive) is known to work with the Sun JDK / JRE. But with kaffe, I get : $ kaffe -jar Hemicycle.jar java.lang.SecurityException: Prohibited package: java/awt/DefaultKeyboardFocusManager at javax.swing.UIManager.maybeInitialize (UIManager.java:1164) at javax.swing.UIManager.getUI (UIManager.java:775) at javax.swing.JPanel.updateUI (JPanel.java:104) at javax.swing.JPanel.init (JPanel.java:64) at javax.swing.JPanel.init (JPanel.java:87) at javax.swing.JPanel.init (JPanel.java:95) at javax.swing.JRootPane.createGlassPane (JRootPane.java:480) at javax.swing.JRootPane.init (JRootPane.java:311) at javax.swing.JWindow.createRootPane (JWindow.java:233) at javax.swing.JWindow.windowInit (JWindow.java:224) at javax.swing.JWindow.init (JWindow.java:161) at javax.swing.JWindow.init (JWindow.java:112) at baruchel.hemicycle.Hemicycle.main (Hemicycle.java:631) at java.lang.reflect.Method.invoke0 (Method.java) at java.lang.reflect.Method.invoke (Method.java:255) at kaffe.jar.ExecJarName.main (ExecJarName.java:67) at kaffe.jar.ExecJar.main (ExecJar.java:75) What can I do ? I can mention that if I have to allow everything to do everything on my system, there is no problem for that ; I don't use java as a user with my browser, etc. I only have to write some code, and test it before sending it to the final user ; I would like to use Kaffe, but how can I run my program ? Looks like your application installs a SecurityManager and triggers a bug in javax.swing.UIManager.maybeInitialize. I guess there is some call to java.security.AccessController.doPrivileged() missing as java.awt is surely no prohibited package. It should be loaded by the system classloader. If thats not the case, its another bug. Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Newbie : SecurityException problems
On Sun, Mar 27, 2005 at 10:09:20PM +0200, Archaiesteron wrote: Michael Koch wrote: On Sun, Mar 27, 2005 at 09:43:58PM +0200, Archaiesteron wrote: java.lang.SecurityException: Prohibited package: java/awt/DefaultKeyboardFocusManager at javax.swing.UIManager.maybeInitialize (UIManager.java:1164) at javax.swing.UIManager.getUI (UIManager.java:775) at javax.swing.JPanel.updateUI (JPanel.java:104) at javax.swing.JPanel.init (JPanel.java:64) at javax.swing.JPanel.init (JPanel.java:87) at javax.swing.JPanel.init (JPanel.java:95) at javax.swing.JRootPane.createGlassPane (JRootPane.java:480) at javax.swing.JRootPane.init (JRootPane.java:311) at javax.swing.JWindow.createRootPane (JWindow.java:233) at javax.swing.JWindow.windowInit (JWindow.java:224) at javax.swing.JWindow.init (JWindow.java:161) at javax.swing.JWindow.init (JWindow.java:112) at baruchel.hemicycle.Hemicycle.main (Hemicycle.java:631) at java.lang.reflect.Method.invoke0 (Method.java) at java.lang.reflect.Method.invoke (Method.java:255) at kaffe.jar.ExecJarName.main (ExecJarName.java:67) at kaffe.jar.ExecJar.main (ExecJar.java:75) Looks like your application installs a SecurityManager and triggers a bug in javax.swing.UIManager.maybeInitialize. I guess there is some call to java.security.AccessController.doPrivileged() missing as java.awt is surely no prohibited package. It should be loaded by the system classloader. If thats not the case, its another bug. Thank you for this quick answer. No, I don't play with any security aspect. The line 631 of my code at baruchel.hemicycle.Hemicycle.main (Hemicycle.java:631) only contains splash.show(); It is for a splash window appearing on the screen in order to make the user happy during the launch/initialization time. It is obviously the first window appearing on the screen. Since the problem occurs at the very beginning of the execution, I can copy these lines : public static void main(String[] args) { // Splash Screen JWindow splash = new JWindow(); JLabel content = new JLabel(new ImageIcon( myClassLoader.getResource( baruchel/hemicycle/icons/hemicycle.png))); splash.getContentPane().add(content); splash.getContentPane().setBackground(Color.white); content.setBorder(BorderFactory.createEmptyBorder(4,4,4,4)); splash.pack(); splash.setLocationRelativeTo(null); splash.show(); // the line 631 of my code // SNIP ... Are you the author of the jar? The code above doesnt seem to use security stuff. hmmm. Can you sned the manifest of the jar here? Can you write a small testcase that triggers the bug for you? Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Re: japitools 0.9.5 NullPointerException
Am Freitag, 28. Januar 2005 01:36 schrieb Peter Connolly: When I run japitools' japize against two versions of the Sybase JConnect2 library: jconn2.jar, I get a large number of NullPointerExceptions. I am running 0.9.5 of japitools. I have run J2SE JDK 1.4.1 and 1.5.0 with japitools and I get the same results...i.e., many NullPointerExceptions. I'm including japitools.jar and the 1.4.1 rt.jar in the CLASSPATH. Why do you put rt.jar into CLASSPATH ? Have you tried it with any free VM ? I saw a similar case when I compile the java sources with the wrong compiler. E.g. On my setup I may not use jikes to compile the classes. Might be a japitools bug. Sorry, but we dont support proprietary VMs here. This project is targeted to provide a class library implementation for free Java VMs. We are only working with free VMs because we can debug them and fix them as we need. Michael -- Homepage: http://www.worldforge.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Re: NIO in classpath
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Donnerstag, 24. Juli 2003 09:06 schrieb Guilhem Lavaux: Hi ! I joined Kaffe developers recently and I am currently fixing things here and there. One of my current projects is to get a valid NIO implementation in Kaffe/Classpath. As I have already some work done (FileChannels on Kaffe, I may port these code to JNI) I was wondering if someone else is working on it... Yes, I've done some work for this classpath too. I have this already on my disc and is mostly working, just little things are missing. Its a port from my work for libgcj. Michael - -- Homepage: http://www.worldforge.org/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/H888WSOgCCdjSDsRAiqsAJ4iuoAbar1ce5V106j/JCTBDEOriACdE6Hz VEjoVz9gXm5FmxAmB5io2jU= =8dqw -END PGP SIGNATURE- ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe