Adding a JAR File to the major JAR File

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding a JAR File to the major JAR File

ThSITC
Whilst I did GOOGLE (listen, Master CHIP, and whilst I'm still working,
I do have an instant question/problem I have to find a solution for:

I do have a couple of JAR-Files, say:

Rexx2Nrx.jar
RexxForm.jar
PP.jar

etc,etc

*and*

I do want to MERGE them into a single thsitc.jar, for ease of reference.
Of course, within the different JAR's, the names are UNIQUE.

Does anybody of you know how I can ADD a JAR-File (not a single File)
using the Java Class jar?

Questions:
    a)Is this possible at all, or prohibited (by design)
    b) when yes, which syntax?

I'm running on JVM 7.xx      ...

Thanks in advance,
Thomas Schneider.

--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

Re: Adding a JAR File to the major JAR File

rvjansen
Thomas,

use the jar command.

make a directory, cd to it

jar xvf your.jar
jar xvf your_other.jar

this will extract them to the same directory

now do:

jar cvf new_combined.jar *

then you will hava a merged jar.

best regards,

René Jansen.

On 27 okt. 2011, at 19:13, Thomas Schneider wrote:

> Whilst I did GOOGLE (listen, Master CHIP, and whilst I'm still working,
> I do have an instant question/problem I have to find a solution for:
>
> I do have a couple of JAR-Files, say:
>
> Rexx2Nrx.jar
> RexxForm.jar
> PP.jar
>
> etc,etc
>
> *and*
>
> I do want to MERGE them into a single thsitc.jar, for ease of reference. Of course, within the different JAR's, the names are UNIQUE.
>
> Does anybody of you know how I can ADD a JAR-File (not a single File)
> using the Java Class jar?
>
> Questions:
>   a)Is this possible at all, or prohibited (by design)
>   b) when yes, which syntax?
>
> I'm running on JVM 7.xx      ...
>
> Thanks in advance,
> Thomas Schneider.
>
> --
> Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team (www.netrexx.org)
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Adding a JAR File to the major JAR File

ThSITC
Thanks for the clarification, Rene.

I asked because I thought I did have overlooked something and there is a
more direct way to MERGE Jar's.

Issue closed.
Thanks again.
Thomas.
=======================================================
Am 27.10.2011 21:37, schrieb René Jansen:

> Thomas,
>
> use the jar command.
>
> make a directory, cd to it
>
> jar xvf your.jar
> jar xvf your_other.jar
>
> this will extract them to the same directory
>
> now do:
>
> jar cvf new_combined.jar *
>
> then you will hava a merged jar.
>
> best regards,
>
> René Jansen.
>
> On 27 okt. 2011, at 19:13, Thomas Schneider wrote:
>
>> Whilst I did GOOGLE (listen, Master CHIP, and whilst I'm still working,
>> I do have an instant question/problem I have to find a solution for:
>>
>> I do have a couple of JAR-Files, say:
>>
>> Rexx2Nrx.jar
>> RexxForm.jar
>> PP.jar
>>
>> etc,etc
>>
>> *and*
>>
>> I do want to MERGE them into a single thsitc.jar, for ease of reference. Of course, within the different JAR's, the names are UNIQUE.
>>
>> Does anybody of you know how I can ADD a JAR-File (not a single File)
>> using the Java Class jar?
>>
>> Questions:
>>    a)Is this possible at all, or prohibited (by design)
>>    b) when yes, which syntax?
>>
>> I'm running on JVM 7.xx      ...
>>
>> Thanks in advance,
>> Thomas Schneider.
>>
>> --
>> Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team (www.netrexx.org)
>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>


--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

RE: Adding a JAR File to the major JAR File

Dave Woodman
There is also One-JAR

http://one-jar.sourceforge.net

>From sourceforge:-

        What is One-JAR?

One-JAR lets you package a Java application together with its dependency
Jars into a single executable
Jar file.

        Cheers,

                Dave.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Thomas Schneider
Sent: 28 October 2011 15:42
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Adding a JAR File to the major JAR File

Thanks for the clarification, Rene.

I asked because I thought I did have overlooked something and there is a
more direct way to MERGE Jar's.

Issue closed.
Thanks again.
Thomas.
=======================================================
Am 27.10.2011 21:37, schrieb René Jansen:

> Thomas,
>
> use the jar command.
>
> make a directory, cd to it
>
> jar xvf your.jar
> jar xvf your_other.jar
>
> this will extract them to the same directory
>
> now do:
>
> jar cvf new_combined.jar *
>
> then you will hava a merged jar.
>
> best regards,
>
> René Jansen.
>
> On 27 okt. 2011, at 19:13, Thomas Schneider wrote:
>
>> Whilst I did GOOGLE (listen, Master CHIP, and whilst I'm still working,
>> I do have an instant question/problem I have to find a solution for:
>>
>> I do have a couple of JAR-Files, say:
>>
>> Rexx2Nrx.jar
>> RexxForm.jar
>> PP.jar
>>
>> etc,etc
>>
>> *and*
>>
>> I do want to MERGE them into a single thsitc.jar, for ease of reference.
Of course, within the different JAR's, the names are UNIQUE.

>>
>> Does anybody of you know how I can ADD a JAR-File (not a single File)
>> using the Java Class jar?
>>
>> Questions:
>>    a)Is this possible at all, or prohibited (by design)
>>    b) when yes, which syntax?
>>
>> I'm running on JVM 7.xx      ...
>>
>> Thanks in advance,
>> Thomas Schneider.
>>
>> --
>> Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>


--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Adding a JAR File to the major JAR File

ThSITC
Hello Dave, did know about OneJar, but thought I've overlooked something
in regular Jar syntax.

I will stick with regular Jar for my current task in question (as I do
have all the
classes I do need on my desk)

Thanks anyway for your follow up and reply.
Thomas.
=============
Am 28.10.2011 17:45, schrieb Dave Woodman:

> There is also One-JAR
>
> http://one-jar.sourceforge.net
>
> > From sourceforge:-
>
> What is One-JAR?
>
> One-JAR lets you package a Java application together with its dependency
> Jars into a single executable
> Jar file.
>
> Cheers,
>
> Dave.
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Thomas Schneider
> Sent: 28 October 2011 15:42
> To: IBM Netrexx
> Subject: Re: [Ibm-netrexx] Adding a JAR File to the major JAR File
>
> Thanks for the clarification, Rene.
>
> I asked because I thought I did have overlooked something and there is a
> more direct way to MERGE Jar's.
>
> Issue closed.
> Thanks again.
> Thomas.
> =======================================================
> Am 27.10.2011 21:37, schrieb René Jansen:
>> Thomas,
>>
>> use the jar command.
>>
>> make a directory, cd to it
>>
>> jar xvf your.jar
>> jar xvf your_other.jar
>>
>> this will extract them to the same directory
>>
>> now do:
>>
>> jar cvf new_combined.jar *
>>
>> then you will hava a merged jar.
>>
>> best regards,
>>
>> René Jansen.
>>
>> On 27 okt. 2011, at 19:13, Thomas Schneider wrote:
>>
>>> Whilst I did GOOGLE (listen, Master CHIP, and whilst I'm still working,
>>> I do have an instant question/problem I have to find a solution for:
>>>
>>> I do have a couple of JAR-Files, say:
>>>
>>> Rexx2Nrx.jar
>>> RexxForm.jar
>>> PP.jar
>>>
>>> etc,etc
>>>
>>> *and*
>>>
>>> I do want to MERGE them into a single thsitc.jar, for ease of reference.
> Of course, within the different JAR's, the names are UNIQUE.
>>> Does anybody of you know how I can ADD a JAR-File (not a single File)
>>> using the Java Class jar?
>>>
>>> Questions:
>>>     a)Is this possible at all, or prohibited (by design)
>>>     b) when yes, which syntax?
>>>
>>> I'm running on JVM 7.xx      ...
>>>
>>> Thanks in advance,
>>> Thomas Schneider.
>>>
>>> --
>>> Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
> Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
> (www.netrexx.org)
>>> _______________________________________________
>>> Ibm-netrexx mailing list
>>> [hidden email]
>>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>>
>>
>


--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

Re: Adding a JAR File to the major JAR File

George Hovey-2
In reply to this post by Dave Woodman
Dave,
I think One-JAR has been mentioned before and it certainly sounds like a possible answer to (one of) our prayers.   Are you experienced in its use?  Any "gotchas"?
George

On Fri, Oct 28, 2011 at 11:45 AM, Dave Woodman <[hidden email]> wrote:
There is also One-JAR

http://one-jar.sourceforge.net

>From sourceforge:-

       What is One-JAR?

One-JAR lets you package a Java application together with its dependency
Jars into a single executable
Jar file.

       Cheers,

               Dave.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Thomas Schneider
Sent: 28 October 2011 15:42
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Adding a JAR File to the major JAR File

Thanks for the clarification, Rene.

I asked because I thought I did have overlooked something and there is a
more direct way to MERGE Jar's.

Issue closed.
Thanks again.
Thomas.
=======================================================
Am 27.10.2011 21:37, schrieb René Jansen:
> Thomas,
>
> use the jar command.
>
> make a directory, cd to it
>
> jar xvf your.jar
> jar xvf your_other.jar
>
> this will extract them to the same directory
>
> now do:
>
> jar cvf new_combined.jar *
>
> then you will hava a merged jar.
>
> best regards,
>
> René Jansen.
>
> On 27 okt. 2011, at 19:13, Thomas Schneider wrote:
>
>> Whilst I did GOOGLE (listen, Master CHIP, and whilst I'm still working,
>> I do have an instant question/problem I have to find a solution for:
>>
>> I do have a couple of JAR-Files, say:
>>
>> Rexx2Nrx.jar
>> RexxForm.jar
>> PP.jar
>>
>> etc,etc
>>
>> *and*
>>
>> I do want to MERGE them into a single thsitc.jar, for ease of reference.
Of course, within the different JAR's, the names are UNIQUE.
>>
>> Does anybody of you know how I can ADD a JAR-File (not a single File)
>> using the Java Class jar?
>>
>> Questions:
>>    a)Is this possible at all, or prohibited (by design)
>>    b) when yes, which syntax?
>>
>> I'm running on JVM 7.xx      ...
>>
>> Thanks in advance,
>> Thomas Schneider.
>>
>> --
>> Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)
>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>


--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

RE: Adding a JAR File to the major JAR File

Dave Woodman

Sorry George, I have merely toyed with it, and found that the description on the tin was accurate.

 

As for any kinks it may have, bear in mind that it implements a custom classloader – the scope for problems is quite large – although it does seem to work quite well. I note a reported incompatibility with Jetty, though.

 

I will play with it further, as time permits, and note any issues that I have here.

 

                Dave

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of George Hovey
Sent: 28 October 2011 18:52
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Adding a JAR File to the major JAR File

 

Dave,
I think One-JAR has been mentioned before and it certainly sounds like a possible answer to (one of) our prayers.   Are you experienced in its use?  Any "gotchas"?
George

On Fri, Oct 28, 2011 at 11:45 AM, Dave Woodman <[hidden email]> wrote:

There is also One-JAR

http://one-jar.sourceforge.net

>From sourceforge:-

       What is One-JAR?

One-JAR lets you package a Java application together with its dependency
Jars into a single executable
Jar file.

       Cheers,

               Dave.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Thomas Schneider
Sent: 28 October 2011 15:42
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Adding a JAR File to the major JAR File


Thanks for the clarification, Rene.

I asked because I thought I did have overlooked something and there is a
more direct way to MERGE Jar's.

Issue closed.
Thanks again.
Thomas.
=======================================================
Am 27.10.2011 21:37, schrieb René Jansen:


> Thomas,
>
> use the jar command.
>
> make a directory, cd to it
>
> jar xvf your.jar
> jar xvf your_other.jar
>
> this will extract them to the same directory
>
> now do:
>
> jar cvf new_combined.jar *
>
> then you will hava a merged jar.
>
> best regards,
>
> René Jansen.
>
> On 27 okt. 2011, at 19:13, Thomas Schneider wrote:
>
>> Whilst I did GOOGLE (listen, Master CHIP, and whilst I'm still working,
>> I do have an instant question/problem I have to find a solution for:
>>
>> I do have a couple of JAR-Files, say:
>>
>> Rexx2Nrx.jar
>> RexxForm.jar
>> PP.jar
>>
>> etc,etc
>>
>> *and*
>>
>> I do want to MERGE them into a single thsitc.jar, for ease of reference.
Of course, within the different JAR's, the names are UNIQUE.

>>
>> Does anybody of you know how I can ADD a JAR-File (not a single File)
>> using the Java Class jar?
>>
>> Questions:
>>    a)Is this possible at all, or prohibited (by design)
>>    b) when yes, which syntax?
>>
>> I'm running on JVM 7.xx      ...
>>
>> Thanks in advance,
>> Thomas Schneider.
>>
>> --
>> Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>


--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/