arcengine10.2+eclipse4.3 (Kepler) Java Development (i)

Source: Internet
Author: User

After installing desktop, prepare to install the JDK and configure the JDK development environment. The JDK used by the ArcObjects SDK for Java is 32-bit, so be aware when installing the JDK. My Win7 system is 64-bit, and Eclipse is 64-bit, so the first installation of the JDK is the 64-bit option. As a result, an example of running AO is to report the following error:

Could not load native Libraries.java.lang.UnsatisfiedLinkError:no NTVINV in Java.library.path

650) this.width=650; "title=" clip_image005 "src=" http://images.cnitblog.com/blog/402751/201406/190924134267435. JPG "alt=" clip_image005 "width=" 279 "height=" "border=" 0 "style=" margin:0px Auto;padding:0px;border:0px;float:none ; background-image:none; "/>

Then I switched to a 32-bit JDK, and I installed 32-bit and 64-bit JDK in my machine. Now my eclipse boot uses a 64-bit JDK, and when running the AO example, the compiled JDK used is 32 bits.

650) this.width=650; "title=" clip_image006 "src=" http://images.cnitblog.com/blog/402751/201406/190924141769064. PNG "alt=" clip_image006 "width=" 244 "height=" 198 "border=" 0 "style=" margin:0px auto;padding:0px;border:0px;float: None;background-image:none; "/>

I did not install the JDK in the "Program Files" folder, as if there were spaces in the JDK path when compiling gdal, the path would have to be enclosed in double quotation marks. Later, in order to avoid this situation, simply changed a path to install.

JDK Download path: http://www.oracle.com/technetwork/java/javase/downloads/index.html

The system variables need to be configured after the JDK is installed. As follows

Java_home:c:\java\jdk1.7.0_60

CLASSPATH:.; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar

In path, add the following:%java_home%\bin;%java_home%\jre\bin; It is recommended that both paths be added to the front of the%SystemRoot%\System32 path. Because there are also java.exe in the System32 folder. 650) this.width=650; "title=" clip_image007 "src=" http://images.cnitblog.com/blog/402751/201406/190924147862950. PNG "alt=" clip_image007 "width=" 244 "height=" "border=" 0 "style=" margin:0px Auto;padding:0px;border:0px;float:none ; background-image:none; "/>

When using the java–version command in CMD, the java command is searched in path in the left-to-right order, and the java_home is placed in front of the path%systemroot%\system32 can be modified by Java_ Home to modify the JDK version you are using.

650) this.width=650; "title=" clip_image008 "src=" http://images.cnitblog.com/blog/402751/201406/190924156611850. PNG "alt=" clip_image008 "width=" 359 "height=" 193 "border=" 0 "style=" margin:0px auto;padding:0px;border:0px;float: None;background-image:none; "/>

When my java_home is modified to C:\Java\jdk1.7.0_60_win32, when I start Eclipse, "Failed to load the JNI shared library ..." occurs because the JDK is 32-bit, Eclipse is a 64-bit result, so you can start eclipse by modifying the java_home to a 64-bit JDK path. This problem does not exist if you are using Eclipse 32-bit.


arcengine10.2+eclipse4.3 (Kepler) Java Development (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.