"Sean Yong" <yong21@hotmail.com> wrote:
>
>i'm a newbie to java and use jdk to write java codes in Windows Platform.
>
>what can i do to compile into 1 exe file?
>
>and how not to pop up the additional dos window when i click on the exe
file?
Thereīs a simplest way to run from an exe than migrating to MicroSoft (puaj),
it is to build a JVM from ansi c and JNI native libraries from java, this
way you use C to invoke native java constructors so you can invoke the main
method of your app from this c JVM (java virtual machine) and make you app
run. Once the c code is done just compile it to .exe if on a windows platform
or to an ELF if on Unix. So Work Done man. Try also to integrate java runtime
environment or even using .jar files (I have seen .jar that are auto runnables
but i donīt know how it works)
Another cost free alternative is to package your program using
InstallAnywhere Now version. It is downloadable from www.installanywhere.com
When it packages up your program for a windows install it creates an
executable file for you. I use it all the time for my programs. It's
great.
Hope this helps.
Alan Shiers
Yaiko wrote:
>
> "Sean Yong" <yong21@hotmail.com> wrote:
> >
> >i'm a newbie to java and use jdk to write java codes in Windows Platform.
> >
> >what can i do to compile into 1 exe file?
> >
> >and how not to pop up the additional dos window when i click on the exe
> file?
>
> Thereīs a simplest way to run from an exe than migrating to MicroSoft (puaj),
> it is to build a JVM from ansi c and JNI native libraries from java, this
> way you use C to invoke native java constructors so you can invoke the main
> method of your app from this c JVM (java virtual machine) and make you app
> run. Once the c code is done just compile it to .exe if on a windows platform
> or to an ELF if on Unix. So Work Done man. Try also to integrate java runtime
> environment or even using .jar files (I have seen .jar that are auto runnables
> but i donīt know how it works)
>
> Hope it helps.