Java updating

Discuss how to write good code, break bad code, your current pet projects, or the best way to approach novel problems

Java updating

Post by Reason7194 on Mon Apr 25, 2011 12:05 am
([msg=56667]see Java updating[/msg])

Hello everyone, I have been searching google for decent tutorials on starting to learn how to create a program thought could be updated remotely. Possibly a window on the program could be updated to "Apple and Nanners" where it was just originally just "Apples". Could anyone point me in the direction of locating a tutorial on how to start learning where to begin? I know that sql has to be combined with Java so that information could be sent to a database then the program could read from the database to be updated. At least that is my concept of what I think happens when a update happens.
I study Gotafu.
Reason7194
Poster
Poster
 
Posts: 215
Joined: Fri Jan 07, 2011 5:01 pm
Blog: View Blog (0)


Re: Java updating

Post by thetan on Mon Apr 25, 2011 12:26 am
([msg=56668]see Re: Java updating[/msg])

the requirements don't seem to be fully spec'd out

If you just intend on doing a data update, then you can achieve data updates through api calls to a authoritative source and a persistence layer on the client side.

If you intend to do binary updates, theres many different approaches you can take. The firefox method, which is download a completely new binary, swap and restart or you can do it the chrome way and download a binary diff (specialized compressed bsdiff in chromes case) and patch the binary diff against the binary and restart.
"If art interprets our dreams, the computer executes them in the guise of programs!" - SICP

Image

“If at first, the idea is not absurd, then there is no hope for it” - Albert Einstein
User avatar
thetan
Contributor
Contributor
 
Posts: 653
Joined: Thu Dec 17, 2009 6:58 pm
Location: Various Bay Area Cities, California
Blog: View Blog (0)


Re: Java updating

Post by JoeyPardella on Sun Jun 05, 2011 3:08 pm
([msg=58126]see Re: Java updating[/msg])

Reason7194,

i coded it by writing to a file, or downloading a complete .jar and then start the new version via process exec.

there are way better solutions (update deamon, updating single classes etc.) but i think this one is the easiest to start with.

greetz
JoeyPardella
Experienced User
Experienced User
 
Posts: 81
Joined: Tue Jan 04, 2011 8:43 am
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests