You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/site/pages/netcdfJava/Upgrade.md
+24-13Lines changed: 24 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,18 @@
1
1
---
2
2
title: Upgrading to netCDF-Java version 5.x
3
-
last_updated: 2025-08-08
3
+
last_updated: 2025-10-30
4
4
sidebar: netcdfJavaTutorial_sidebar
5
5
toc: false
6
6
permalink: upgrade.html
7
7
---
8
8
9
9
## Requirements
10
10
11
-
* Java 8 or later is required
12
-
13
-
## Overview
14
-
15
-
A number of API enhancements have been made to take advantage of evolution in the Java language, for example _try-with-resource_ and _foreach_ constructs.
16
-
The use of these make code simpler and more reliable.
17
-
18
-
Deprecated classes and methods have been removed, and the module structure and third-party jar use has been improved.
19
-
20
-
Java WebStart has been deprecated as of [Java 9](https://www.oracle.com/technetwork/java/javase/9-deprecated-features-3745636.html#JDK-8184998){:target="_blank"}.
21
-
As such, we no longer utilize WebStart.
11
+
* Java 8 or later is required to use the library.
12
+
* Starting with version 5.10.0, Java 17 is required to build the library.
22
13
23
14
## Quick Navigation
15
+
*[Summary of changes for v5.10.x](#netcdf-java-api-changes-510x)
24
16
*[Summary of changes for v5.9.x](#netcdf-java-api-changes-59x)
25
17
*[Summary of changes for v5.8.x](#netcdf-java-api-changes-58x)
26
18
*[Summary of changes for v5.7.x](#netcdf-java-api-changes-57x)
@@ -32,13 +24,22 @@ As such, we no longer utilize WebStart.
32
24
*[Summary of changes for v5.1.x](#netcdf-java-api-changes-51x)
33
25
*[Summary of changes for v5.0.x](#netcdf-java-api-changes-50x)
Starting with 5.10.x, the netCDF-Java library requires Java 17 to build (although the build will produce Java 8 bytecode, so the minimum supported version is still Java 8).
33
+
Note: we are looking to update the minimum version of the JVM we support for the project.
34
+
Please consider taking a moment to participate in the [poll on GitHub](https://github.com/Unidata/netcdf-java/discussions/1468){:target="_blank"}.
The 5.9.x includes bug fixes around zarr support, scaling of projection parameters, and setting of the library path for the netCDF-C library.
42
+
The 5.9.x release includes bug fixes around zarr support, scaling of projection parameters, and setting of the library path for the netCDF-C library.
42
43
Additionally, udunits grammar code is now generated at build time, HTTP errors when disambiguating http/https locations has been improved, and scanning for filter providers is done once during initialization.
43
44
EnhancementProviders are now loaded upon VariableDS instantiation, fixing a critical multithreaded environment related bug.
44
45
Several ToolsUI improvements have been made as well.
@@ -184,6 +185,16 @@ Remove usages of `org.joda.time` outside of `ucar.nc2.time`.
184
185
185
186
## netCDF-JavaAPIChanges (5.0.x)
186
187
188
+
### Overview
189
+
190
+
A number of API enhancements have been made to take advantage of evolution in the Java language, for example _try-with-resource_ and _foreach_ constructs.
191
+
The use of these make code simpler and more reliable.
192
+
193
+
Deprecated classes and methods have been removed, and the module structure and third-party jar use has been improved.
194
+
195
+
JavaWebStart has been deprecated as of [Java9](https://www.oracle.com/technetwork/java/javase/9-deprecated-features-3745636.html#JDK-8184998){:target="_blank"}.
Copy file name to clipboardExpand all lines: docs/src/site/pages/netcdfJava_tutorial/overview/BuildingFromSource.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Building From Source
3
-
last_updated: 2025-08-08
3
+
last_updated: 2025-10-30
4
4
sidebar: netcdfJavaTutorial_sidebar
5
5
permalink: building_from_source.html
6
6
toc: false
@@ -10,9 +10,12 @@ toc: false
10
10
11
11
The netCDF-Java source code is hosted on GitHub, and — as of v4.6.1 — we use Gradle to build it.
12
12
Ant and Maven builds are no longer supported.
13
-
To build, you need Git and JDK 8, JDK 11, or JDK 14 installed.
13
+
To build, you need Git and, as of v5.9.2, Java 17 or higher (required for Gradle 9.0.0 or higher).
14
+
Note that the bytecode produced by the Gradle build will be compatible with Java 8, and the test task will run using JDK 8 (thanks to the Gradle Toolchain feature).
15
+
If the build cannot find a suitable JDK for testing, you will need to specify one in your `gradle.properties` file (see the [Gradle toolchain documentation](https://docs.gradle.org/current/userguide/toolchains.html#sec:custom_loc){:target="_blank"} for more details).
16
+
The tests can be run using other JDK versions using `testX`, where `X` is the version number of one of the LTS releases of Java (currently `11`, `17`, `21`, or `25`).
14
17
15
-
First, clone the netCDF-Java repository from Github:
18
+
First, clone the netCDF-Java repository from GitHub:
0 commit comments