Skip to content

kovaku/java-as-scripting-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Java as sripting language

Trying out java as a scripting language

docker build . -t fiboapp
docker run fiboapp <nth fibonacci number>
Example output:
> docker run fiboapp 12
0
1
1
2
3
5
8
13
21
34
55
89
Notes
  • Script file should start with a shebang (#!) pointing to java
  • Java source level is mandatory, use --source <java_level> to set
  • Script file could contain more classes, but the first of them should contain the main method
  • All java modules are available

About

Using java as a script language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published