Author Topic: Can't Get Package Installation To Work Properly...  (Read 8619 times)

daldred

  • Newbie
  • *
  • Posts: 3
    • View Profile
Can't Get Package Installation To Work Properly...
« on: August 24, 2005, 01:31:07 pm »
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?    

Omicron

  • Hero Member
  • *****
  • Posts: 608
    • View Profile
    • http://
Can't Get Package Installation To Work Properly...
« Reply #1 on: August 24, 2005, 02:57:21 pm »
Quote
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?   
[div align=\"right\"][a href=\"index.php?act=findpost&pid=93109\"][{POST_SNAPBACK}][/a][/div]

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.
« Last Edit: August 24, 2005, 02:58:30 pm by Omicron »
"You Shall Not Pass"    
....Gandalf, Lord Of The Rings
--------------------------------------------------------------
C-860 (Cacko), 3x4gb MD  
DLINK 660W, 1GB SD,  
Upgraded Archos AV320 w/80GB HDD
Pocketop and Targus IR keyboards
Favorite Deal Site: SaveCity.net (pretty cool, good deals daily on one page)

daldred

  • Newbie
  • *
  • Posts: 3
    • View Profile
Can't Get Package Installation To Work Properly...
« Reply #2 on: August 24, 2005, 04:31:11 pm »
Quote
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....

insomniux

  • Newbie
  • *
  • Posts: 15
    • View Profile
Can't Get Package Installation To Work Properly...
« Reply #3 on: September 23, 2005, 03:10:39 pm »
Quote
Quote
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....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=93138\"][{POST_SNAPBACK}][/a][/div]

Interesting I've been looking for a sudoku package for my sl6000 but havent found any working If you interested in testers, I will be happy to volunteer!
sl-6000 Sharp rom 1.12
Kingston CF-card 1G, Kingston SD-card 512M
GPS Fortuna PocketXTrack
Belt case by Piel Frama

daldred

  • Newbie
  • *
  • Posts: 3
    • View Profile
Can't Get Package Installation To Work Properly...
« Reply #4 on: September 23, 2005, 06:02:43 pm »
Quote
Quote
Quote
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....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=93138\"][{POST_SNAPBACK}][/a][/div]

Interesting I've been looking for a sudoku package for my sl6000 but havent found any working If you interested in testers, I will be happy to volunteer!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=96820\"][{POST_SNAPBACK}][/a][/div]

If you'd like to mail me on david at familyaldred dot org dot uk  I'll send you a trial version!   I'm reasonably happy with the way it works, but there are bits which don't seem quite right in interface terms, and I'd love someone else to have a look.