View Single Post
Old 06-07-2012, 03:18 PM   PM User | #6
TestingPHP
New Coder

 
Join Date: Jun 2012
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
TestingPHP is an unknown quantity at this point
Quote:
Originally Posted by Fou-Lu View Post
Sorry, my bad. Can't invoke a new on java.net.URI.create, so just remove new. And the IO package is supposed to be lowercase: java.io.IOException. Try again.
still isn't working (I'm jar signing the main class as 'test')

Am I doing it wrong?

Code:
class test
{
	public static void main(String[] args)
	{
try 
{ 
    java.net.URI uri = java.net.URI.create("http://mywebsite.com"); 
    int iBrowserWindows = 5; 
    for (int i = 0; i < iBrowserWindows; ++i) 
    { 
        java.awt.Desktop.getDesktop().browse(uri); 
    } 
} 
catch (java.io.IOException ex) 
{ 
} 
	}
}
TestingPHP is offline   Reply With Quote