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.
Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined in the FAQ. 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 closed questions here.
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.