Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Launch .exe file from a Jar via Java WebStart

Reply
Thread Tools

Launch .exe file from a Jar via Java WebStart

 
 
oziris
Guest
Posts: n/a
 
      07-15-2005
Hi!

Does anyone already succeed in running an executable file from a Jar,
or know how to? The final aim is to perform that via Java Webstart -
which needs all application files be in a Jar file.

Here my first draft...

--- code ---
URL executable = getClass().getClassLoader().getRessource(...);
Runtime runtime = Runtime.getRuntime();
runtime.exec(executable);
--- /code ---

.... but that doesn't work. Note that, except for the .exe files, Java
Webstart deals property with all other ones. Seemingly it's the fact
that the file is *executed* (in opposition to *read*) that fails.

The only derived way I've found consists in copying the file under the
local disk (via InputStream and OutputStream) and running it from this
location.

Even you don't know the precise answer, don't hesitate still and all to
post the minor births of ideas you could have.

Thanks a lot.

-m

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java -cp a.jar -jar b.jar => Works on Windows, not on Debian cyberco Java 4 02-14-2006 06:27 AM
jaas.jar, jta.jar jdbc-stdext.jar missing from jdk1.5 RPM muttley Java 0 10-20-2005 02:40 PM
Launch .exe file from a Jar via Java WebStart oziris Java 2 07-15-2005 12:23 PM
Launch .exe file from a Jar via Java WebStart oziris Java 2 07-15-2005 09:10 AM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters Java 0 01-05-2005 10:59 PM



Advertisments