[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

_______________________________________________
Gopher-Project mailing list
Gopher-Project@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/gopher-project




Reply to: