OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Compiling with jdk 1.1.8 javac
prun769
post Jul 11 2004, 07:13 PM
Post #1





Group: Members
Posts: 24
Joined: 8-January 04
Member No.: 1,391



Has anyone had any luck compiling on their Z using the jdk 1.1.8 javac? I have it all set up using the jeode evm and the sun classes.zip. For command line programs it compiles great. When I try to compile an AWT program however, it throws an ArrayIndexOutOfBoundsException when attempting to load java.awt.GridBagLayout.

Out of curiousity, I compiled it using the wintel jdk 1.1.8 and it compiled fine. I tried both the windows and and solaris classes.zip, and both give the same behavior. I also tried including the classes.zip before the jeode jars in the classpath , and the only difference is that I get a ClassCastException instead.

I've switched to jikes in the meantime, but I was wondering if anyone actually got this to work on an awt program.
Go to the top of the page
 
+Quote Post
stupkid
post Jul 12 2004, 08:52 AM
Post #2





Group: Members
Posts: 578
Joined: 2-January 04
From: Texas USA
Member No.: 1,324



I can compile this Sun example:

http://developers.sun.com/techtopics/mobil...cles/ztutorial/

with Jikes and 1.3.1 jars. The above is simple AWT example for J2ME. Why would you want to use something other then Jikes on the Z.

Hope this helps!
Go to the top of the page
 
+Quote Post
jfox
post Jun 20 2005, 09:08 PM
Post #3





Group: Members
Posts: 13
Joined: 10-December 03
Member No.: 950



QUOTE(prun769 @ Jul 11 2004, 07:13 PM)
Has anyone had any luck compiling on their Z using the jdk 1.1.8 javac?  I have it all set up using the jeode evm and the sun classes.zip.  For command line programs it compiles great.  When I try to compile an AWT program however, it throws an ArrayIndexOutOfBoundsException when attempting to load java.awt.GridBagLayout.

Out of curiousity, I compiled it using the wintel jdk 1.1.8 and it compiled fine.  I tried both the windows and and solaris classes.zip, and both give the same behavior.  I also tried including the classes.zip before the jeode jars in the classpath , and the only difference is that I get a ClassCastException instead.

I've switched to jikes in the meantime, but I was wondering if anyone actually got this to work on an awt program.
*


What you are doing is using the classes.zip compiled for x86 on the Zaurus ARM. The classes.zip is meant to be used only for the compile, where it serves as a source of library names and class type detail for the compiler (and in the case of javac, the compiler program itself).
Go to the top of the page
 
+Quote Post
freizugheit
post Jun 21 2005, 12:50 AM
Post #4





Group: Members
Posts: 409
Joined: 7-November 03
Member No.: 811



prun769,

I used jikes (version 1.15) to compile HelloPP.java without any error. Hence it worked when I used evm to activate.


stupkid,

Please englighten where we could download jikes 1.3.1 for Zaurus.
Go to the top of the page
 
+Quote Post
jfox
post Jun 30 2005, 08:03 PM
Post #5





Group: Members
Posts: 13
Joined: 10-December 03
Member No.: 950



QUOTE(freizugheit @ Jun 21 2005, 12:50 AM)
prun769,

I used jikes (version 1.15) to compile HelloPP.java without any error.  Hence it worked when I used evm to activate.


stupkid,

Please englighted when we could download jikes 1.3.1 for Zaurus.
*


Well, the latest Jikes is 1.22 -- but with the Jikes v1.15 you have you can do just about anything that you could expect a java compiler to do on the Z. It is the new classes from JDK 1.2 through 1.5 that one is going to have trouble with, and that is not a problem of the compiler.

I am not planning to compile up Jikes 1.22 unless someone can think of an advantage to that over v1.15 (or 1.18 which I have seen available for ARM). You can still download Jikes 1.15 from my tools website http://FoxFrenchTranslations.com/zaurus.

Jeffrey Fox
Go to the top of the page
 
+Quote Post
freizugheit
post Jul 1 2005, 02:17 AM
Post #6





Group: Members
Posts: 409
Joined: 7-November 03
Member No.: 811



Jeffrey,

Thanks for the update and I will stick to Jikes v 1.15 which I feel quite comfortable to date.
Go to the top of the page
 
+Quote Post
smuelas
post Jul 1 2005, 12:46 PM
Post #7





Group: Members
Posts: 110
Joined: 15-October 04
Member No.: 5,026



Excuse me for going into your thread but I have observed serious faults on Z6000 using Jikes. Most specially when compiling quite big applications that use a lot of numbers, "double numbers".
It is simply totally faulty. On the contrary, with jdk1.1.8 from blackdown everything runs smoothly with exactly the same results, up to five digits, than in a "big" desktop and running Java5.
Perhaps I am doing something stupid with Jikes, but I've tried many times, compiling and/or downloading it. :-(
Smuelas
Go to the top of the page
 
+Quote Post
jfox
post Sep 1 2005, 09:16 PM
Post #8





Group: Members
Posts: 13
Joined: 10-December 03
Member No.: 950



QUOTE(smuelas @ Jul 1 2005, 12:46 PM)
Excuse me for going into your thread but I have observed serious faults on Z6000 using Jikes. Most specially when compiling quite big applications that use a lot of numbers, "double numbers".
It is simply totally faulty. On the contrary, with jdk1.1.8 from blackdown everything runs smoothly with exactly the same results, up to five digits, than in a "big" desktop and running Java5.
Perhaps I am doing something stupid with Jikes, but I've tried many times, compiling and/or downloading it. :-(
Smuelas
*

Well what you are doing is not clear, Smuelas. Are you runing these compiles with the Blackdown JVM? Is the result of the compile still faulty when run under Windows or x86 Linux.

What I was saying earlier is that you can indeed compile with javac 1.1.8 using jeode as the jvm -- my instructions are appended to my instructions for the Kopi compiler on my website.

Jeffrey Fox
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 13th July 2014 - 12:18 AM