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

Thread: Incremental change to a java program

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Incremental change to a java program

    I would like to make an incremental change to an existing Java program. And the program has been installed on the user's machine. Now I only want to do an incremental download (to minimize the download time) to update the program. 1) Can I do that? 2) If I can, how do I do it? Thanks in advance.
    P.S. I don't know if this is the right sub-forum. But this is the closest I can find.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,290
    My Mood
    Mellow
    Thanks
    191
    Thanked 668 Times in 655 Posts

    Default Re: Incremental change to a java program

    1 - You haven't given us enough details to answer. E.g., How would you have access to the user's existing program? Is it a desktop program, Android, what? How was the existing program deployed? What have you tried?

  3. #3
    Junior Member
    Join Date
    Aug 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Incremental change to a java program

    Quote Originally Posted by GregBrannon View Post
    1 - You haven't given us enough details to answer. E.g., How would you have access to the user's existing program? Is it a desktop program, Android, what? How was the existing program deployed? What have you tried?
    -) This will be a desk top program (i.e. Java standard alone program, not applet). The user uses JVM to run the existing Java code. The hardware platform is Window, Mac and Linux.
    -) I haven't tried any method yet.

    Thanks a lot for your help.

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,387
    My Mood
    Hungover
    Thanks
    144
    Thanked 628 Times in 538 Posts

    Default Re: Incremental change to a java program

    How big is the program that you really need to do something like that?

    How is the application deployed? As a runnable jar, packaged executable, collection of classes, jnlp, something else?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Junior Member
    Join Date
    Aug 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Incremental change to a java program

    The program is about 3 to 5M size. The key reason is that we will have a lot of small changes very often. The program will be deployed as a jar file.

  6. #6
    Forum VIP
    Join Date
    Jun 2011
    Posts
    317
    My Mood
    Bored
    Thanks
    47
    Thanked 89 Times in 74 Posts
    Blog Entries
    4

    Default Re: Incremental change to a java program

    I've used Java web start in the past with great success. The user clicks an icon on the desktop and it checks a website for the latest version and automatically updates when required.
    Computers are fascinating machines, but they're mostly a reflection of the people using them.
    -- Jeff Atwood

  7. #7
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,387
    My Mood
    Hungover
    Thanks
    144
    Thanked 628 Times in 538 Posts

    Default Re: Incremental change to a java program

    Java Web Start is definitely one way to go. You can package your program up as a list of jars, and it will only download one of those jars when it's uploaded instead of downloading all of them.

    There are other more manual ways. A jar file is really just a zip file, so updating one of the classes in it is as simple as inserting the new version. That can introduce some management issues though, and I've never heard of anyone actually taking this approach.

    You might also consider using maven to manage your dependencies, but that requires your clients to build your software.

    Although, 5 MB really isn't that big, unless you're on some kind of restricted network.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  8. #8
    Junior Member
    Join Date
    Aug 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Incremental change to a java program

    Quote Originally Posted by KevinWorkman View Post
    Java Web Start is definitely one way to go. You can package your program up as a list of jars, and it will only download one of those jars when it's uploaded instead of downloading all of them.

    There are other more manual ways. A jar file is really just a zip file, so updating one of the classes in it is as simple as inserting the new version. That can introduce some management issues though, and I've never heard of anyone actually taking this approach.

    You might also consider using maven to manage your dependencies, but that requires your clients to build your software.

    Although, 5 MB really isn't that big, unless you're on some kind of restricted network.

    I got it. Thank you so much for your help!

Similar Threads

  1. write the program in C, C++, Java or C#. Change variable types accordingly.
    By hoonsboy in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 14th, 2014, 04:33 AM
  2. write the program in C, C++, Java or C#. Change variable types accordingly.
    By indrasensingh01 in forum Java Theory & Questions
    Replies: 2
    Last Post: October 8th, 2012, 06:34 PM
  3. [SOLVED] Help with my Java program: Making change from an entered double.
    By iDizzle in forum What's Wrong With My Code?
    Replies: 20
    Last Post: March 18th, 2012, 03:16 PM
  4. Incremental image drawing in Java
    By ea25 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 14th, 2011, 07:58 AM