i wrote this trivial piece of C code.
compile this program and rename it to the same name as your class file.
so, if you have Foo.class
then copy this program as Foo.exe in the same directory as Foo.class
you will type:
Foo
and the class file will be run. Thus you can use this as a generic
Also, have a look at 'binfmt_misc.txt' and 'java.txt' in:
/usr/src/linux/Documentation (or wherever your kernel docs are).
I haven't tried out the Misc Binary interface yet, but it looks useful
for your kind of requirement.
Mike Greaves
Ernst de Haan wrote:
>
> Why don't you write a shell sc
Why don't you write a shell script? For instance:
java MyProgram $*
That's all.
GreetinX++, Ernst
> Anupama Jayathilake wrote:
>
> I got a problem.Please advice me.
> I want to compile my java class to a binary so that i can run it
> from commant prompt without giving "java myprogram"
>