Re: [kaffe] Basic question about Kaffe Libraries
Hi Deepti, --- Deepti Nayak [EMAIL PROTECTED] wrote: Hi, I have a very basic question about Kaffe libraries. I have a device which has WINCE 3.0 OS and ARM processor. For this I have downloaded Kaffe-common tar file and device specific tar file and installed it on my PDA. To run Kaffe KVM do I need extra libraries? AFAIK you need to download other libraries from Reiner's KaffeCE page. Read his webpage for more information. Among other things it says: Installation # Get the common tarball and the tarball for your device. Create directory kaffe somewhere on your device and copy the files from the kaffe subdirs there. # Get celib.dll 3.10 or higher and copy to \windows. # Run the registry batch file or create the entries manually. # Read about additional registry entries. cheers, dalibor topic __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] shutdownHook changes broke the build
Hi, I have reversed one or two things concerning kaffe.lang.Application to bring it back in CVS and added its functionality in java.lang.Runtime.exit. This must be considered as a temporary patch to make kaffe works as I do not think that kaffe.lang.Application creates an inner application really rightly (for example I can only have one Application unless I want to mess everything in the VM and Application cannot be multithreaded). Maybe this should be cleaned up with a sort of kaffe.lang.ProcessGroup which contains all threads of a sub-process and Application should be an object attribute of a Thread... Regards, Guilhem. P.S.: Someone will need to re-add kaffe/lang/Application.java and clib/native/Application.c P.P.S: Apparently this patch compiles on my computer but ShutdownHookTest has a problem while removing the dummy thread as it is executed during the shutdown phase. I will have a look this evening...Index: libraries/clib/native/Makefile.am === RCS file: /cvs/kaffe/kaffe/libraries/clib/native/Makefile.am,v retrieving revision 1.21 diff -u -3 -p -r1.21 Makefile.am --- libraries/clib/native/Makefile.am 8 Jul 2003 23:48:24 - 1.21 +++ libraries/clib/native/Makefile.am 9 Jul 2003 06:27:45 - @@ -16,6 +16,7 @@ IO_SRCS = \ ObjectStreamClassImpl.c LANG_SRCS = \ + Application.c \ Class.c \ ClassLoader.c \ Compiler.c \ Index: libraries/javalib/Klasses.jar.bootstrap === RCS file: /cvs/kaffe/kaffe/libraries/javalib/Klasses.jar.bootstrap,v retrieving revision 1.20 diff -u -3 -p -r1.20 Klasses.jar.bootstrap Binary files /tmp/cvswwpqJy and Klasses.jar.bootstrap differ Index: libraries/javalib/essential.files === RCS file: /cvs/kaffe/kaffe/libraries/javalib/essential.files,v retrieving revision 1.11 diff -u -3 -p -r1.11 essential.files --- libraries/javalib/essential.files 8 Jul 2003 23:48:25 - 1.11 +++ libraries/javalib/essential.files 9 Jul 2003 06:27:52 - @@ -283,6 +283,7 @@ kaffe/io/StdErrorStream.java kaffe/io/StdInputStream.java kaffe/io/StdOutputStream.java kaffe/lang/AppClassLoader.java +kaffe/lang/Application.java kaffe/lang/ApplicationException.java kaffe/lang/ApplicationResource.java kaffe/lang/ClassPathReader.java Index: libraries/javalib/java/lang/Runtime.java === RCS file: /cvs/kaffe/kaffe/libraries/javalib/java/lang/Runtime.java,v retrieving revision 1.24 diff -u -3 -p -r1.24 Runtime.java --- libraries/javalib/java/lang/Runtime.java 8 Jul 2003 23:48:25 - 1.24 +++ libraries/javalib/java/lang/Runtime.java 9 Jul 2003 06:27:52 - @@ -101,10 +101,18 @@ public void exit(int status) throws Secu if (sm != null) sm.checkExit(status); - /* First we cleanup the Virtual Machine */ - exitJavaCleanup(); - /* Now we run the VM exit function */ - exit0(status); + // Handle application extensions - if this thread is part of an + // application then we exit that rather than the whole thing. + if (!kaffe.lang.Application.exit(status)) { + /* First we cleanup the Virtual Machine */ + exitJavaCleanup(); + /* Now we run the VM exit function */ + exit0(status); + } + // kaffe.lang.Application.exit does not destroy the thread + // that invoked exit(). We stop that thread now. + Thread.currentThread().destroy(); + } public void halt(int status) throws SecurityException { Index: libraries/javalib/java/lang/Thread.java === RCS file: /cvs/kaffe/kaffe/libraries/javalib/java/lang/Thread.java,v retrieving revision 1.41 diff -u -3 -p -r1.41 Thread.java --- libraries/javalib/java/lang/Thread.java 8 Jul 2003 23:48:25 - 1.41 +++ libraries/javalib/java/lang/Thread.java 9 Jul 2003 06:27:52 - @@ -13,6 +13,7 @@ package java.lang; import java.util.HashMap; import java.util.Iterator; import java.security.AccessController; +import kaffe.lang.Application; import kaffe.lang.ApplicationResource; public class Thread @@ -90,7 +91,9 @@ public Thread(ThreadGroup group, Runnabl this.group.checkAccess(); this.group.add(this); + // make sure this.name is non-zero before calling addResource this.name = name.toCharArray(); + Application.addResource(this); this.target = target; this.interrupting = false; @@ -160,6 +163,7 @@ public void destroy() { if (group != null) { group.remove(this); } + Application.removeResource(this); destroy0(); }
[kaffe] Kaffe CVS: kaffe dalibor
CVSROOT:/cvs/kaffe Module name:kaffe Changes by: dalibor 03/07/08 23:47:55 Modified files: . : ChangeLog include: Makefile.in libraries/javalib: Klasses.jar.bootstrap Makefile.am Makefile.in bootstrap.classlist libraries/javalib/java/io: File.java libraries/javalib/kaffe/net/www/protocol/system: SystemURLConnection.java libraries/javalib/kaffe/tools/compiler: Compiler_kjc.java Compiler_pizza.java Log message: 2003-07-09 Dalibor Topic [EMAIL PROTECTED] * libraries/javalib/bootstrap.classlist: Added missing files. Removed kaffe.lang.Application. * libraries/javalib/java/io/File.java: (DeleteOnExitHook) new internal class. (deleteOnExitHook) new static field. (deleteOnExit) use deleteOnExitHook to delete the file on exit. * libraries/javalib/kaffe/net/www/protocol/system/SystemURLConnection.java, libraries/javalib/kaffe/tools/compiler/Compiler_kjc.java, libraries/javalib/kaffe/tools/compiler/Compiler_pizza.java: rewritten not to use Application. * libraries/javalib/Klasses.jar.bootstrap: regenerated. * libraries/javalib/Makefile.am, libraries/javalib/Makefile.in: regenerated. ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
RE: [kaffe] Basic question about Kaffe Libraries
Hi Dalibor, I had gone through this link also and the two files I downloaded are kaffe-common.tar.gz (Common tarball)and kaffe-wince-arm-hpc-wce300.tar.gz (tarball for my device) I also followed all the steps mentioned in the installation instructions but still I am not able to run my applications correctly. Also the Klasses.jar file doesnot contain javax.* classes. Does this mean Kaff doesnot support running J2ME applications? Is there is a workaround for this? As my main objective was to run a J2ME application on my PDA device. If I try to manually add MIDP classes in my Kaffe directory and give its reference in CLASSPATH, it gives Unsatisfied Link Error. Regards, Deepti -Original Message- From: Dalibor Topic [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 12:16 PM To: Deepti Nayak; [EMAIL PROTECTED] Subject: Re: [kaffe] Basic question about Kaffe Libraries Hi Deepti, --- Deepti Nayak [EMAIL PROTECTED] wrote: Hi, I have a very basic question about Kaffe libraries. I have a device which has WINCE 3.0 OS and ARM processor. For this I have downloaded Kaffe-common tar file and device specific tar file and installed it on my PDA. To run Kaffe KVM do I need extra libraries? AFAIK you need to download other libraries from Reiner's KaffeCE page. Read his webpage for more information. Among other things it says: Installation # Get the common tarball and the tarball for your device. Create directory kaffe somewhere on your device and copy the files from the kaffe subdirs there. # Get celib.dll 3.10 or higher and copy to \windows. # Run the registry batch file or create the entries manually. # Read about additional registry entries. cheers, dalibor topic __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
running Java applications within kaffe (Re: [kaffe] shutdownHook changes broke the build)
hi Guilhem, I've just checked in a patch that fixed the remaining compilation problems for me. It now builds fine for me, but the shutdown hook test still fails. My patch changed the compile method of kaffe/tools/compiler/Compiler_kjc and Compiler_pizza classes to return false only when an exception occurs. But I don't think that kjc or pizza always throw an exception before they fail to compile some code, so my implementation of compile() smells funny ;) On the other hand, I don't think there is a way to get the exit codes of applications ra within kaffe as their calls to Runtime.exit() should shutdown the whole virtual machine. so could you try again with the latest set of sources, and check if it makes things any better? Anyway, I'm not sure if running several java applications within a single kaffe instance is a good idea, as long as kaffe doesn't implement some of process separation features from JanosVM. So for example, what happens when an application calls runtime.exit()? It shouldn't shut down the whole machine, unless it's the only application running. It shouldn't run the finalizers of objects not belonging to it, and only run its own shutdown hooks. The exit code should be stored for later retrieval. I assume Tim could come up with further pitfalls. ;) The apperently simple, but slow fat way out is to just use Runtime.exec to start another instance of a JVM. What do you think? cheers, dalibor topic --- Guilhem Lavaux [EMAIL PROTECTED] wrote: Hi, I have reversed one or two things concerning kaffe.lang.Application to bring it back in CVS and added its functionality in java.lang.Runtime.exit. This must be considered as a temporary patch to make kaffe works as I do not think that kaffe.lang.Application creates an inner application really rightly (for example I can only have one Application unless I want to mess everything in the VM and Application cannot be multithreaded). Maybe this should be cleaned up with a sort of kaffe.lang.ProcessGroup which contains all threads of a sub-process and Application should be an object attribute of a Thread... Regards, Guilhem. P.S.: Someone will need to re-add kaffe/lang/Application.java and clib/native/Application.c P.P.S: Apparently this patch compiles on my computer but ShutdownHookTest has a problem while removing the dummy thread as it is executed during the shutdown phase. I will have a look this evening... Index: libraries/clib/native/Makefile.am === RCS file: /cvs/kaffe/kaffe/libraries/clib/native/Makefile.am,v retrieving revision 1.21 diff -u -3 -p -r1.21 Makefile.am --- libraries/clib/native/Makefile.am 8 Jul 2003 23:48:24 - 1.21 +++ libraries/clib/native/Makefile.am 9 Jul 2003 06:27:45 - @@ -16,6 +16,7 @@ IO_SRCS = \ ObjectStreamClassImpl.c LANG_SRCS = \ + Application.c \ Class.c \ ClassLoader.c \ Compiler.c \ Index: libraries/javalib/Klasses.jar.bootstrap === RCS file: /cvs/kaffe/kaffe/libraries/javalib/Klasses.jar.bootstrap,v retrieving revision 1.20 diff -u -3 -p -r1.20 Klasses.jar.bootstrap Binary files /tmp/cvswwpqJy and Klasses.jar.bootstrap differ Index: libraries/javalib/essential.files === RCS file: /cvs/kaffe/kaffe/libraries/javalib/essential.files,v retrieving revision 1.11 diff -u -3 -p -r1.11 essential.files --- libraries/javalib/essential.files 8 Jul 2003 23:48:25 - 1.11 +++ libraries/javalib/essential.files 9 Jul 2003 06:27:52 - @@ -283,6 +283,7 @@ kaffe/io/StdErrorStream.java kaffe/io/StdInputStream.java kaffe/io/StdOutputStream.java kaffe/lang/AppClassLoader.java +kaffe/lang/Application.java kaffe/lang/ApplicationException.java kaffe/lang/ApplicationResource.java kaffe/lang/ClassPathReader.java Index: libraries/javalib/java/lang/Runtime.java === RCS file: /cvs/kaffe/kaffe/libraries/javalib/java/lang/Runtime.java,v retrieving revision 1.24 diff -u -3 -p -r1.24 Runtime.java --- libraries/javalib/java/lang/Runtime.java 8 Jul 2003 23:48:25 - 1.24 +++ libraries/javalib/java/lang/Runtime.java 9 Jul 2003 06:27:52 - @@ -101,10 +101,18 @@ public void exit(int status) throws Secu if (sm != null) sm.checkExit(status); - /* First we cleanup the Virtual Machine */ - exitJavaCleanup(); - /* Now we run the VM exit function */ - exit0(status); + // Handle application extensions - if this thread is part of an + // application then we exit that rather than the whole thing. + if (!kaffe.lang.Application.exit(status)) { + /* First we cleanup the Virtual Machine */ + exitJavaCleanup(); + /* Now
Re: [kaffe] Kaffe CVS: kaffe dalibor
On Tue, 08 Jul 2003 23:47:55 -0700 Kaffe CVS [EMAIL PROTECTED] wrote: Hi, Log message: 2003-07-09 Dalibor Topic [EMAIL PROTECTED] * libraries/javalib/bootstrap.classlist: Added missing files. Removed kaffe.lang.Application. I think we could also delete all the other Application* related stuff in kaffe.lang, couldn't we? Greetings, Helmer ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Kaffe CVS: kaffe dalibor
--- Helmer Krämer [EMAIL PROTECTED] wrote: On Tue, 08 Jul 2003 23:47:55 -0700 Kaffe CVS [EMAIL PROTECTED] wrote: Hi, Log message: 2003-07-09 Dalibor Topic [EMAIL PROTECTED] * libraries/javalib/bootstrap.classlist: Added missing files. Removed kaffe.lang.Application. I think we could also delete all the other Application* related stuff in kaffe.lang, couldn't we? yeah, I think so. I'll check in a patch. cheers, dalibor topic __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
RE: [kaffe] Basic question about Kaffe Libraries
Hi Deepti, --- Deepti Nayak [EMAIL PROTECTED] wrote: Hi Dalibor, I had gone through this link also and the two files I downloaded are kaffe-common.tar.gz (Common tarball)and kaffe-wince-arm-hpc-wce300.tar.gz (tarball for my device) I also followed all the steps mentioned in the installation instructions but still I am not able to run my applications correctly. Unfortunately, the port to WinCE has not yet been merged in, so I can't really say how far along it is, or provide further installation instructions. You could ask on Rainer's wince-programming list, though. He did the port, so he could know. Of course, if you could help out with the merge, I could give you some assistance for the necessary build system changes. I can't do the merge myself, because Microsoft's embedded Visual C++ for HPCs doesn't want to work on my Windows 98 notebook. Yeah, I know both HPC and Win98 are ages old, but that's what I have available. ;) So this port needs a dedidated programmer with access to WinCE devices compilers, who can function as a bridge between the WinCE programmers and the rest of kaffe's developers to merge it into the main tree. Also the Klasses.jar file doesnot contain javax.* classes. Does this mean Kaff doesnot support running J2ME applications? Is there is a workaround for this? As my main objective was to run a J2ME application on my PDA device. cureent sources in the CVS contain the following subdirs in libraries/javalib/javax/ : accessibility naming rmisound sql swing transactionxml not all of it is fully implememnted though. For example, work on Swing hasn't really started yet. But the Classpath developers have been making some amazing progress there, so I may merge more of their code in eventually. If I try to manually add MIDP classes in my Kaffe directory and give its reference in CLASSPATH, it gives Unsatisfied Link Error. there was someone asking a similar question a few days ago. Kaffe doesn't support MIDP out of the box, AFAIK, but there is an open source project which allows J2SE type virtual machines to run J2ME applications. It's here: http://me4se.org/ . I don't now if it works on top of kaffe. It would be cool if you could try it and post your experiences. cheers, dalibor topic __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] iPAQ binary
Hello. does anybody know where to download binary for iPAQ (arm) of kaffe version 1.1.0. Last week I made an binary for the yopy, an arm linux pda. It is mostly compatible with the ipaq familiar distribution. You can get it here: http://www.mancke-software.de/yopy/ If you try it, I would be interested to hear from the result. Sebastian. ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[Fwd: running Java applications within kaffe (Re: [kaffe] shutdownHook changes broke the build)]
Sorry, I used another e-mail address. I resubmit it. ---BeginMessage--- Dalibor Topic wrote: hi Guilhem, I've just checked in a patch that fixed the remaining compilation problems for me. It now builds fine for me, but the shutdown hook test still fails. My patch changed the compile method of kaffe/tools/compiler/Compiler_kjc and Compiler_pizza classes to return false only when an exception occurs. But I don't think that kjc or pizza always throw an exception before they fail to compile some code, so my implementation of compile() smells funny ;) On the other hand, I don't think there is a way to get the exit codes of applications ra within kaffe as their calls to Runtime.exit() should shutdown the whole virtual machine. See you commit it ! You are quick :-). so could you try again with the latest set of sources, and check if it makes things any better? Hmmm , I cannot test it until this evening. I'll tell you later. Anyway, I'm not sure if running several java applications within a single kaffe instance is a good idea, as long as kaffe doesn't implement some of process separation features from JanosVM. Maybe I should have a look at it ... So for example, what happens when an application calls runtime.exit()? It shouldn't shut down the whole machine, unless it's the only application running. It shouldn't run the finalizers of objects not belonging to it, and only run its own shutdown hooks. The exit code should be stored for later retrieval. I assume Tim could come up with further pitfalls. ;) The apperently simple, but slow fat way out is to just use Runtime.exec to start another instance of a JVM. What do you think? Well, running Runtime.exec is obviously the securest of all possibilities but it should be great also to have embedded Process directly in the VM, again I should have a look at JanosVM. cheers, dalibor topic Bye, Guilhem. ---End Message---
Re: [kaffe] iPAQ binary
thanks! basically your binary works on iPAQ. but when launching applications using awt, then it fails with segmentation fault. so version 1.0.7 seems to be more stable. can you launch applications using awt or swing? best regards olivier Hello. does anybody know where to download binary for iPAQ (arm) of kaffe version 1.1.0. Last week I made an binary for the yopy, an arm linux pda. It is mostly compatible with the ipaq familiar distribution. You can get it here: http://www.mancke-software.de/yopy/ If you try it, I would be interested to hear from the result. Sebastian. -- oli4 - [EMAIL PROTECTED] - www.oli4.ch +++ GMX - Mail, Messaging more http://www.gmx.net +++ Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern! ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] iPAQ binary
thanks! basically your binary works on iPAQ. fine. but when launching applications using awt, then it fails with segmentation fault. so version 1.0.7 seems to be more stable. can you launch applications using awt or swing? On the YOPY awt and swing are no problem (except the performance of swing). Building kaffe for the YOPY was very easy. So you may try it. Have you checked http://www.handhelds.org/z/wiki/JavaOnIPAQ Kero van Gelder made an binary of Kaffe 1.0.6 an fixed some Xlibs from the familar dist. Maby you should ask him. He's being helpful. best regards Sebastian ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Kaffe CVS: kaffe dalibor
CVSROOT:/cvs/kaffe Module name:kaffe Changes by: dalibor 03/07/09 03:01:57 Modified files: . : ChangeLog libraries/javalib: Klasses.jar.bootstrap Makefile.am Makefile.in bootstrap.classlist essential.files libraries/javalib/java/lang: Thread.java Removed files: libraries/javalib/kaffe/lang: ApplicationException.java ApplicationResource.java Log message: 2003-07-09 Dalibor Topic [EMAIL PROTECTED] * libraries/javalib/bootstrap.classlist: Removed kaffe.lang.ApplicationException and kaffe.lang.ApplicationResource. * libraries/javalib/java/lang/Thread.java: Don't implement ApplicationResource. (freeResource) removed. * libraries/javalib/Klasses.jar.bootstrap: regenerated. ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] iPAQ binary
Hi. thanks! I try it on iPAQ 3660. ~/aaa # kaffe CaffeineMarkEmbeddedApp Sieve score = 311 (98) Loop score = 656 (2017) Logic score = 1166 (0) String score = 83 (708) Float score = 26 (185) Method score = 217 (166650) Overall score = 219 ~/aaa # but,At CaffeineMark, I found a failed message when I tauched Info tab. ~/aaa # kaffe CaffeineMarkApp kaffe-bin: jthread.c:1194: jthread_disable_stop: Assertion `currentJThread-stop Counter 50' failed. Aborted ~/aaa # best regards Sebastian Mancke wrote: thanks! basically your binary works on iPAQ. fine. but when launching applications using awt, then it fails with segmentation fault. so version 1.0.7 seems to be more stable. can you launch applications using awt or swing? On the YOPY awt and swing are no problem (except the performance of swing). Building kaffe for the YOPY was very easy. So you may try it. Have you checked http://www.handhelds.org/z/wiki/JavaOnIPAQ Kero van Gelder made an binary of Kaffe 1.0.6 an fixed some Xlibs from the familar dist. Maby you should ask him. He's being helpful. best regards Sebastian ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] iPAQ binary
Hi. thanks! I try it on iPAQ 3660. My YOPY results are simmilar: = kaffe -cp embed.zip CaffeineMarkEmbeddedApp Sieve score = 306 (98) Loop score = 643 (2017) Logic score = 1225 (0) String score = 94 (708) Float score = 25 (185) Method score = 226 (166650) Overall score = 224 = I would try the CaffeineMark, but can't get an working download anywhere. (only 404er everywhere) Has anybody a valid URL or can send it to me by mail? Sebastian On Mittwoch, 9. Juli 2003 15:22, KISHIDA Masami wrote: Hi. thanks! I try it on iPAQ 3660. ~/aaa # kaffe CaffeineMarkEmbeddedApp Sieve score = 311 (98) Loop score = 656 (2017) Logic score = 1166 (0) String score = 83 (708) Float score = 26 (185) Method score = 217 (166650) Overall score = 219 ~/aaa # but,At CaffeineMark, I found a failed message when I tauched Info tab. ~/aaa # kaffe CaffeineMarkApp kaffe-bin: jthread.c:1194: jthread_disable_stop: Assertion `currentJThread-stop Counter 50' failed. Aborted ~/aaa # best regards ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: running Java applications within kaffe (Re: [kaffe] shutdownHook changes broke the build)
Dalibor Topic wrote: hi Guilhem, I've just checked in a patch that fixed the remaining compilation problems for me. It now builds fine for me, but the shutdown hook test still fails. My patch changed the compile method of kaffe/tools/compiler/Compiler_kjc and Compiler_pizza classes to return false only when an exception occurs. But I don't think that kjc or pizza always throw an exception before they fail to compile some code, so my implementation of compile() smells funny ;) On the other hand, I don't think there is a way to get the exit codes of applications ra within kaffe as their calls to Runtime.exit() should shutdown the whole virtual machine. See you commit it ! You are quick :-). so could you try again with the latest set of sources, and check if it makes things any better? Hmmm , I cannot test it until this evening. I'll tell you later. Anyway, I'm not sure if running several java applications within a single kaffe instance is a good idea, as long as kaffe doesn't implement some of process separation features from JanosVM. Maybe I should have a look at it ... So for example, what happens when an application calls runtime.exit()? It shouldn't shut down the whole machine, unless it's the only application running. It shouldn't run the finalizers of objects not belonging to it, and only run its own shutdown hooks. The exit code should be stored for later retrieval. I assume Tim could come up with further pitfalls. ;) The apperently simple, but slow fat way out is to just use Runtime.exec to start another instance of a JVM. What do you think? Well, running Runtime.exec is obviously the securest of all possibilities but it should be great also to have embedded Process directly in the VM, again I should have a look at JanosVM. cheers, dalibor topic Bye, Guilhem. ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: running Java applications within kaffe (Re: [kaffe] shutdownHook changes broke the build)
hi Guilhem, I've just checked in a patch that fixed the remaining compilation problems for me. Cool, thanks. It now builds fine for me, but the shutdown hook test still fails. From a cursory examination it looks like some bad code is generated somewhere. The 'dummy' variable has a different value after the first call to addShutdownHook() :( Anyway, I'm not sure if running several java applications within a single kaffe instance is a good idea, as long as kaffe doesn't implement some of process separation features from JanosVM. It was a non-standard interface that noone (as far as I know) used anyways. So for example, what happens when an application calls runtime.exit()? It shouldn't shut down the whole machine, unless it's the only application running. It shouldn't run the finalizers of objects not belonging to it, and only run its own shutdown hooks. The exit code should be stored for later retrieval. I assume Tim could come up with further pitfalls. ;) Those are the high points :) cheers, dalibor topic tim ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] iPAQ binary
Hallo Sebastian, --- Sebastian Mancke [EMAIL PROTECTED] wrote: I would try the CaffeineMark, but can't get an working download anywhere. (only 404er everywhere) Has anybody a valid URL or can send it to me by mail? try here: http://www.benchmarkhq.ru/cm30/info.html cheers, dalibor topic __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: running Java applications within kaffe (Re: [kaffe] shutdownHook changes broke the build)
From a cursory examination it looks like some bad code is generated somewhere. The 'dummy' variable has a different value after the first call to addShutdownHook() :( FYI, I'm pretty sure its kjc's fault tim ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: running Java applications within kaffe (Re: [kaffe] shutdownHook changes broke the build)
From a cursory examination it looks like some bad code is generated somewhere. The 'dummy' variable has a different value after the first call to addShutdownHook() :( FYI, I'm pretty sure its kjc's fault Note to Rob: The verifier isn't picking up on the error like the jdk: Exception in thread main java.lang.VerifyError: (class: ShutdownHookTest, method: main signature: ([Ljava/lang/String;)V) Incompatible argument to function tim ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: running Java applications within kaffe (Re: [kaffe] shutdownHook changes broke the build)
On Wednesday 09 July 2003 17:25, Timothy Stack wrote: hi Guilhem, I've just checked in a patch that fixed the remaining compilation problems for me. Cool, thanks. It now builds fine for me, but the shutdown hook test still fails. From a cursory examination it looks like some bad code is generated somewhere. The 'dummy' variable has a different value after the first call to addShutdownHook() :( Yeah ! It seems that with jikes 1.18 there isn't any problem at all with ShutdownHookTest. Running ShutdownHookTest with verifier enabled seems to work also here. Guilhem. ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: running Java applications within kaffe (Re: [kaffe] shutdownHookchanges broke the build)
Hi Tim, From a cursory examination it looks like some bad code is generated somewhere. The 'dummy' variable has a different value after the first call to addShutdownHook() :( FYI, I'm pretty sure its kjc's fault Note to Rob: The verifier isn't picking up on the error like the jdk: Exception in thread main java.lang.VerifyError: (class: ShutdownHookTest, method: main signature: ([Ljava/lang/String;)V) Incompatible argument to function I don't get that error when Jikes compiles the class, but only when KJC does, so I agree that it's a problem with KJC. I sent an email about a week ago to the KJC listserve about how their compiler fails to pass even static verification and have not received a respone. Is that project dead or dormant? I also haven't received a single email from their developers list at all... Thanks for pointing out the verifier behavior discrepency. The reason the current verifier doesn't catch the same error that the jdk's does is because it's a type error within the bytecode, which would be caught during pass 3b, which I haven't checked in yet. I catch it with the code currently on my home box. cheers, Rob ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Kaffe CVS: kaffe rob
CVSROOT:/cvs/kaffe Module name:kaffe Changes by: rob 03/07/09 13:22:17 Modified files: . : ChangeLog kaffe/kaffevm : constants.h verify.c Log message: * kaffe/kaffevm/constants.h More handy macros for accessing names and signatures. * kaffe/kaffevm/verify.c Moved a bunch of stuff into pass 3a that was previously in pass 3b (which hasn't been checked in yet). Also fixed a couple pretty obscure bugs. ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Kaffe-1.1.0 .. missing X support on NetBSD 1.6.1
Not sure if anyone else has noticed this. If you compile kaffe-1.1.0 under NetBSD 1.6.1 (i386), it works OK - except that there's an AWT library missing. Turns out that 'configure' is deciding that X is not available. So I tried './configure --with-awt=X' .. and it came back with: ' .. missing X support'. Seems like kaffe maybe be expecting some header files which aren't in /usr/X11R6/include .. Any thoughts? G. _ Hotmail is now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/signup.asp ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe