简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM