aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes JDK packager tool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "JDK packager tool" Watch "JDK packager tool" New topic
Author

JDK packager tool

anas ibraheem
Greenhorn

Joined: Oct 01, 2010
Posts: 9
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

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?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
anas ibraheem
Greenhorn

Joined: Oct 01, 2010
Posts: 9
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

Joined: May 14, 2008
Posts: 5845
    
    7

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!


JBoss In Action
anas ibraheem
Greenhorn

Joined: Oct 01, 2010
Posts: 9
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

Joined: Jun 25, 2001
Posts: 16305
    
  21

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

Joined: May 14, 2008
Posts: 5845
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDK packager tool