This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDK packager tool

 
anas ibraheem
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi every body

i have some JARs and WARs and i need to package them in one single EAR , now i know there are diffrent ways to do that but the one i am interested in is the packager tool that you can find under JDK\bin . but each time i use i get a screen that looks like paint and nothing happens , also no EAR is created :

c:\dep > packager -enterpriseArchive AasWeb.war:binxml.jar:application.xml anas anas.ear


any hints
thanks
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm actually not familiar with that packager tool, would you not find it easier to package it using the ANT ear task or the maven ear plugin?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might have found a program named "packager" under jdk\bin, but my jdk/bin doesn't have one and I've never heard of one.
 
anas ibraheem
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for yoyr reply

i am sure there is a packager tool located under bin ... and as a prove please check this link which describes this tool

http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Tools8.html

thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, packager[.exe] appeared in 1.4.2 (I see it in 1.4.2_11, but not in 1.4.1_05 or 1.3.1_12), and then was renamed to pack200[.exe] in 1.5 and retains that name in 1.6. I have never noticed it before and never used it - Ant's jar task, or the corresponding Maven functionality, was always good enough. I guess ya learn something new every day!
 
anas ibraheem
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
yes my Friend ... every day new things . actully this tool is supposed to create packaged files war , jar ,rar and ear ...

thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the docs, this was originally a script, but apparently they converted it to make it write-once/run-anywhere.

I found it under its new name.

It's OK if all you need to do is bundle stuff up quick-and-dirty. However, most production builds these days require a lot more work than that, which is why Ant and Maven are so popular. I gave up on building projects using home-grown scripts somewhere back around 2002.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anas ibraheem wrote:actully this tool is supposed to create packaged files war , jar ,rar and ear ...

Ant's <jar> task builds all of these also. After all, an EAR, WAR, RAR, etc. are just JAR files with additional config files included.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic