Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 13 of 13

Thread: Create jar with nested jars programmatically

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Create jar with nested jars programmatically

    Hello,
    I want to create a jar which will contain other (nested) jars, and then I want my main class (inside the created jar) to make use of classes within the nested jars. And all this, I want to do programmatically (e.g. using Runtime.exec()). Is this possible?

    Thanks,


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,372
    Thanks
    183
    Thanked 836 Times in 779 Posts
    Blog Entries
    5

    Default Re: Create jar with nested jars programmatically


  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,372
    Thanks
    183
    Thanked 836 Times in 779 Posts
    Blog Entries
    5

    Default Re: Create jar with nested jars programmatically

    I guess I'm just wasting my time doing your own research for you

    This thread has been cross posted here:

    http://www.java-forums.org/advanced-java/57801-create-jar-file-nested-jars-programmatically.html

    Although cross posting is allowed, for everyone's benefit, please read:

    Java Programming Forums Cross Posting Rules

    The Problems With Cross Posting


  4. #4
    Junior Member
    Join Date
    Apr 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Create jar with nested jars programmatically

    I specifically said "programmatically" (I am aware of this page ;-)
    And what do you mean about cross-posting?! What's wrong with posting the same question at two totally different forums?!

    I can't believe you spent to replies showing off and insulting, and none helping!
    Last edited by yannischris; April 3rd, 2012 at 12:20 PM.

  5. #5
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,372
    Thanks
    183
    Thanked 836 Times in 779 Posts
    Blog Entries
    5

    Default Re: Create jar with nested jars programmatically

    Quote Originally Posted by yannischris View Post
    I specifically said "programmatically" (I am aware of this page ;-)
    And what do you mean about cross-posting?! What's wrong with posting the same question at two totally different forums?!

    I can't believe you spent to replies showing off and insulting, and none helping!
    I'm trying to help, without pay, in my own valuable time. And it appears you didn't like it so you flushed the toilet. Fine. The least you can do is respect the help people are trying to give you - and realize that people on other forums are doing the same, and with hundreds of other folks seeking help here not letting people know where else you've posted can be considered rude - the reasons why are clearly outlined in the link above which it is evident you did not bother to read. And if you read the link I provided in post #2, each one of those solutions can be run - programatically.

  6. #6
    Junior Member
    Join Date
    Apr 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Create jar with nested jars programmatically

    If you want to help, just do it (and stop being coky about it) or just stop doing it. All you did was googling for 5 seconds for the purpose of insulting me by throwing me the "I feel lucky" reuslt, and in the second reply you showed me my own post which obviously I have read it. So stop being a drama queen about the 10 seconds you spent (just send me the bill if it's going to make it all right).
    And please don't talk to me about rudeness.
    Now that's all.

  7. #7
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,372
    Thanks
    183
    Thanked 836 Times in 779 Posts
    Blog Entries
    5

    Default Re: Create jar with nested jars programmatically

    Quote Originally Posted by yannischris View Post
    All you did was googling for 5 seconds for the purpose of insulting me by throwing me the "I feel lucky" reuslt,
    You have no idea what my intentions were, but I can guarantee you they were genuine.

    Best of luck finding a solution.

  8. #8
    Junior Member
    Join Date
    Apr 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Create jar with nested jars programmatically

    In that case excuse my misunderstanding.

    PS:
    Maybe I found something here: Simplify your application delivery with One-JAR.
    I post it so that at least someone else could profit from this post in the future.

  9. #9
    Member
    Join Date
    Jun 2011
    Posts
    182
    My Mood
    Where
    Thanks
    15
    Thanked 8 Times in 8 Posts

    Default Re: Create jar with nested jars programmatically

    Instead of questioning the intentions and helpfulness of a valued member (and moderator) of the forums, why don't you read the damn documentation for once? The answer to all of you're problems is in there.

    File and Stream I/O

    JarInputStream
    JarOutputStream
    URLClassLoader

  10. #10
    Junior Member
    Join Date
    Apr 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Create jar with nested jars programmatically

    Thanks for the advice.
    However, please allow me to retain my own judgement and the right to question whatever and whoever I want at any given time.
    That would be all.
    Last edited by yannischris; April 9th, 2012 at 02:56 AM.

  11. #11
    Member
    Join Date
    Jun 2011
    Posts
    182
    My Mood
    Where
    Thanks
    15
    Thanked 8 Times in 8 Posts

    Default Re: Create jar with nested jars programmatically

    You don't have that right. Ever heard of something called respect?

    Respect | Define Respect at Dictionary.com

    Read up on it.

  12. #12
    Junior Member
    Join Date
    Apr 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Create jar with nested jars programmatically

    How clever of you to post that link! I am speechless (and really bored..)

  13. #13
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,372
    Thanks
    183
    Thanked 836 Times in 779 Posts
    Blog Entries
    5

    Default Re: Create jar with nested jars programmatically

    Unfortunately, this thread has run its course. Let us all please take a step back, chill out, and move on. Thread locked.

Similar Threads

  1. Replies: 4
    Last Post: December 6th, 2011, 02:24 PM
  2. How to programmatically set combobox width?
    By stab in forum AWT / Java Swing
    Replies: 1
    Last Post: June 3rd, 2011, 04:59 PM
  3. OS Specific Jars
    By sinistaDev80 in forum Java Theory & Questions
    Replies: 0
    Last Post: March 26th, 2011, 10:29 AM
  4. Programmatically Creating Jars
    By aussiemcgr in forum Java Theory & Questions
    Replies: 8
    Last Post: October 6th, 2010, 12:51 PM
  5. [SOLVED] frame closing programmatically
    By nasi in forum AWT / Java Swing
    Replies: 9
    Last Post: May 10th, 2010, 04:43 AM

Tags for this Thread