Menu

Howto prefer 32 Bit JVM?

Help
2010-04-12
2013-06-12
  • Thomas Boerkel

    Thomas Boerkel - 2010-04-12

    HI!

    I installed 64 Bit JVM first and then 32 Bit JVM. When I double-click a JAR, then it will use the 32 Bit JVM.

    But when I start via the .exe, it uses the 64 Bit JVM.

    How can I force launch4j to use the latest installed JVM or the 32 Bit JVM (no hardcoding of paths)?

    Thanks!

    Thomas

     
  • Sven Meier

    Sven Meier - 2010-10-26

    My application ships with 32bit native libraries, so I'd be interested in an answer to this question too.

    Sven

     
  • Mathieu Champlon

    Same here…

    A third party jar loads a 32-bit DLL (JNI) and this fails if the user has a 64-bit JVM, even if he has a 32-bit one also, and even if a defines JAVA_HOME to point to the 32-bit JVM.

    MAT.

     
  • Barry Hansen

    Barry Hansen - 2011-06-09

    This would be really helpful for me also.  Anyway to require a 64bit vm?

     
  • Anonymous

    Anonymous - 2011-08-03

    I need to do the same thing.  Did you modify launch4j?

     
  • rjeffm

    rjeffm - 2011-08-09

    I add my vote for this feature… sooner rather than later ;)

     
  • Stéphane Château

    I have exactly the same problem : Into 64 bits environment if both 32 ans 64 bits JDK/JRE are installed this tools always detect the 64 bits version.
    I have patched the source (java + C++) code to make my own version and re-compile all. I add a check box to FORCE the 32 bits JDK/JRE detection into 64 bits windows environment.
    Just donwload the version and use it as the original one.

    Version : http://ti1ca.com/txf1cgbu-launch4j-3.0.2-win32-Java32bitsDetection-launch4j-3.0.2-win32_Java32bitsDetection.zip.html

     
  • aventin

    aventin - 2012-10-16

    So do I
    It would be a really useful when using JNI !

     
  • aventin

    aventin - 2012-10-16

    @feneck91 - thanks for the patched version - I'll give it a try in the coming days

     
  • aventin

    aventin - 2012-10-16

    Hi feneck91
    This is almost what I want, but I still need some modifications (particularly : being able to select "only 32 bits JREs" or "only 64 bits JREs") … could you publish the modified sources so I can update them to fit my needs ? (it seems that the sources that are provided in your zip file are the original ones)

    Thanks

     
  • Stéphane Château

    I have checked the source I give into this zip file. These files are modified one, not the original.
    Check into the src directory (find Feneck91 tag on each modified line).
    email me at Feneck91 on free.fr (not giving my email else robot will get it and I'll receive lot of spam).
    This works for you or not ? Happy to see that it is used by others…

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.