Re: EXE Files-The Java Way


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Re: EXE Files-The Java Way

  1. #1
    Yaiko Guest

    Re: EXE Files-The Java Way


    "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.


  2. #2
    Alan Shiers Guest

    Re: EXE Files-The Java Way

    Hi there,

    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.

    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center