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(new 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(new URL( "http://www.google.co.uk/"));
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.