开发者

NSIS - How to run Java Application In NSIS?

I wanna run a java application through NSIS. My java program is called PropertiesReader.java which reads a property from a .config 开发者_高级运维file.How can I do this? Also the output of java program (which in this case is the property value) is stored in some variable say property_value in java program. How can i access back the value of this variable in NSIS script?


From the NSIS srcipt, you can run Exec or ExecWait to run the "java" and pass the PropertiesReader.class as parameter to it. Your java program can write the property_value to a file which you can read back from the script.

Here is a link that has a heading "NSIS and Java". You can check that out. Just make sure that the PropertiesReader.class file is in the classpath.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜