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

IPB

Welcome Guest ( Log In | Register )

> Can't Get Package Installation To Work Properly...
daldred
post Aug 24 2005, 09:31 AM
Post #1





Group: Members
Posts: 3
Joined: 24-August 05
Member No.: 7,940



I'm using a SL5500 with Sharp 3.10 ROM, and developing a Java app which I hope to release generally when it's ready. It's a Sudoku helper (it doesn't solve them, just lets you do them on screen): it's called Zudoku.

I have a very preliminary version working, and I've been trying to package and install it. The file Zudoku.class will run happily from my development directory, so if I do:

cd /home/zaurus/Programming/Java
evm Zudoku

things happen as they should.

I've built an ipkg following the instructions on the Java FAQ on the ZUG pages. The run_Zudoku file at this stage reads:

cd /home/QtPalmtop/java/
evm -XappName=run_Zudoku Zudoku

...and the Zudoku.class file is in /home/QtPalmtop/java. Everything seems to be in the right places, but when I tap the icon, the program doesn't run.

If I use the console, navigate to /home/QtPalmtop/bin, and do ./run_Zudoku, I get an error message:

Exception in thread "main", java.lang.NoClassDefFoundError: Sudoku at Zudoku.main (bytecode 0)

However, exactly the same class file, run from my development directory, runs without any problems. If I change the run_Zudoku file so that it cd's to /home/zaurus/Programming/Java instead of the QtPalmtop directory, it runs the program, provides the icon on the taskbar - no problems!

What am I missing? huh.gif
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Omicron
post Aug 24 2005, 10:57 AM
Post #2





Group: Members
Posts: 608
Joined: 14-April 04
Member No.: 2,853



QUOTE(daldred @ Aug 24 2005, 12:31 PM)
If I use the console, navigate to /home/QtPalmtop/bin, and do ./run_Zudoku, I get an error message:

  Exception in thread "main", java.lang.NoClassDefFoundError: Sudoku at Zudoku.main (bytecode 0)


What am I missing?    huh.gif
*


Sounds like it is looking for Zudoku class in paackge Sudoku (or directory).

Try using various Sudoku.Zudoku type combinations.

Also, you probably need to user the -classpath option to specify the class path of .



Hope this helps.
Go to the top of the page
 
+Quote Post
daldred
post Aug 24 2005, 12:31 PM
Post #3





Group: Members
Posts: 3
Joined: 24-August 05
Member No.: 7,940



QUOTE(Omicron @ Aug 24 2005, 07:57 PM)
Sounds like it is looking for Zudoku class in paackge Sudoku (or directory).


Aaargh. Department of the bleeding obvious strikes again. I'd not transferred all the class files over....

Thanks....
Go to the top of the page
 
+Quote Post

Posts in this topic


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

 



RSS Lo-Fi Version Time is now: 20th December 2014 - 06:26 AM