G
Guest
So far I've always compiled my application with
javac xxxx.java
and invoked them with
java xxxx.class
I wonder if there could be a way to invoke the application directly.
I know I could make an alias, alias xxxx 'java xxxx.class' and then
invoke xxxx, but this is not what I mean
I am thinking of a compilation like
cc xxxx.c -o xxxx or f77 xxxx.f -o xxxx
which generates a named executable xxxx (instead of a.out)
Or something like shell or awk scripts, which I could write into files
with the executable bit set (chmod +x) and prepend with things like
#!/bin/csh -f
#! /usr/bin/awk -f
javac xxxx.java
and invoked them with
java xxxx.class
I wonder if there could be a way to invoke the application directly.
I know I could make an alias, alias xxxx 'java xxxx.class' and then
invoke xxxx, but this is not what I mean
I am thinking of a compilation like
cc xxxx.c -o xxxx or f77 xxxx.f -o xxxx
which generates a named executable xxxx (instead of a.out)
Or something like shell or awk scripts, which I could write into files
with the executable bit set (chmod +x) and prepend with things like
#!/bin/csh -f
#! /usr/bin/awk -f