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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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