Scripting with Java

Technical and coding related questions.

Moderator: Board moderators

Post Reply
ZirePhoenix
Newbie
Posts: 7
Joined: Mon Nov 14, 2005 8:59 am

Scripting with Java

Post by ZirePhoenix »

How exactly would I use a script made with Java? The tutorial points it to the "path of the script", but the examples use compiled C binaries, and I don't think I can readily get Java stand-alone binaries. So do I supply the run-time command like "java ~/foobar" ?
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post by cavesomething »

yes, or if that is too long-winded to type, create a bash script to hold the java command

something like

#!/bin/sh
java -cp [whatever you need to put here] ClassName

make that executable and it should work fine as long as java is in the $PATH
Post Reply