File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Classpath Setting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Classpath Setting" Watch "Classpath Setting" New topic
Author

Classpath Setting

Roshini Sridharan
Ranch Hand

Joined: Jan 16, 2001
Posts: 143
Hi,

I am working with J2ME 2.2 Toolkit and would like to know how to set the classpath if i am using any external API as a part of my MIDLet program.

Actually i have a JAR file that contains some package that i use it in my midlet and when i try to build the project i get package not found error.. i don't know where to change the bootclasspath / classpath setting..

It would be nice anyone could help me solve this problem

Thanx in advance

Regards
Roshini.S
Ramender Mall
Ranch Hand

Joined: Sep 08, 2005
Posts: 311
hi roshni,

try copying the external jar package in the /lib directory of your PROJECT..
I have never added any external packages, but whenever I will do it, I will first try by placing it there..


Ramy...
[ December 28, 2005: Message edited by: Ramender Mall ]
Roshini Sridharan
Ranch Hand

Joined: Jan 16, 2001
Posts: 143
Hi Ramy,

It worked.. Thanx for the information, i tried placing it in the WTK22\lib folder.. i.e why i didn't get it right.. thanx a lot.


Regards
Roshini.S
[ December 28, 2005: Message edited by: roshini sridhar ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Classpath Setting