Answer the question
In order to leave comments, you need to log in
How to bind Java interpreter to a script in Linux?
This video shows an example of creating scripts in Linux.
The example is shown for the internal linux and ruby interpreter.
The question arose: is it possible to create similar scripts in Java?
If so, which interpreter should I specify for Java? java or javac? or what else? And in what form then to write a script? Inside a single class?
The bottom line is that if you just specify java, it won't find the class.
Those. As far as I understand, you need to make a script that will immediately create a class and execute it.
How to do it?
Answer the question
In order to leave comments, you need to log in
Those. As far as I understand, you need to make a script that will immediately create a class and execute it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question