ArcGISRuntimeEnvironment.setInstallDirectory - IntelliJCE

1261
1
11-21-2018 07:51 AM
AndréLaguerre1
New Contributor

Hi,
I just tried to display a simple map with JAVA SDK, and when I execute the code, a RuntimeException appear :

Caused by: java.lang.RuntimeException: Could not find runtime in any of:
- A directory specified by calling ArcGISRuntimeEnvironment.setInstallDirectory()
- The current directory /Users/admin/IdeaProjects/ArcGISmap
- A location specified by the environment variable ARCGISRUNTIMESDKJAVA_100_4_0
- Within the ".arcgis" directory in the user's home path /Users/admin/.arcgis
at com.esri.arcgisruntime.ArcGISRuntimeEnvironment.c(SourceFile:259)
at com.esri.arcgisruntime.ArcGISRuntimeEnvironment.j(SourceFile:640)
at com.esri.arcgisruntime.ArcGISRuntimeEnvironment.initialize(SourceFile:193)
at com.esri.arcgisruntime.internal.jni.CoreMap.<clinit>(SourceFile:47)

My source code it the same as described : Develop your first map app with Gradle—ArcGIS Runtime SDK for Java | ArcGIS for Developers 

I've configured the graddle like this :

plugins {
    id 'java'
}

group 'com.luxgateway'
version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
    maven {
        url = 'https://esri.bintray.com/arcgis'
    }
}

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.12'
    implementation 'com.esri.arcgisruntime:gradle-arcgis-java-plugin:1.0.0'
    implementation 'com.esri.arcgisruntime:arcgis-java:100.4.0'
}

The documentation only explain how to configure Eclipse, but I usually use IntelliJCE.
Did I forget something ?

Thank's for your help.

André Laguerre

0 Kudos
1 Reply
亚鹏范
New Contributor II

hello ,i had a seems exception as you did . can you help me ? my email is 838399792@qq.com

0 Kudos