iddo / jss

Java Shell Scripting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java Shell Scripting

A bash script to allow ad-hoc java scripting

Installation

Make sure the "jss" script is in your path

Usage

Make sure your executable script starts with

#!/usr/bin/env jss

After which you can write java code that will be executed.

Example

Create a file name helloworld with the following content

#!/usr/bin/env jss
System.out.println("Hello World!");

give the file executable permissions

chmod +x helloworld

run the file

./helloworld

About

Java Shell Scripting


Languages

Language:Shell 100.0%