Difference between revisions of "ArcEngine/Java issue"

From IMSMA Wiki
Jump to: navigation, search
Line 13: Line 13:
  
 
==How to fix==__NOEDITSECTION__  
 
==How to fix==__NOEDITSECTION__  
 
+
{{Note | You need to stop {{IMSMANG}} server and the Control Center between each change below since {{IMSMANG}} reads in the environment variables when the TrayLauncher/Control center is started. Open the log and verify that your changes have taken effect.}}
 
<ol><li>Install the Java that is included in the {{IMSMANG}} installation package</li>
 
<ol><li>Install the Java that is included in the {{IMSMANG}} installation package</li>
 
<li>If Java already was installed; <br/> <br/>
 
<li>If Java already was installed; <br/> <br/>
Line 20: Line 20:
 
* 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.</li>
 
* 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.</li>
 
<li>If none of the above fixed the problem, add ''''';'''%JAVA_HOME%\bin'' to the end of the PATH environment variable.
 
<li>If none of the above fixed the problem, add ''''';'''%JAVA_HOME%\bin'' to the end of the PATH environment variable.
<li>If it still does not work, test with the 5.08.04 solution:
+
<li>If it still does not work, copy the contents of the PATH variable to a document.</li>
<pre>
+
<li>Copy ''%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%JAVA_HOME%\bin'' to the PATH variable.
REASON
+
In this way you know that the PATH is correct and does not have any other issues.</li>
ArcGIS 9.3.1 desktop is installed on the computer and there is a conflict between ArcObject versions.
+
<li>Test again.</li>
 
+
<li>If it works, restore the PATH variable by copy back part by part back to it with ; between each part.
SOLUTION
+
Note: test to start the client between each change of the PATH.</ol>
1. Make a copy of C:\IMSMAng\server\imsmaserver\lib\arcobjects.jar file.
 
 
 
2. Copy the arcobjects.jar file from C:\Program Files\ArcGIS\java\lib to C:\IMSMAng\server\imsmaserver\lib.
 
 
 
3. Restart the IMSMA server.
 
</pre></li></ol>
 
  
 
{{NavBox Hub}}
 
{{NavBox Hub}}

Revision as of 17:36, 12 November 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

Note.jpg You need to stop IMSMANG server and the Control Center between each change below since IMSMANG reads in the environment variables when the TrayLauncher/Control center is started. Open the log and verify that your changes have taken effect.
  1. Install the Java that is included in the IMSMANG installation package
  2. If Java already was installed;

    Java ver.png
    • find your Java version by typing Java -version in the Command window and click Enter.
    • 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.
  4. If it still does not work, copy the contents of the PATH variable to a document.
  5. Copy %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%JAVA_HOME%\bin to the PATH variable. In this way you know that the PATH is correct and does not have any other issues.
  6. Test again.
  7. If it works, restore the PATH variable by copy back part by part back to it with ; between each part. Note: test to start the client between each change of the PATH.