I have created a small program where I need the install location of a program. I am using this in windows. So I written a small program with the below line which gives the the path of the installed software
Process process = Runtime.getRuntime().exec("REG QUERY "+ location +" /v "+ key);
After this I created a jar file and it works fine. But when I wrap that jar file using jsmooth and create an exe out of it and when I run the exe the above line returns nothing. I am not sure why it is happening, any ideas?
Summary :
Jar is working fine
Same jar if wrapped and become exe does not work.
Thank you