Skip to content

Starter project for the ArcGIS Maps SDK for Java with the SDK zip

License

Notifications You must be signed in to change notification settings

Esri/java-zip-starter-project

Repository files navigation

java-zip-starter-project

Here is a starter project for the ArcGIS Maps SDK for Java with the SDK zip.

Make sure you have downloaded the Java Maps SDK and OpenJFX 17.

The app launches a window displaying a map.

screenshot

Instructions

IntelliJ IDEA

  1. Open IntelliJ IDEA and select File > Open....
  2. Choose the java-zip-starter-project directory and click OK.
  3. Copy the libs, jniLibs, and resources directories from the unpacked SDK zip into the project root.
  4. Copy the unpacked JavaFx SDK into the project.
  5. Create a "bin" directory in the root of the project. This is where your compiled source will go.
  6. Select File > Project Structure... to bring up the Project Structure dialog.
  7. Under Project, ensure that the Project SDK and language level are set to use Java 17. Select the bin folder you created in the Project compiler output field.
  8. Under Modules, select the java directory under src/main and mark it as Sources.
  9. Under Libraries, add a new Java library. In the Select Project Files dialog, select all of the jars inside the libs directory you copied earlier.
  10. Add another Java library. This time select all of the jars in the javafx-sdk-17.0.8/lib directory.
  11. In the main menu, select Run > Edit Configurations.... Create a new Application type configuration called App. In the Main class field, enter com.mycompany.app.App. In the VM options field, enter --module-path ./javafx-sdk-17.0.7/lib --add-modules=javafx.controls,javafx.fxml,javafx.web,javafx.swing,javafx.media. Then click OK.
  12. Build the project by selecting Build > Build Project. You should see output created in the bin folder.
  13. To run the app, select _Run > `App`.

Requirements

See the Java Maps SDK system requirements.

Resources

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

Licensing

Copyright 2023 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's license.txt file.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages