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

Thread: How to patch a program

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default How to patch a program

    Hellllloooo~ :3

    Lets say I have a program that is not in any way connected to the Internet. I post it for for downloading, but I know that I will need to update it fairly often. I don't want people to have to redownload the entire program, I just want to send out a patch to update it. How can I do this?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,214
    Thanks
    52
    Thanked 2,294 Times in 2,265 Posts

    Default Re: How to patch a program

    I think the minimal level that changes could be made would be to the replace a class file. If in a jar file, That would require a program to unpack, replace and rebuild a jar file. Updating could be a problem though. If signed, that would be lost. Replacing the whole jar file might be safer.
    Maybe people in the real world have some techniques they use.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. How to restart the math in the program without geting out of the program ?
    By Dragon3002 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 15th, 2014, 05:10 AM
  2. Replies: 1
    Last Post: February 6th, 2014, 12:11 PM
  3. Program goes into infinite compilation. University project - Library Program.
    By clarky2006 in forum What's Wrong With My Code?
    Replies: 35
    Last Post: November 10th, 2012, 02:56 PM
  4. Replies: 1
    Last Post: July 8th, 2012, 10:23 AM
  5. Patch Process
    By Drakenmul in forum Java Theory & Questions
    Replies: 3
    Last Post: August 2nd, 2009, 03:09 AM