• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

palmdb.jar

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
apologies if this has appeared b4, I searched but could only find one reference to it. I'm getting the same compilation problem
"Exception in thread "main" java.lang.NoClassDefFoundError: palm/database/MakePalmApp"
however I dont even have palmdb.jar to include on my classpath does anyone know where it is or how I can get hold of it as this is slowly driving me mad.
I'm thinking it might be one of the bits that wouldnt compile as I get this error message when trying.
"Administrator@JAM c:/j2me_cldc/build/win32
$ make
>>>Recursively making ../../tools/preverifier/build/win32 all...
make[1]: Entering directory `/cygdrive/c/j2me_cldc/tools/preverifier/build/win32
'
cl: not found
make[1]: *** [check_class.obj] Error 127
make[1]: Leaving directory `/cygdrive/c/j2me_cldc/tools/preverifier/build/win32'
make: *** [all] Error 1"
anyone have the same problems or is it just me
thanks
tim
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got the same error before.
You are missing the "cl.exe" command line executable, which is provided with MS C++ 6.0 in my case, maybe other C-Compilers may also have it.
The "NoClassDefFoundError" appears when your classpath does not point to the directory where "MakePalmApp" is.
Following is a Batch I use for compiling, preverifying and making a .prc file:
Remember to set your paths appropriately!
set path=d:\jdk1.3\bin;%path%
set allclasspath=".;classes;d:\j2me_cldc\bin\common\api\classes;D:\j2me_cldc\bin\kjava\api\classes;d:\midp-fcs\classes;D:\midp4palm;"
set j2meclasspath="d:\j2me_cldc\bin\common\api\classes;d:\j2me_cldc\bin\kjava\api\classes"
md tmp
javac -d tmp -classpath %allclasspath% *.java
D:\j2me_cldc\bin\preverify -d classes -classpath %j2meclasspath% tmp
java -classpath %allclasspath% palm.database.MakePalmApp -v -networking -bootclasspath %j2meclasspath% -classpath classes <YourProject.MainClass>
 
tim gunning
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mark
cheers for that, made a couple of changes and it worked for me (just probs with paths)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
set allclasspath=".;classes;c:\j2me_cldc\bin\common\api\classes;c:\j2me_cldc\bin\kjava\api\classes;c:\j2me_cldc\tools\palm\classes;"
set j2meclasspath="c:\j2me_cldc\bin\common\api\classes;c:\j2me_cldc\bin\kjava\api\classes"
md tmp
javac -d tmp -classpath %allclasspath% *.java
c:\j2me_cldc\bin\win32\preverify -d classes -classpath %j2meclasspath% tmp
cd classes
java -classpath %allclasspath% palm.database.MakePalmApp -v -bootclasspath %j2meclasspath% HelloPalm
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
but I couldnt get the final .prc to compile unless I did it as above, it didnt seem to be able to find it, but changeing the name isnt a biggy
anyway thanks a lot, I now have everything working/compiling/building and running :0
cheers
tim
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic