Using EXEC with a Java class under Win 2K

Post Reply
bw_mark
Posts: 8
Joined: Tue Feb 20, 2001 4:32 pm

Using EXEC with a Java class under Win 2K

Post 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
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Using EXEC with a Java class under Win 2K

Post by John »

You might want to use the -classpath option, e.g.

<EXEC java.exe -classpath c:\path class_name>
</EXEC>
John Turnbull
Thunderstone Software
bw_mark
Posts: 8
Joined: Tue Feb 20, 2001 4:32 pm

Using EXEC with a Java class under Win 2K

Post by bw_mark »

Perfect, that worked great.

Thank you,
-Mark
Post Reply