Archive: How to compile java file in NSIS?


How to compile java file in NSIS?
I want to add java certification path to request target

I have get the file InstallCert.java from this URL

But i cant compile this in NSIS.
I have tried following code:

Function compile
SetOutputPath $TEMP
SetOveriwrite on
StrCpy $Java_File “$JAVA_HOME\jre\lib\security"
File lib\InstallCert.java
CopyFiles $TEMP\InstallCert.java $java_File
ExecWait "javac $Java_File\InstallCert.java"
FunctionEnd.

but files only copied.java did not compile.
How to compile java file in NSIS?


probably a case of improper quoting. could try this:

ExecWait 'javac "$Java_File\InstallCert.java"'


Thanks Yap..its working well.