Launching a Browser Window, Platform Independent

(Not strictly online but I couldn’t find a General Coding sort of section to put this question in)

What’s the platform-independent way to launch the system’s browser on a page?

Cas :slight_smile:

perhaps this works for you:

http://www.javaworld.com/javaworld/javatips/jw-javatip66.html?

cheers, that’ll save me a bit of thinking.

Cas :slight_smile:

sweet! i was looking for this a while ago… (http://www.java-gaming.org/cgi-bin/JGOForums/YaBB.cgi?board=newbies;action=display;num=1048264238)

…but don’t forget that under Unix these days lots of people won’t be touching netscape with a barge-pole. I would guess that more people used mozilla.

Of course, any recent netscape is just a modified mozilla anyway, but moz isn’t going to install itself with a binary named “netscape” in normal circumstances.

Arse. I knew there’d be a catch. Still, 99% of the people who download my demo are going to be hapless Windoze users, and will happily eat any shit they are given.

Cas :slight_smile:

wait a second…

what does Java Web Start do when handling links? They do have clickable http://… labels!

Anyhow, try http://browserlauncher.sourceforge.net written by Eric Albert. It supports many more platforms than Unix/Win and works on my system so far.