View Issue Details

IDProjectCategoryView StatusLast Update
0005485Spring engineAIpublic2017-04-08 14:40
ReporterDeinFreund Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Product Version103.0 +git 
Summary0005485: Spring tries to use wrong java version (32/64 bit)
DescriptionSpring seems to use the first Java version it finds. If Java_Home contains a 64 bit version but Spring is running in 32 bit, it will fail to initialize the AI.

If it checked the version for 32/64 bit and moved on, it would find the 32 bit version in registry (in my case).

There are other programs using JAVA_HOME than Spring, so it should be possible to have it set to some "wrong" version without breaking it.
Steps To ReproduceSet Java_Home to 64 bit java
Run 32 bit Spring with Java AI
AI disintegrates
TagsNo tags attached.
Checked infolog.txt for Errors

Relationships

related to 0005486 new Lua method to check for installed Java 

Activities

abma

2017-03-11 10:50

administrator   ~0017382

Last edited: 2017-03-11 11:03

IMO spring should create a list of all available jvms and then try until it can sucessfully load jvm.dll.

the easy way would be to add SPRING_JAVA_HOME and prefer this env var over JAVA_HOME when available.

https://github.com/spring/spring/blob/develop/AI/Interfaces/Java/src/main/native/JvmLocater_common.c#L108

abma

2017-03-11 10:54

administrator   ~0017383

https://github.com/spring/spring/blob/develop/AI/Interfaces/Java/src/main/native/JavaBridge.c#L932

Issue History

Date Modified Username Field Change
2017-02-20 20:25 DeinFreund New Issue
2017-03-11 10:50 abma Severity major => feature
2017-03-11 10:50 abma Note Added: 0017382
2017-03-11 10:54 abma Note Added: 0017383
2017-03-11 11:00 abma Note Edited: 0017382
2017-03-11 11:03 abma Note Edited: 0017382
2017-04-08 14:40 abma Relationship added related to 0005486