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:
run app , see requires (windows should give message missing dll) - nmot convenient bu reliable.
use static analysis tools this analyse exe dependencies - should work of cases.
be warned rather ad-hoc method , not suggest in production.
Comments
Post a Comment