This is an example program GetWeatherData using the bare minimum java installation
- This app uses the FAA airport info API services.faa.gov
- List of Airport Codes, working codes depend on services.faa.gov, some codes in the list return NULL.
Compile the two sources make sure the json jar file is in the class path:
- javac -cp json-20160212.jar:. weather.java GetWeatherData.java
- javac -cp "json-20160212.jar;." weather.java GetWeatherData.java
Run the program, make sure the json jar is in the class path, examples shown below:
- java -cp json-20160212.jar:. weather SFO
- java -cp json-20160212.jar:. weather JFK
- java -cp json-20160212.jar:. weather DEN
- java -cp "json-20160212.jar;." weather SFO
- java -cp "json-20160212.jar;." weather JFK
- java -cp "json-20160212.jar;." weather DEN