[kaffe] How to port kaffe to sh3?
Dear all, I am struggling to port kaffe to SolutionEngine7709A (sh3). It's OS is SH-Linux (2.4.18). I am planning to compile kaffe-1.0.7.tar.gz on SolutionEngine7709A, and I copied the directory of superh in kaffe-1.1.3.tar.gz to kaffe-1.0.7/config, and add one line to kaffe-1.0.7/config/md.h: #include superh/linux/md.h, and changed known=no to known=yes in the file of kaffe-1.0.7/configure. Then I run ./configure make make install All runs OK, but when I test a HelloWorld.java, It fails at: bash-2.05a# javac HelloWorld.java bash-2.05a# ls HelloWorld.class HelloWorld.java bash-2.05a# java HelloWorld.class java.lang.ClassNotFoundException: HelloWorld/class at java.lang.Class.forName(Class.java:native) at java.lang.Class.forName(Class.java:58) CLASSPATH is set with: CLASSPATH=.:/usr/local/kaffe/jre/lib:CLASSPATH=/usr/local/kaffe/jre/lib/rt.jar:/usr/local/kaffe/lib:/usr/local/kaffe/lib/kjc.jar Thanks very much! zhou guanghua $i??x%?dii?}?i
[kaffe] Re: How to port kaffe to sh3?
sorry. CLASSPATH=.:/usr/local/kaffe/jre/lib:/usr/local/kaffe/jre/lib/rt.jar:/usr/local/kaffe/lib:/usr/local/kaffe/lib/kjc.jar but I run java HelloWorld ok! bash-2.05a# java HelloWorld Hello World, my dear - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 09, 2004 6:40 PM Subject: How to port kaffe to sh3? Dear all, I am struggling to port kaffe to SolutionEngine7709A (sh3). It's OS is SH-Linux (2.4.18). I am planning to compile kaffe-1.0.7.tar.gz on SolutionEngine7709A, and I copied the directory of superh in kaffe-1.1.3.tar.gz to kaffe-1.0.7/config, and add one line to kaffe-1.0.7/config/md.h: #include superh/linux/md.h, and changed known=no to known=yes in the file of kaffe-1.0.7/configure. Then I run ./configure make make install All runs OK, but when I test a HelloWorld.java, It fails at: bash-2.05a# javac HelloWorld.java bash-2.05a# ls HelloWorld.class HelloWorld.java bash-2.05a# java HelloWorld.class java.lang.ClassNotFoundException: HelloWorld/class at java.lang.Class.forName(Class.java:native) at java.lang.Class.forName(Class.java:58) CLASSPATH is set with: CLASSPATH=.:/usr/local/kaffe/jre/lib:CLASSPATH=/usr/local/kaffe/jre/lib/rt.jar:/usr/local/kaffe/lib:/usr/local/kaffe/lib/kjc.jar Thanks very much! zhou guanghua $i??x%?dii?}?i
[kaffe] [Fwd: Re: kjc bug]
Hi, I have verified that this bug is indeed fixed. So I suggest to sync with the kjc CVS. Thanks, Matthias Original Message Subject: Re: kjc bug Date: Fri, 30 Jan 2004 10:46:18 +0100 From: Martin Lackner [EMAIL PROTECTED] To: Matthias Pfisterer [EMAIL PROTECTED] CC: [EMAIL PROTECTED] References: [EMAIL PROTECTED] Hi Matthias! Now this bug is fixed in the current version of KJC in the CVS. Regards, Martin Matthias Pfisterer wrote: Hi, I found a bug in kjc: --- artemis:~/java/tmpkjavac -version Version 2.1A released 11. February 2002 artemis:~/java/tmpkjavac Interface.java UsingClass.java UsingClass.java:1: error:Unaccessible class pack/Interface/InnerInterface can not be imported [JLS 7.5.1] --- I don't get an error on this with the compiler of the Sun JDK 1.4.2 and 1.5.0 and with jikes 1.18. Matthias package pack; public interface Interface { static interface InnerInterface { } } import pack.Interface.InnerInterface; public class UsingClass { } -- Matthias Pfisterer Matthias [dot] Pfisterer [at] web [dot] de Reuchlinstrasse 28 phone ++49-711-62 87 12 D-70176 Stuttgart (in Deutschland 0711-62 87 12) GERMANY Work like you don't need the money. Love like you've never been hurt. Dance like nobody is watching. Java Sound Resources (examples, FAQ, applications): http://www.jsresources.org/ Tritonus, the open source implementation of the Java Sound API: http://www.tritonus.org/ -- ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] CVS kaffe (kaz): libraries/javalib/java/io/ObjectInputStream.java
PatchSet 4407 Date: 2004/02/09 15:56:22 Author: kaz Branch: HEAD Tag: (none) Log: 2004-02-09 Ito Kazumitsu [EMAIL PROTECTED] * libraries/javalib/java/io/ObjectInputStream.java (readClassDescriptor): Avoid the overflow of fieldmapping. Members: ChangeLog:1.1991-1.1992 libraries/javalib/java/io/ObjectInputStream.java:1.31-1.32 Index: kaffe/ChangeLog diff -u kaffe/ChangeLog:1.1991 kaffe/ChangeLog:1.1992 --- kaffe/ChangeLog:1.1991 Mon Feb 9 00:44:32 2004 +++ kaffe/ChangeLog Mon Feb 9 15:56:22 2004 @@ -1,3 +1,9 @@ +2004-02-09 Ito Kazumitsu [EMAIL PROTECTED] + + * libraries/javalib/java/io/ObjectInputStream.java + (readClassDescriptor): + Avoid the overflow of fieldmapping. + 2004-02-08 Dalibor Topic [EMAIL PROTECTED] * Makefile.am (DIST_SUBDIRS): Removed intl. Index: kaffe/libraries/javalib/java/io/ObjectInputStream.java diff -u kaffe/libraries/javalib/java/io/ObjectInputStream.java:1.31 kaffe/libraries/javalib/java/io/ObjectInputStream.java:1.32 --- kaffe/libraries/javalib/java/io/ObjectInputStream.java:1.31 Mon Feb 2 18:01:05 2004 +++ kaffe/libraries/javalib/java/io/ObjectInputStream.java Mon Feb 9 15:56:23 2004 @@ -491,7 +491,6 @@ ObjectStreamField[] stream_fields = osc.fields; ObjectStreamField[] real_fields = ObjectStreamClass.lookup(clazz).fields; ObjectStreamField[] fieldmapping = new ObjectStreamField[2 * Math.max(stream_fields.length, real_fields.length)]; -osc.fieldMapping = fieldmapping; int stream_idx = 0; int real_idx = 0; @@ -543,9 +542,21 @@ } if (real_field != null !real_field.isToSet()) real_field = null; + /* If some of stream_fields does not correspond to any of real_fields, +* or the opposite, then fieldmapping will go short. +*/ + if (map_idx == fieldmapping.length) + { + ObjectStreamField[] newfieldmapping = + new ObjectStreamField[fieldmapping.length + 2]; + System.arraycopy(fieldmapping, 0, + newfieldmapping, 0, fieldmapping.length); + fieldmapping = newfieldmapping; + } fieldmapping[map_idx++] = stream_field; fieldmapping[map_idx++] = real_field; } +osc.fieldMapping = fieldmapping; return osc; } ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Re: How to port kaffe to sh3?
There is some support for sh3, but I do not know how well it currently works. Maybe somebody else on the list has tried it recently? I wouldn't expect things to work by copying the config directory from 1.1.3 to 1.0.7. I'm surprised you even got it to build. Also, a small request - the email program I'm using can read the gb2312 charset, but many can't, and the mail archive can't, eg: http://www.kaffe.org/pipermail/kaffe/2004-February/045202.html Could you use an alternate charset when posting to the list? Cheers, - Jim On Mon, 9 Feb 2004 18:48:52 +0800 Öܹ⻪ [EMAIL PROTECTED] wrote: sorry. CLASSPATH=.:/usr/local/kaffe/jre/lib:/usr/local/kaffe/jre/lib/rt.jar:/usr/local/kaffe/lib:/usr/local/kaffe/lib/kjc.jar but I run java HelloWorld ok! bash-2.05a# java HelloWorld Hello World, my dear - Original Message - From: Öܹ⻪ [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 09, 2004 6:40 PM Subject: How to port kaffe to sh3? Dear all, I am struggling to port kaffe to SolutionEngine7709A (sh3). It's OS is SH-Linux (2.4.18). I am planning to compile kaffe-1.0.7.tar.gz on SolutionEngine7709A, and I copied the directory of superh in kaffe-1.1.3.tar.gz to kaffe-1.0.7/config, and add one line to kaffe-1.0.7/config/md.h: #include superh/linux/md.h, and changed known=no to known=yes in the file of kaffe-1.0.7/configure. Then I run ./configure make make install All runs OK, but when I test a HelloWorld.java, It fails at: bash-2.05a# javac HelloWorld.java bash-2.05a# ls HelloWorld.class HelloWorld.java bash-2.05a# java HelloWorld.class java.lang.ClassNotFoundException: HelloWorld/class at java.lang.Class.forName(Class.java:native) at java.lang.Class.forName(Class.java:58) CLASSPATH is set with: CLASSPATH=.:/usr/local/kaffe/jre/lib:CLASSPATH=/usr/local/kaffe/jre/lib/rt.jar:/usr/local/kaffe/lib:/usr/local/kaffe/lib/kjc.jar Thanks very much! zhou guanghua ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] make check results report
: == Ito Kazumitsu [EMAIL PROTECTED] writes: : Today's make check showed: : : 2 of 144 tests failed : Please report to [EMAIL PROTECTED] : : Tests that failed are: : FAIL: TestSerialVersions.java : FAIL: TestSerialFields.java My last patch to libraries/javalib/java/io/ObjectInputStream.java will solve the problem, at least of TestSerialFields.java. I also sent the patch to GNU Classpath mailing list. ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] kaffe and Jakarta's XMLRPC lib
I'm having trouble with Jakarta's XMLRPC lib on kaffe 1.1.3, which I got from Debian: Engine: Just-in-time v3 Version: 1.1.3 Java Version: 1.1 I extracted the guts of the XmlRpcClient into a little test app to see if I got the same odd behavior, and I did. When I run this app, what I get on the other end is a POST request that looks correct except for one little detail: the content-length is zero! Any idea why that might be happening? This works fine on a Sun JVM. BTW the url is made-up. The server I'm poking at is behind my firewall. Also, thanks for help with my previous question about https. - import java.io.InputStream; import java.io.OutputStream; import java.net.URL; import java.net.URLConnection; public class PostTest { public static void main(String[] args) throws Exception { byte[] request = stinkoman.getBytes(); URL url = new URL(http://www.foo.com/xmlrpc/;); URLConnection con = url.openConnection(); con.setDoInput(true); con.setDoOutput(true); con.setUseCaches(false); con.setAllowUserInteraction(false); con.setRequestProperty( Content-Length, Integer.toString(request.length)); con.setRequestProperty(Content-Type, text/xml); OutputStream out = con.getOutputStream(); out.write(request, 0, request.length); out.flush(); out.close(); InputStream in = con.getInputStream(); in.close(); } } ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] why kaffe and tomcat on sh3 are not ready?
Dear all, I am struggling to port kaffe and Tomcat to SolutionEngine7709A (sh3). It's OS is SH-Linux (2.4.18). Firstly, I tried to compile kaffe-1.1.3.tar.gz on SolutionEngine7709A: bash-2.05a#./configure --with-engine=intrp --host=superh-linux bash-2.05a# make Making all in . make[1]: Entering directory `/home/kaffe/kaffe-1.1.3' ... Making all in compile_time make[3]: Entering directory `/home/kaffe/kaffe-1.1.3/test/regression/compile_time' java.lang.ClassNotFoundException: at.dms.kjc.Main at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:296) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) java.lang.ClassNotFoundException: at.dms.kjc.Main at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:296) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) ... So I gave up kaffe-1.1.3.tar.gz . Then I compiled kaffe-1.0.7.tar.gz on SolutionEngine7709A. I copied the directory of superh in kaffe-1.1.3.tar.gz to kaffe-1.0.7/config, and add one line to kaffe-1.0.7/config/md.h: #include superh/linux/md.h, and changed known=no to known=yes in the file of kaffe-1.0.7/configure. Then I run ./configure make make install All commands run OK, then I tested HelloWorld.java bash-2.05a# javac HelloWorld.java bash-2.05a# ls HelloWorld.class HelloWorld.java bash-2.05a# java HelloWorld Hello World, my dear But it fails: bash-2.05a# java HelloWorld.class java.lang.ClassNotFoundException: HelloWorld/class at java.lang.Class.forName(Class.java:native) at java.lang.Class.forName(Class.java:58) The /etc/profile is set with: CLASSPATH=.:/usr/local/kaffe/jre/lib:/usr/local/kaffe/jre/lib/rt.jar:/usr/local/kaffe/lib:/usr/local/kaffe/lib/kjc.jar CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.29/bin PATH=$PATH:/usr/local/kaffe/bin:/usr/local/jakarta-tomcat-4.1.29/bin JAVA_HOME=/usr/local/kaffe JAVA_OPTS=-ss96k -mx256M -Dbuild.compiler=kjc Then I test tomcat 4.1.29, it fails: bash-2.05a# catalina.sh run Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.29 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.29 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.29/temp Using JAVA_HOME: /usr/local/kaffe Couldn't find or load essential class `java/lang/Object' java.lang.NoClassDefFou ndError java/lang/Object Aborted Thanks very much! zhou guanghua $ix%dizi}Yb~i
[kaffe] why kaffe and tomcat on sh3 are not ready?
Dear all, I am struggling to port kaffe and Tomcat to SolutionEngine7709A (sh3). It's OS is SH-Linux (2.4.18). Firstly, I tried to compile kaffe-1.1.3.tar.gz on SolutionEngine7709A: bash-2.05a#./configure --with-engine=intrp --host=superh-linux bash-2.05a# make Making all in . make[1]: Entering directory `/home/kaffe/kaffe-1.1.3' ... Making all in compile_time make[3]: Entering directory `/home/kaffe/kaffe-1.1.3/test/regression/compile_time' java.lang.ClassNotFoundException: at.dms.kjc.Main at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:296) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) java.lang.ClassNotFoundException: at.dms.kjc.Main at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:296) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) ... So I gave up kaffe-1.1.3.tar.gz . Then I compiled kaffe-1.0.7.tar.gz on SolutionEngine7709A. I copied the directory of superh in kaffe-1.1.3.tar.gz to kaffe-1.0.7/config, and add one line to kaffe-1.0.7/config/md.h: #include superh/linux/md.h, and changed known=no to known=yes in the file of kaffe-1.0.7/configure. Then I run ./configure make make install All commands run OK, then I tested HelloWorld.java bash-2.05a# javac HelloWorld.java bash-2.05a# ls HelloWorld.class HelloWorld.java bash-2.05a# java HelloWorld Hello World, my dear But it fails: bash-2.05a# java HelloWorld.class java.lang.ClassNotFoundException: HelloWorld/class at java.lang.Class.forName(Class.java:native) at java.lang.Class.forName(Class.java:58) The /etc/profile is set with: CLASSPATH=.:/usr/local/kaffe/jre/lib:/usr/local/kaffe/jre/lib/rt.jar:/usr/local/kaffe/lib:/usr/local/kaffe/lib/kjc.jar CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.29/bin PATH=$PATH:/usr/local/kaffe/bin:/usr/local/jakarta-tomcat-4.1.29/bin JAVA_HOME=/usr/local/kaffe JAVA_OPTS=-ss96k -mx256M -Dbuild.compiler=kjc Then I test tomcat 4.1.29, it fails: bash-2.05a# catalina.sh run Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.29 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.29 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.29/temp Using JAVA_HOME: /usr/local/kaffe Couldn't find or load essential class `java/lang/Object' java.lang.NoClassDefFou ndError java/lang/Object Aborted Thanks very much! zhou guanghua $ix%dizi}Yb~i
Your message to kaffe awaits moderator approval
Your mail to 'kaffe' with the subject Kbxepa Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notification of the moderator's decision.