Help - Search - Members - Calendar
Full Version: Compiling with jdk 1.1.8 javac
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Personal Java/Jeode/J2ME Personal Profile
prun769
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.
stupkid
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!
jfox
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).
freizugheit
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.
jfox
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
freizugheit
Jeffrey,

Thanks for the update and I will stick to Jikes v 1.15 which I feel quite comfortable to date.
smuelas
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
jfox
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.