windows - Execute .exe on java, who require some library -


i have little problem today,i want use this tool on java program. on windows it's work cygwin after install jpeg library.

so question : how can run on java program :

string[] cmd = {"c:\\users\\bastien\\desktop\\jpegoptim\\jpegoptim.exe", "some args"};     try {         runtime rt = runtime.getruntime();         process pr = rt.exec(cmd); 

thanks if solution exist.

if not bother distribution/licensing stuff - figure out dll's app depend on , place them near exe.

that's easies way "make work".

you have 2 general ways determine dll's app depend on:

  1. run app , see requires (windows should give message missing dll) - nmot convenient bu reliable.

  2. use static analysis tools this analyse exe dependencies - should work of cases.

be warned rather ad-hoc method , not suggest in production.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -