Quote:
Originally Posted by Fou-Lu
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)
{
}
}
}