4 Replies Latest reply: Jul 26, 2012 1:22 PM by 936814 RSS

    JavaFx 2.2.0 Native Package deploy problem on Windows

    936814
      Hi,
      I'm trying to compile a JavaFX native package on Windows 7 64 bit.

      I've installed:
      JDK 7U6 Beta
      JavaFx sdk 2.2.0 Beta
      Wix toolset 3.5
      Inno Setup 5.5.1

      When I run the tool installers *.exe and *.msi are created and they work as
      installalation procedeure correctly completed.

      The problem is when I run the application as I get a error message window
      with title
      C:\Program Files (x86)\NativePackage\runtime\jre7\bin\server\jvm.dll
      and message
      jvm.dll is not found

      but I looked in C:\Program Files (x86)\NativePackage\runtime\jre7\bin\server and jvm.dll
      exists.

      Any idea?

      Thank you

      Andrea
        • 1. Re: JavaFx 2.2.0 Native Package deploy problem on Windows
          817264
          If problem can be reproduced with latest JDK 7u6 build then please file JIRA on Deployment/Packager (http://javafx-jira.kenai.com/)

          Details needed:
          - What 7u6 build number you are using?
          - Is it 32 or 64 bit JDK?
          - Check permissions on the jvm.dll files, are they readable? Can you run depends.exe on them?
          - Download PRocess Monitor from sys internals.com, set filter to include everything from your launcher exe file, try to run program again.
          Export log to PML and attach it to the JIRA.

          Does it work if you copy installed package to other location? e.g. copy it to c:\tmp\NativeBundle and try to run .exe file in it.
          • 2. Re: JavaFx 2.2.0 Native Package deploy problem on Windows
            936814
            Hi Igor,
            I'm using jdk-7u6-ea-bin-b20-windows-x64-18_jul_2012 64 bit

            The problem occur building the bundle with e(fx)clipse 0.1.0 that uses C:\Program Files\Java\jre7 in build process (Using base JDK at: C:\Program Files\Java\jre7)
            Using Netbeans 7.2 generated bundle works. Netbeans uses C:\Program Files\Java\jdk1.7.0_06\jre in build process (Using base JDK at: C:\Program Files\Java\jdk1.7.0_06\jre)

            So I think problem depends on the JRE used in build process.
            • 3. Re: JavaFx 2.2.0 Native Package deploy problem on Windows
              jsmith
              I think you are correct Atasca. You might want to post this to the efxclipse forum to give the developers there a heads up about this issue.
              • 4. Re: JavaFx 2.2.0 Native Package deploy problem on Windows
                936814
                Solved,
                running eclipse with a different JRE (C:\Program Files\Java\jdk1.7.0_06\bin\javaw.exe) has solved the problem.
                To do that I simply edited my eclipse.ini and added -vm C:\Program Files\Java\jdk1.7.0_06\bin\javaw.exe, here my
                eclipse.ini:

                -startup
                plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
                --launcher.library
                plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
                -product
                org.eclipse.epp.package.java.product
                --launcher.defaultAction
                openFile
                --launcher.XXMaxPermSize
                256M
                -showsplash
                org.eclipse.platform
                --launcher.XXMaxPermSize
                256m
                --launcher.defaultAction
                openFile
                -vm
                C:\Program Files\Java\jdk1.7.0_06\bin\javaw.exe
                -vmargs
                -Dosgi.requiredJavaVersion=1.5
                -Dhelp.lucene.tokenizer=standard
                -Xms40m
                -Xmx384m