I'm trying to execute a java class "Installation.class". I've tried searching these forums and a variety of Exec and ExecShell commands. Inside the class is a Thread.sleep(3000) with a System.out.println() so that I can be sure it works. Running the class on it's own works fine.
Here's what I've tried:
Exec "java.exe $INSTDIR\Installation $SQL_DIR $INSTDIR"
$SQL_DIR is a Var containing the path to a mySQL install.
Any help would be appreciated.
executing java
3 posts
Try to put quotes around paths.
you need to specify a classpath to your $INSTDIR and then call Installation like this:
Exec 'java.exe -cp "$INSTDIR" Installation $SQL_DIR $INSTDIR'
Exec 'java.exe -cp "$INSTDIR" Installation $SQL_DIR $INSTDIR'