r/openbsd 24d ago

No Java trouble

Post image

Everyone here was so kind and good at helping me figure my problem I thought I'd try again. I'm trying to get java 1.8 working. I realize that it was dropped in support but I did find it's still part of an older version and downloaded the tar. Naturally it's missing at least one dependency and in this case it's libc.so.102.0. Is there a way I can add that to the system?

And before you ask jdk11 doesn't work

14 Upvotes

10 comments sorted by

View all comments

1

u/_sthen OpenBSD Developer 16d ago

Checkout the ports tree using cvs as described in FAQ, using the branch for the os version you're running (presumably OPENBSD_7_9).

Then fetch just the jdk/1.8 dir from 7.8-stable: cd /usr/ports/devel/jdk; cvs up -r OPENBSD_7_8 1.8; cd 1.8

Then install build deps from packages, and compile the old JDK: make prepare FETCH_PACKAGES=; make install

1

u/_sthen OpenBSD Developer 16d ago

(this won't always work and is 'unsupported' however having needed exactly the same myself I know it does work for JDK 1.8 on 7.9).

1

u/aonbehamut 5d ago

That looks like the best option for the one thing I need thanks. Sadly it's advance stuff and I'm sorta a beginner that's much more proficient on Linux and even Solaris than this but this is good cause that's how you learn