Thread: iLiad Irex's Java solution
View Single Post
Old 05-04-2007, 05:43 PM   #2
azerty
Junior Member
azerty began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2007
Device: iliad/palm TX
Irex left some test classes in irex.jar

Had a look in the irex.jar file in /home/intent by copying it to pc and renaming irex.jar into irex.zip and unzip. There the classes show up. Using cavaj (the reverse of javac) decompiler you can have a look into the source code of the classes.

You can even run e.g. the SDKTest program. I made a copy of /user/intent/runmobi.sh to /user/intent/test.sh. Now change within test.sh com.irec.sdk.mobipocket.reader.IrexReader into com.irex.sdk.SDKTest and start ./test.sh blabla. In the meantime run in antoher shell a tail -f /tmp/ktrace.log and see the debug messages. On the screen of the iliad you will see some flashing of the screen and some more icons pop-up in the toolbar.

Also running a sample "helloworld.class" works when putting .; extra in the classpath. Graphical stuff I did not get working yet.

It looks like we have a j2me VM here. I'd love to get the AWT stuff working on the display. Using the irex classes the screen refresh etc. can be nicely incorporated in the java code.

It seems that iRex left quite some bits of debug code in the mobireader software. In the irex.jar SDK also a HelloWorld, a helloWorldAWT and some test script for security show up. When opening a mobipocket have a look at the tail -f /tmp/ktrace.log.

Last edited by azerty; 05-05-2007 at 09:53 AM. Reason: typo
azerty is offline   Reply With Quote