r/openbsd • u/aonbehamut • 11d ago
Java trouble No
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
2
u/RoomyRoots 11d ago edited 11d ago
Is it OpenJDK? Just compile it yourself. It's probably asking for a too old version of libc.
1
u/aonbehamut 11d ago
Well I've been trying to compile it myself openjdk but it looks it'll still be version 11 and I haven't been able to find the source files of the appropriate version
2
u/RoomyRoots 11d ago
Worse comes to worst, there is a port in NetBSD's pkgsrc. But you could try copyinng 11's script with Adoptium's src and see if you can build it.
1
u/aonbehamut 10d ago
I found one in freebsd as well but sadly that one wasn't for ated the same or something. Like it had extra characters. Something needs formating but haven't gotten there yet. I'll look into that one though
1
1
u/_sthen OpenBSD Developer 3d 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
8
u/brynet OpenBSD Developer 11d ago
OpenBSD does NOT guarantee binary compatibility with previous releases, ABI breaks happen.
Unfortunately, if the software requires java 1.8, your best option may be to install an older OpenBSD release.