bashj is a bash mutant with java support.
It gives to bash scripts the ability to use java libraries, functions and code.
The detailed documentation (installation, examples, syntax...) is available at this wiki page : http://fil.gonze.org/wikiPG/index.php/Project_bashj_:_a_bash_mutant_with_java_support .

To bash developers, bashj brings

. Readability in the java section (OO style)
. JVM efficiency for CPU intensive components
. modular extensibility using java packages
. floating point (double) values variable and evaluation functions
. Math tools
. Swing UI tools
. Inter process tools between multiple bash process (and java process)
. Host registry
...

Basic examples:

#!/usr/bin/bashj
echo Math.cos(0.5)
echo Math.hypot(3.0,4.0)
echo System.getProperty("java.runtime.version")

#!/usr/bin/bashj
#!java
public static int factorial(int n)
{if (n<=0) return(0);
if (n==1) return(1);
return(n*factorial(n-1));}
#!bashj
echo j.factorial(10)

Features

  • java shell
  • java
  • bash
  • script
  • java reflection
  • java introspection
  • java interpreter
  • interpreter

Project Samples

Project Activity

See All Activity >

Follow bashj : a bash mutant with java support

bashj : a bash mutant with java support Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
1
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5

User Reviews

  • Very interesting perspective
Read more reviews >

Additional Project Details

Registered

2018-06-11