Is it possible to directly bind all *.class files with the java command?
At the moment I run java-files like:
java myprog args
Is it possible to simple type
ok, this is not a very important question, but it would be nice to know.
closed as off topic by Anwar Shah, Jorge Castro, John S Gruber, jokerdino♦, Mitch♦ Sep 15 '12 at 5:18
Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.
you can use alias
you can always set the CLASSPATH variable to the location where all your class files are located or packages are located.
you can very well add this line in $HOME/.bashrc file.
After that you can just say java myprog args
hope this solves.