1 Replies - 199 Views - Last Post: 21 September 2011 - 10:31 AM Rate Topic: -----

#1 FliP1992  Icon User is offline

  • D.I.C Head

Reputation: 14
  • View blog
  • Posts: 200
  • Joined: 14-June 07

Excuiting a jar file

Posted 21 September 2011 - 10:25 AM

I have been playing with Java for a couple of weeks now and i belive i am starting to get the hang of it. I have created a updater which will check the version of a program on my computer if not it will download the newest version.
After this process i would like it to execute another jar file, which was downloaded in the update package.

Is it possible to execute a jar file from my updater jar? Without including it in the build.

I have done quite abit of searching around but i keep digging up stuff on how to run a jar from a command line etc.

Thanks,
Tom

Is This A Good Question/Topic? 0
  • +

Replies To: Excuiting a jar file

#2 blackcompe  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1131
  • View blog
  • Posts: 2,484
  • Joined: 05-May 05

Re: Excuiting a jar file

Posted 21 September 2011 - 10:31 AM

Have you looked at the ProcessBuilder API? Here are some relevant Google search results.

This post has been edited by blackcompe: 21 September 2011 - 10:32 AM

Was This Post Helpful? 1
  • +
  • -

Page 1 of 1