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 5 of 5

Thread: Replacement of pack200 in Java 17

  1. #1
    Junior Member
    Join Date
    Dec 2023
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Replacement of pack200 in Java 17

    Hi,

    Currently in our project, we have used Java - 8.

    We are planning to upgrade to Java Machine - 17.

    In Java-8, we have used pack200 in several places like below
    ==============
    pack200 -J-Xmx512m --no-gzip work.jar.pack work.jar
    ==============

    Now, in Java-17, we don't have pack200.

    How we can achieve the above example in Java-17 in different way?

    As per documentation, I need to use jlink and jpackage. But, I am not getting how to use these to replace pack200 for my use case.
    Can anyone of you please help me ?

    Regards
    Rajib

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Replacement of pack200 in Java 17

    As per documentation, I need to use jlink and jpackage.
    Can you post a link to that documentation?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Dec 2023
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Replacement of pack200 in Java 17

    Hi,

    Thanks for the reply.

    I was referring to the "Risks and Assumptions" part of the below link.

    https://openjdk.org/jeps/336

    Please let me know, if you need any further info from my side on it.

    Regards
    Rajib

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Replacement of pack200 in Java 17

    Thanks for the link. I have not worked with pack200 or jlink.
    Try asking your question on this forum: https://www.coderanch.com/forums
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Dec 2023
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Replacement of pack200 in Java 17

    Thanks for the suggestion.

    I have submitted the same post there too with in link https://coderanch.com/t/778616#3557685

    Lets see.

    By the meantime, if anybody else has any idea of the replacement, please let me know.

    Regards
    Rajib

Similar Threads

  1. Java Pitch Detection and Replacement?
    By Stratgtar565 in forum Java Theory & Questions
    Replies: 1
    Last Post: September 12th, 2011, 03:34 AM
  2. replacement substring
    By dcshoecousa in forum What's Wrong With My Code?
    Replies: 7
    Last Post: March 9th, 2011, 04:28 PM
  3. String replacement
    By codethrupain in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 28th, 2011, 11:10 PM
  4. Replies: 10
    Last Post: January 12th, 2011, 05:48 AM
  5. Page Replacement Algorithms
    By smokeyjoey in forum Algorithms & Recursion
    Replies: 2
    Last Post: December 7th, 2009, 10:38 PM

Tags for this Thread