View Single Post
Old 05-09-2007, 07:49 AM   #16
tororebelde
No es el toro que piensas
tororebelde began at the beginning.
 
tororebelde's Avatar
 
Posts: 44
Karma: 10
Join Date: Mar 2007
Device: iRex iliad
My first tricks with java over iliad. This is what I'm doing:

Compile a dummy class that show a silly message (on com/irex/sdk):
Code:
javac -source 1.2 -target 1.2 MyOwnTest.java
Create a java package with this new stuff:
Code:
jar cvfm javi.jar Manifest -C com/ .
Manifest is just a java Manifest file with the text "Main-Class: com.irex.sdk.MyOwnTest".

If I lauch this on iliad the following messages arises:
Code:
root@ereader:/home/intent# sys/platform/linux/taoref/er10xx/elate -B sys/platform/linux/taoref/er10xx/target.img -g2 -l sys/platform/linux/taoref/er10xx/ "-capp/stdio/jcode -classpath javi.jar com.irex.sdk.MyOwnTest"
intent (Linux boot loader)
Copyright (c) Tao Systems Ltd 1997-2000

0x564E24 bytes read
Booting image at 0x401ce000-0x405ce400
Sys/kn/init/p_start: Device _init failed [-24] ! '/device/screen' will not be mounted.
app/stdio/jcode: (*env)->FindClass returned an exception
java.lang.NoClassDefFoundError: com.irex.sdk.MyOwnTest
    java.lang.NoClassDefFoundError.<init>(Ljava/lang/String;)V
Obviously: it says that don't know who is MyOwnTest class.
Not obviously (to me): why don't know my class?

Can scotty1024 or other mobileread guru give me a hint? I have never fighted against jar files and I will follow trying to run this, but if somebody here could help me, I would be very grateful
tororebelde is offline   Reply With Quote