Sen2water / Idepix Java errors

I have recently installed SNAP 13.0 and the Sen2water plugin. The installation is on a fresh Ubuntu 24.04.3 LTS VM, where there are no pre-existing versions of SNAP. Not that it really matters, as SNAP includes its own JRE, but the VM is running openjdk version 21.0.8. SNAP itself, seems to be running 21.0.6 (from the “release” file). So, no sign of old java anywhere. …..and yet, when I run Sen2water, I get the following error (sorry for the image, you can’t copy/paste the export from the execution output!):

Screenshot 2025-11-18 at 21.41.07

I tried to “force” a new java version into the plugin by setting JAVA_HOME in the system variables tab of the operator descriptor, but to no avail.

Can anyone shed any light on this issue, and provide advice for a possible solution?

1 Like

Dear Ben,

sorry to hear that. This should not be happening - and it never did during our testing. The “ancient” JDK is part of the processing chain encapsulated in the sen2water plugin, but it should not interfere with processing the way you experience it. We suspect a classpath mashup … for whatever reason.

We’re working on that and come back to you with a solution soon.

All the best,

Tom

1 Like

Dear Ben,

we think that we have found the issue, at least we could reproduce on a Linux system. Can you please try again and select an input directory for the data that is not your home directory?

If the input (and the output) dir are in the user home, sen2water maps the temporary classpath to that directory and then suddenly the .snap/modules directory is part of the classpath of sen2water containing jars compiled with a different Java version.

Best regards,

Tom

Dear Tom,

Sorry to report that this does not help. I did a complete SNAP reinstall and updated the sen2water plugin to the latest version. I installed SNAP somewhere other than in the home directory and moved the data to a non-home directory location, also. The same problem occurs. Perhaps it is somehow related to running on a VM? Also, to be clear, I am following these instructions, which I assume are still both current and necessary?

Cheers,

Ben

1 Like

Dear Tom and Ben,

I have the same issue even if not working on a VM even with the latest sen2water version (0.6.4).
Additional errors come also from the fact that sen2water tries to write temporary files in the input directory (which in my case is a read-only one).