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 Package application Jar with liraries included in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Package application Jar with liraries included in Eclipse" Watch "Package application Jar with liraries included in Eclipse" New topic
Author

Package application Jar with liraries included in Eclipse

Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
Hi. I am using Eclipse Galileo for my development, and I am using LWUIT for my GUI stuff. from what I have read I have to deploy the application as a single jar, so I would have to somehow bundle the libraries with my own classes in a single jar. When I right-click on a Java ME project, I can choose "Create a package" from one of the submenus, but this seems to only package my jar, without the libraries. Is there a way to change this in eclipse, or do I have to do it manually / antenna?

* I wasn't sure where to put this thread, as it could as well be put in the Eclipse forum. Sorry if I posted it in the wrong place.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

This is the right place. I doubt that many general Eclipse users would have understood the way J2ME projects are organized and built.


Customer surveys are for companies who didn't pay proper attention to begin with.
Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
Ok, found it. The short answer is: Build Path -> add the required library or project -> Order and Export tab -> make sure the checkbox is selected!

If anyone is interested, here is the source:
http://help.eclipse.org/galileo/topic/org.eclipse.mtj.doc.user/html/reference/advanced_topics/advJarFiles.html

Regards,
Raf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Package application Jar with liraries included in Eclipse
 
Similar Threads
referencing jars from a jar
eclipse: export tool
Creating a JAR for an application that uses external libraries
is this about class path?
Create Executable Jar File With User Library