OpenBSD: Against all odds, I'm building Java

| | Comments (3) |

If you want Java in OpenBSD, it's not easy to get it. Not impossible, but definitely not easy.

First of all, it's a port, not a package, and due to Sun's licensing restrictions for Java, when you run the build on the port, you are instructed to, on your own, fetch nine files (some source, some binary) from a variety of locations and place those files in /usr/ports/distfiles.

Once I jumped through these hoops, I got a persistent checksum error with one of the files I grabbed, xalan-j_2_7_0-bin.tar.gz. In fact, the exact problem I had is described in this Daemon Forums thread.

Curiously enough, three additional downloads of xalan from two separate sites didn't solve the checksum issue.

What did cause the error to stop and the build to proceed was grabbing this line from one of the examples in the Daemon Forums thread:

SHA256 (xalan-j_2_7_0-bin.tar.gz) = h4yOtu7hVRrkMMLboFQmMphW/8BBOyAX3S1O5kjFxfc=

and replacing that same line in /usr/ports/devel/jdk/1.5/distinfo

The original line looked no different, but this swap (done as root) seemed to make everything OK, and I'm well into the build of Java (or, more specifically, jdk).

I hope to be able to run Java apps via both the Firefox and Opera Web browsers. It's one of the final missing pieces in my use of OpenBSD as my main working OS.

Right now the build continues. I'll update when it either finishes or otherwise errors out. (You can see how optimistic I am about ports in OpenBSD at this moment; not so much, that is).


3 Comments

M said:

I've been thinking of using OpenBSD for an embedded application that requires running (non-graphical) Java, and this post gives me pause. Do you know if the situation has improved now that OpenJDK and other GPL alternatives to Sun's Java ecosystem have reach something akin to maturity?

I haven't installed Java in OpenBSD in quite some time. Back when I wrote this post, it was quite an ordeal.

I did add Java to FreeBSD about a year ago, and that was no walk in the park either.

It makes you appreciate the packaging in Linux. It also makes you appreciate the many thousands of other applications that are sufficiently free to be packaged for BSD in such a way as to allow you to install them without jumping through a myriad of hoops.

I've reduced my reliance on Java to such a point that I really don't need to install it these days in Linux or BSD.

Leave a comment

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appeared Saturdays in the Los Angeles Daily News through about October 2009, is available on the Daily News Technology page.

About this blog






Steven Rosenberg aims to learn what he does not know. He writes about it here.



About this Entry

This page contains a single entry by Steven Rosenberg published on March 5, 2009 7:01 PM.

OpenBSD: Upgrade anxiety was the previous entry in this blog.

Ubuntu: Going from 256 MB to 512 MB means going from unusable to usable ... plus a Java rant is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Comments

Steven Rosenberg on OpenBSD: Against all odds, I'm building Java: I haven't installed Java in OpenBSD in quite some time. Back when I wr ...

M on OpenBSD: Against all odds, I'm building Java: I've been thinking of using OpenBSD for an embedded application that r ...

goodluckbuy on OpenBSD: Against all odds, I'm building Java: Sense Deans Ultra Connector ...

Powered by Movable Type 4.25

Search this blog

Loading

LXer

Links

Life, the Universe and Debian
Simplify
Daily News technology
LXer
Distrowatch
Linus' Blog
David Pogue
BoingBoing
Linux Today
TuxRadar
Linux.com
Linux Planet
The Open Road
Linux Outlaws podcast
Dan Lynch
Fabian Scherschel
The VAR Guy
Larry the Free Software Guy
Chess Griffin
Linux Reality podcast
Desktop Linux
Practical Technology
Linux Devices
ZDNet
ZDNet's Storage Bits
ZDNet U.K.
iTWire
CNet News
Webware
Beyond Binary
TechCrunch
The Register
Ars Technica
Reg Developer
Computerworld
Computerworld blogs
Steven J. Vaughan-Nichols at Computerworld
Debian
Planet Debian
Debian Forums
Debian News
debianHELP
debiantutorials.org
The Debian User
Wolfgang Lonien
Debian-News.net
Debian Administration
Debian Admin
Debian Weather
Aaron Toponce
Ubuntu
Xubuntu
Kubuntu
Edubuntu
Planet Ubuntu
Ubuntu Forums
Ubuntu Geek
Works With U
OMG! Ubuntu!
I' Been to Ubuntu
Tanner Helland
Dustin Kirkland
Ubuntu UK Podcast
Ubuntu Linux Help
Popey
Linux Mint
CrunchBang Linux
OpenBSD
OpenBSD Journal
OpenBSD Ports
OpenBSD 101
Planet.OpenBSD.nu
jggimi's OpenBSD live CD
DaemonForums
BSDanywhere
Marc Balmer
Denny's OpenBSD blog
Polarwave's OpenBSD Tips and Tricks
Binary Updates for OpenBSD
Puppy Linux
Damn Small Linux
Tiny Core Linux
Lucky 13's Linux blog (lots of Tiny Core)
Lucky 13's BSD blog
PCLinuxOS
Mandriva
Red Hat
Red Hat News
Red Hat Blogs
Red Hat: Truth Happens
Red Hat Magazine
CentOS
Planet CentOS
Fedora
Planet Fedora
Fedora Forums
Fedora Docs
Join Fedora
Paul Frields
Slackware
Slackbuilds
Robby's Slackware Packages
Slackblogs
dropline GNOME for Slackware
GNOME Slackbuild
GWARE - GNOME for Slackware
Wolvix
Zenwalk Linux
Vector Linux
Slax
Splack Linux — Slackware for Sparc
Nonux
How to Forge
marc.info BSD and Linux mailing list archive
FreeBSD
FreeBSD, the Unknown Giant
A Year in the Life of a BSD Guru
NetBSD
hubertf's NetBSD Blog
PC-BSD
Daemon Forums
FreeBSD Forums
Planet FreeBSD
Evilcoder.org
miwi's Privat Blog
DragonFlyBSD
DragonFlyBSD Digest
DesktopBSD
BSD Talk podcast
BSD Magazine
Rhyous
OpenSolaris
MilaX
BeleniX
DeLi Linux
Linux Loop
Electronista
The Tech Report
Engadget
Gizmodo
Phoronix
xkcd – A webcomic of romance, sarcasm, math and language
Nixie Pixel
Technology for Mortals
Thoughts on Technology
ZaReason
System 76
Tiger Direct
NewEgg
DealExtreme

Advertisement