[gopher] Does Java have built-in Gopher support?

gopher4all at fastmail.com gopher4all at fastmail.com
Thu Jan 7 21:35:37 UTC 2016


Hi,

> Hi all. On Oracle website in docs I've seen that Java has a handler for
> Gopher protocol, but a simple test fails with
> java.net.MalformedURLException: unkown protocol: gopher. I'm running
> Oracle JDK 8.

Nice find! Was not aware of this. Personally I don't use sun.XXX
packages, as they are obviously only available in Oracle
implementations, so I've implemented my own protocol handling for my
client.

Perhaps this is of help, I've not tried it yet:
https://bugzilla.redhat.com/show_bug.cgi?id=865541

To quote above's link: "Oracle Java SE updates 7u9 and 6u37 disable
Gopher protocol support by default in the java.net package.  Update also
introduces a new property "jdk.net.registerGopherProtocol" which can be
set to true to re-enable Gopher support."

Although certainly interesting and fun for experiments, I don't really
think this is worth the hassle. Wouldn't be too surprised if they were
to deprecate this in future JDKs.

Regards,
Vincent



More information about the Gopher-Project mailing list