ArcEngine/Java issue: Difference between revisions

From IMSMA Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 16: Line 16:
1 Install the Java that is included in the {{IMSMANG}} installation package
1 Install the Java that is included in the {{IMSMANG}} installation package


2 If Java already was installed;  
2 If Java already was installed; <br/> <br/>
[[Image:Java ver.png|500px]]


2A verify Java version by
2A verify Java version by in the Command window type ''Java -version'' and click Enter.


2B Verify that the registry key XX is set to YY
2B Verify that the environment variable JAVA_HOME is set to ''C:\Program Files\Java\jre7'' on 32-bits OS or ''C:\Program Files (x86)\Java\jre7'' on 64-bits OS.
 
3 If none of the above fixed the problem, add ''''';'''%JAVA_HOME%\bin'' to the end of the PATH environment variable.


{{NavBox Hub}}
{{NavBox Hub}}

Revision as of 06:03, 26 July 2014

ArcEngine 10.1 needs Java to be installed and ArcEgine finds Java by registry keys (not by environmental variables like JAVA_HOME and PATH).

When ArcEngine does not found Java properly there are two different error messages in the console log after Synchronized with "xxx" Map

1 Java Executable

 Loading jawt.dll failed. This is normal if java.version < 1.3. If java.version is > 1.4 and if this failure has occurred on Windows,

please ensure that this program is started with a Java executable from a JDK/JRE install location on this computer. 

at '''com.esri.arcgis.interop'''.NativeObjRef.getJdk13WindowsHandleNative(Native Method) 

2 Java HotSpot

How to fix the it

1 Install the Java that is included in the IMSMANG installation package

2 If Java already was installed;

2A verify Java version by in the Command window type Java -version and click Enter.

2B Verify that the environment variable JAVA_HOME is set to C:\Program Files\Java\jre7 on 32-bits OS or C:\Program Files (x86)\Java\jre7 on 64-bits OS.

3 If none of the above fixed the problem, add ;%JAVA_HOME%\bin to the end of the PATH environment variable.

Template:NavBox Hub