Page 1 of 1

Using EXEC with a Java class under Win 2K

Posted: Tue Feb 20, 2001 4:35 pm
by bw_mark
How would we go about calling a Java class with the EXEC function in Vortex? From the Windows 2000 command line I can do it with "java class_name" but you have to be in the same directory as the class file itself. I've tried using <EXEC java C:\path\class_name></EXEC> but I just get a Java exception. How would I go about executing this Java class under Windows 2000? Alternately, if this was running on a Linux \ *IX machine could it be done?

Thanks,
-Mark

Using EXEC with a Java class under Win 2K

Posted: Tue Feb 20, 2001 4:47 pm
by John
You might want to use the -classpath option, e.g.

<EXEC java.exe -classpath c:\path class_name>
</EXEC>

Using EXEC with a Java class under Win 2K

Posted: Tue Feb 20, 2001 6:19 pm
by bw_mark
Perfect, that worked great.

Thank you,
-Mark