I'm trying to run a java jar on an asp page then fetch the created file and print it to the screen. The problem is that I can't get the java code to run to create the file from the asp page.
Here are a couple failed tries:
Code ASP:Dim oShell Set oShell = Server.CreateObject("Wscript.Shell") oShell.Run "cmd java -classpath Path\bin\Code\*;Path\bin\Code\lib\* Code.Launcher" Set oShell = Nothing
Code ASP:set wshell = CreateObject("WScript.Shell") wshell.exec "Path\Code.bat" set WshShell = nothing
Code ASP:set wshell = CreateObject("WScript.Shell") wshell.run "cd Path" iReturn = wshell.Run("java -classpath Path\bin\Code\*;Path\bin\Code\lib\* Code.Launcher", , True) response.Write "<p><strong>iReturn: </strong>" & iReturn & "</p>" set WshShell = nothing
Anyone have an idea?


Reply With Quote

Bookmarks