-
Notifications
You must be signed in to change notification settings - Fork 14
Get Started
WorldWind is an SDK (software development kit) that software engineers can use to build their own applications. To run a WorldWind demo application, visit the Demos page. Follow these instructions to download, run, and deploy an application using WorldWind.
-
Download the latest release from the WorldWind GitHub Releases.
-
Extract the WorldWind SDK to a folder anywhere on your hard drive. The following steps refer to the extracted folder as WorldWind.
-
Run a WorldWind Demo by opening the README.md and following the instructions under "Running a Demo" in a development environment.
-
Create an app by reviewing the programming examples in /src/gov/nasa/worldwindx/examples. Start with
SimplestPossibleExample
andApplicationTemplate
, then refer to the Examples page for more advanced topics. Here are examples of running your app from the command-line, assuming your app's JAR file isMyApp.jar
, and your main class isworldwinddemo.MyBasicDemo
.On Mac OS X and Linux
java -Xmx1024m -cp MyApp.jar:worldwind.jar:worldwindx.jar:jogl-all.jar:gluegen-rt.jar:gdal.jar worldwinddemo.MyBasicDemo
On Windows
java -Xmx1024m -Dsun.java2d.noddraw=true -cp MyApp.jar;worldwind.jar;worldwindx.jar;jogl-all.jar;gluegen-rt.jar;gdal.jar worldwinddemo.MyBasicDemo
Note: All *.dll, *.jnilib, and *.so files in the WorldWind folder must be in the same folder as MyApp.jar.
-
Create a Java Web Start Application JNLP File Modify the template JNLP file WorldWind/webstart/JavaWebStartTemplate.jnlp to fit your app.
-
Add WorldWind Libraries to Your Application JNLP Insert the following XML extension elements in the resources block of your app's JNLP file, depending on your app's needs:
WorldWind Core Library (required)
xml <extension name="worldwind" href="https://worldwind.arc.nasa.gov/java/v2.1.0/webstart/worldwind.jnlp"/>
WorldWind Extensions Library (required if your app uses the gov.nasa.worldwindx package)
xml <extension name="worldwindx" href="https://worldwind.arc.nasa.gov/java/v2.1.0/webstart/worldwindx.jnlp"/>
GDAL Library (optional, include if your app uses WorldWind's data import feature)
xml <extension name="gdal" href="https://worldwind.arc.nasa.gov/java/v2.1.0/webstart/gdal.jnlp"/>
-
Prepare Your Application's JAR Files JAR files used by a Java Web Start application must be signed by a recognized authority, and must specify the Permissions manifest attribute. WorldWind's JAR files have already been signed and contain the necessary manifest attributes. See Oracle's documentation on Signing JAR Files and JAR File Manifest Attributes for Security.
-
Deploy Your Application Determine a URL to host your app at, such as http://myworldwinddemo.org/. Set your JNLP file's codebase attribute to this URL, then host your JNLP file and any JAR files referenced by your JNLP at this URL. See Oracle's documentation on Rich Internet Application Deployment for more information.