public static void openLink(String lnk)
  {
	URI link;
	try 
	{
		link = new URI(lnk);	
	    try
	    {
	      Class<?> desktopClass = Class.forName("java.awt.Desktop");
	      Object o = desktopClass.getMethod("getDesktop", new Class[0]).invoke(null, new Object[0]);
	      desktopClass.getMethod("browse", new Class[] { URI.class }).invoke(o, new Object[] { link });
	    }
	    catch (Throwable e)
	    {
	      if (getCurrentPlatform() == OSX) {
	        try
	        {
	          Runtime.getRuntime().exec(new String[] { "/usr/bin/open", link.toString() });
	        }
	        catch (IOException e1)
	        {
	        }
	      } else {
	      }
	    }
	} 
	catch (URISyntaxException e2) {
		e2.printStackTrace();
	}
  }