This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Package application Jar with liraries included in Eclipse

 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the right place. I doubt that many general Eclipse users would have understood the way J2ME projects are organized and built.
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic