Menu

#112 Installer cant detect Java(JRE) on Windows7 - 64bit

v4.x
closed
6
2012-09-27
2009-11-10
Allard
No

java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)

java is installed in :
C:\Program Files\Java\jre6\bin\ (in path environment)
Lemur is installed in:
C:\Program Files (x86)\Lemur\

The installer asks me kindly to install a JRE with minimal version 1.4.

Discussion

  • Allard

    Allard - 2009-11-10

    when running the jar (unpacked from installer) :

    java -jar RetUI.jar
    Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: lemur_jni.dll: Can't load IA 32-bit .dll on
    a AMD 64-bit platform
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at lemurproject.indri.indriJNI.<clinit>(indriJNI.java:97)
    at lemurproject.indri.QueryEnvironment.<init>(QueryEnvironment.java:37)
    at lemurproject.indri.ui.RetUI.<init>(RetUI.java:179)
    at lemurproject.indri.ui.RetUI.createAndShowGUI(RetUI.java:1343)
    at lemurproject.indri.ui.RetUI.access$900(RetUI.java:19)
    at lemurproject.indri.ui.RetUI$7.run(RetUI.java:1389)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

     
  • Allard

    Allard - 2009-11-10

    After adding the x64 platform in VisualStudio 2008, rebuilding and copying the 64bit lemur_jni.dll , I could run RetUI.jar without problems.

    suggestion: Add x64 platform to the VisualStudio solution files, keep 32bit selected in default for the batch build. or add extra solution files.

    however this solves the problem running RetUI.jar, it is not the solution for the Installer

     
  • David Fisher

    David Fisher - 2009-11-12

    Please run regedit.exe and inspect the key

    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion

    It should be "1.6"

    That is the key that the installer checks to verify Java version 1.5 or greater, and should be set by the Java installer.

    Did you install the JRE or the JDK or both? Did you install any 32-bit java versions?

    Separately, the error message should have asked for 1.5.

    We do not yet have a Windows 7 installation to test with.

     
  • Allard

    Allard - 2009-11-12

    reading wrong regkeys

     
  • Allard

    Allard - 2009-11-12

    The key does exist at this system:
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime
    Environment\CurrentVersion = "1.6"

    I captured the install process and see it tries to open HKLM\Software\Wow6432Node\JavaSoft\Java Runtime Environment
    resulting in "NAME NOT FOUND", just before the problem.
    It seems that the installer does not look for the key you mentioned.

    As you can see in the attached screenshot "You need version 1.4 or newer to run this program"

    Yes, i also have the JDK installed @C:\Program Files\Java\jdk1.6.0_17

     
  • David Fisher

    David Fisher - 2009-11-12

    I didn't mean that you saw 1.5, rather that the error message itself is another bug.

    I don't know enough about the 64-bit registry to explain why the installer was looking in HKLM\Software\Wow6432Node\JavaSoft\Java Runtime Environment

    when the key specified in the installer source file (NullSoft Install System script) is indeed

    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion

    My Vista 64-bit system has both keys. It appears the Wow6432Node key is written for a 32-bit java install.

    I apologize for the inconvenience. The next release's installer will omit the java version test, as 1.5 is plenty old enough for most users to have it or higher.

     
  • Allard

    Allard - 2009-11-12

    The only issue to be compatible with 64bit that needs to be solved is the lemur_jni.dll, this needs to be 64bit to run some lemur jars on windows 7.

    will continue this issue as a feature request proposing 64bit installer:
    https://sourceforge.net/tracker/?func=detail&aid=2896850&group_id=161383&atid=819618

     
  • David Fisher

    David Fisher - 2009-12-21

    Shipped in the 4.11 release.

     

Log in to post a comment.