#66 Missing 64/32bit jvm request option

3.x
closed-fixed
General (55)
5
2014-03-27
2009-06-28
Zeeri
No

I am running native libraries and would like to have two distributions: one 64 bit, and the other 32 bit. I realize that Launch4j works fine in either case, however it doesn't give me the option to request a 64 or 32 bit JVM specifically. Can such an option be added, such that if both 64 bit and 32 bit java installations are found, one is preferred over the other?

Discussion

  • Janni Kovacs
    Janni Kovacs
    2010-12-21

    This is most definitely needed. If you rely on JNI and 32bit DLLs running the app on a 64bit JRE fails. I cannot upgrade from 3.0.0-pre2 to the newest version until this is resolved.

     
  • aventin
    aventin
    2012-10-16

    Hi

    Agreed : when DLLs are used with JNI, controlling the JRE used by the executable is strongly needed.
    This could be for instance new options in the XML allowing to prioritize (or filter) 64bits / 32bits JREs

    Is there any plan around that in a near future ?

    I use Launch4J on an open source backup program (areca-backup) and it would be very helpful to have this information

    Thanks (and thanks for your work on Launch4J)

     

  • Anonymous
    2013-03-11

    Is there some progress on this? Apparently somebody patched a version to support this: http://stackoverflow.com/a/12622118/342947, which i can't use, since i develop on a Mac :/

     
    Last edit: Anonymous 2013-11-20
  • Grzegorz Kowal
    Grzegorz Kowal
    2013-08-16

    • assigned_to: Grzegorz Kowal
     
  • Jens Bannmann
    Jens Bannmann
    2014-01-20

    We use native libraries as well, but as Launch4J does not offer this feature (yet) we had to incorporate (ugly) detection code into our program.

     
  • Grzegorz Kowal
    Grzegorz Kowal
    2014-03-27

    • status: open --> closed-fixed
     
  • Grzegorz Kowal
    Grzegorz Kowal
    2014-03-27

    fixed in 3.2.