Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

how to make a java file run without jdk

  Asked By: Nicole    Date: Dec 12    Category: Java    Views: 7268

i know byte code is plateform independent require only jre
but i want run java file without jre and i have succeded in making exe file but
when i run it on other pc . error dll file not found.
i am not successful in association dll file with exe file.
please someone can tell me how can i do this.



1 Answer Found

Answer #1    Answered By: Tammy Sanders     Answered On: Dec 12

you need to use a JIT (Just In Time) compiler to do it.
JIT compilers attach the JRE with you executable file, so you don't need
to affraid about it. But, please keep in mind that using that tool your
Java program will only run  under the target plataform ( e.g, you compile
the java  program under windows.. it never will run under linux, for
example ).

Didn't find what you were looking for? Find more on how to make a java file run without jdk Or get search suggestion and latest updates.