Can somebody please provide my with usefull info how to open internet browser from java program? The way how this should work, work cross platform & open default browser don't force certain browser
I tried to use info from this page but couldn't get it work. Together with tutor we downloaded requered libraries. But when implemented compiler give us following errors, red parts mark erorr place
C:\CW1 - Game\Game.java:174:
unreported exception java.net.MalformedURLException;
must be caught or declared to be thrown
Desktop.browse([B]n[/B]ew URL ( "http://www.google.co.uk/"));
C:\CW1 - Game\Game.java:174:
unreported exception org.jdesktop.jdic.desktop.DesktopException;
must be caught or declared to be thrown
Desktop.browse[B]([/B]new URL( "http://www.google.co.uk/"));