开发者

how to run .jar file in micro?

开发者 https://www.devze.com 2022-12-26 13:34 出处:网络
I have a .jar file to convert Excel into XML format. I want to have a button on the spreadsheet, when user click it, it will call. ja开发者_Go百科r to convert the spreasheet. tried to use:

I have a .jar file to convert Excel into XML format. I want to have a button on the spreadsheet, when user click it, it will call. ja开发者_Go百科r to convert the spreasheet. tried to use:

Shell ("C:\Program Files\Java\jre6\bin\java -jar XMLGenerator.jar")

it is not working, does anyone know how to do this?

thanks.


I think you should pass the file as a parameter of your program, like this:

"C:\Program Files\Java\jre6\bin\java -jar XMLGenerator.jar yourFile.xls"
0

精彩评论

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