# Jarhdf5 not found

**URL:** <https://forum.hdfgroup.org/t/jarhdf5-not-found/9813>\
**Category:** HDFView / Java HDF Object Package\
**Created:** [May 28, 2022, 4:51pm UTC](https://forum.hdfgroup.org/t/jarhdf5-not-found/9813 "2022-05-28T16:51:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![baptiste](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/cab0a1/32.png) [@baptiste](https://forum.hdfgroup.org/u/baptiste)\
**Post date:** [May 28, 2022, 4:51pm UTC](https://forum.hdfgroup.org/t/jarhdf5-not-found/9813/1 "2022-05-28T16:51:13Z")

</div>

Hi.

I am trying to compile Hdfview source and find exactly the same error than [error: module not found: jarhdf](https://forum.hdfgroup.org/t/error-module-not-found-jarhdf/8907)

The answer is not sufficient, I cannot find jarhdf5 in any folder even if I install hdf5 with the sources.

Any new idea?

Regards

---

<div class="post-metadata">

**Author:** ![baptiste](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/cab0a1/32.png) [@baptiste](https://forum.hdfgroup.org/u/baptiste)\
**Post date:** [May 28, 2022, 6:15pm UTC](https://forum.hdfgroup.org/t/jarhdf5-not-found/9813/2 "2022-05-28T18:15:30Z")

</div>

Hello  
I compiled again Hdf5 with a lot of options:

`sudo ./configure --prefix=/usr/local --libdir=/usr/local/lib$CLUSTER --bindir=/usr/local/bin$CLUSTER --enable-shared --with-pic --with-default-api-version=v16 --enable-fortran --enable-cxx --enable-hl --enable-java --enable-tests --enable-tools`

The jarhdf5 error disappeared, it stays only the jarhdf missing  
I did the same with Hdf4 and I had no problem anymore

I do not know which option was necessary

---

<div class="post-metadata">

**Author:** ![byrn](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@byrn](https://forum.hdfgroup.org/u/byrn)\
**Post date:** [May 29, 2022, 10:55pm UTC](https://forum.hdfgroup.org/t/jarhdf5-not-found/9813/3 "2022-05-29T22:55:35Z")

</div>

java requires the shared libraries so --enable-java and --enable-shared must be present,–with-pic is good unless you have a reason not to include that. I think --with-default-api-version v16 is not a good choice for java libraries.  
hdf5 source should be 1.10.x for hdfview 3.1.y and 1.12.m for hdfview 3.2.n builds.

---

<div class="post-metadata">

**Author:** ![albert.neu](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@albert.neu](https://forum.hdfgroup.org/u/albert.neu)\
**Post date:** [November 8, 2022, 7:39pm UTC](https://forum.hdfgroup.org/t/jarhdf5-not-found/9813/4 "2022-11-08T19:39:51Z")

</div>

CMake-hdf-4.2.15/HDF4options.cmake incorrectly has HDF\_BUILD\_JAVA, when it should actually be: HDF4\_BUILD\_JAVA

---

<div class="post-metadata">

**Author:** ![byrn](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@byrn](https://forum.hdfgroup.org/u/byrn)\
**Post date:** [November 8, 2022, 7:49pm UTC](https://forum.hdfgroup.org/t/jarhdf5-not-found/9813/5 "2022-11-08T19:49:40Z")

</div>

Fixing it in the master branch.

---

<div class="post-metadata">

**Author:** ![albert.neu](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@albert.neu](https://forum.hdfgroup.org/u/albert.neu)\
**Post date:** [November 9, 2022, 12:44pm UTC](https://forum.hdfgroup.org/t/jarhdf5-not-found/9813/6 "2022-11-09T12:44:42Z")

</div>

In which repo are these CMake-hdf files hosted? Basically: where is the file HDF4options.cmake.

Couldn’t find them, during a brief search through repos on github. Thanks

---

<div class="post-metadata">

**Author:** ![byrn](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@byrn](https://forum.hdfgroup.org/u/byrn)\
**Post date:** [November 9, 2022, 1:54pm UTC](https://forum.hdfgroup.org/t/jarhdf5-not-found/9813/7 "2022-11-09T13:54:54Z")

</div>

the file HDF4options.cmake is in the config/cmake/scripts folder.

CMake-hdf\* files are created at release time and can be downloaded from the download site.
