Share

The Lemur Toolkit

Tracker: Bugs

6 Installer cant detect Java(JRE) on Windows7 - 64bit - ID: 2895469
Last Update: Settings changed ( david_fisher )

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.


Allard ( allarddijk ) - 2009-11-10 21:02

6

Open

Fixed

David Fisher

Java Interfaces

v4.x

Public


Comments ( 6 )

Date: 2009-11-12 20:45
Sender: allarddijk

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


Date: 2009-11-12 19:38
Sender: david_fisherProject Admin

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.


Date: 2009-11-12 19:26
Sender: allarddijk

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



Date: 2009-11-12 12:33
Sender: david_fisherProject Admin

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.


Date: 2009-11-10 22:09
Sender: allarddijk

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


Date: 2009-11-10 21:08
Sender: allarddijk

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)


Attached File ( 1 )

Filename Description Download
install-W7-64.jpg reading wrong regkeys Download

Changes ( 5 )

Field Old Value Date By
resolution_id None 2009-11-17 19:08 david_fisher
File Added 350635: install-W7-64.jpg 2009-11-12 19:19 allarddijk
priority 5 2009-11-12 12:33 david_fisher
category_id None 2009-11-10 21:52 david_fisher
assigned_to nobody 2009-11-10 21:52 david_fisher