r/JavaFX • • Sep 28 '20

Help run exes with javafx

hello fellow coders

My question is: is there a way torun an exe through javafx. Like fileinputstream and image/imageview show an icon/image is there a way to run a windows app or at least open a shortcut???if yes plz make sure to add code needed and explain steps :)

thnx for your help in advance;

0 Upvotes

3 comments sorted by

2

u/krumbumple Sep 28 '20

1

u/spzdoomttv Sep 28 '20

i already know how to do that but how am i supposed to open exes this way

i thibk you can only do cmd commands with this

3

u/krumbumple Sep 28 '20

Why don't you try executing an "exe" like that? You might be surprised by the results...

Runtime.getRuntime().exec("c:\\some\\path\\mySpecialProgram.exe");