Esri / java-gradle-starter-project

Starter project for the ArcGIS Maps SDK for Java with Gradle
Apache License 2.0
8 stars 86 forks source link

run build command failed. #42

Closed sendreams closed 6 months ago

sendreams commented 6 months ago

after run 'build' from gradle , show the error:

C:\Users\Administrator\git\java-gradle-starter-project\src\main\java\module-info.java:17: 错误: 找不到模块: com.esri.arcgisruntime

i have already run 'copyNatives' command. and the directory 'C:\Users\Administrator.arcgis\200.4.0' already have some files. `12:35:23: Executing 'copyNatives'...

Task :copyNatives

BUILD SUCCESSFUL in 4s 1 actionable task: 1 executed 12:35:28: Execution finished 'copyNatives'. `

sendreams commented 6 months ago

Case solved! It turns out the issue was due to Gradle not being configured to use JDK 17.

mbcoder commented 6 months ago

@sendreams glad you resolved the issue. We support Java 17 and 21 with our latest 200.4 release.