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.
- Open IntelliJ IDEA and select File > Open....
- Choose the java-zip-starter-project directory and click OK.
- Copy the libs, jniLibs, and resources directories from the unpacked SDK zip into the project root.
- Copy the unpacked JavaFx SDK into the project.
- Create a "bin" directory in the root of the project. This is where your compiled source will go.
- Select File > Project Structure... to bring up the Project Structure dialog.
- 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.
- Under Modules, select the java directory under src/main and mark it as Sources.
- 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.
- Add another Java library. This time select all of the jars in the javafx-sdk-17.0.8/lib directory.
- In the main menu, select Run > Edit Configurations.... Create a new Application type configuration called
App
. In the Main class field, entercom.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. - Build the project by selecting Build > Build Project. You should see output created in the bin folder.
- To run the app, select _Run > `App`.
See the Java Maps SDK system requirements.
Find a bug or want to request a new feature? Please let us know by submitting an issue.
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.
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.