
Originally Posted by
EuroscapeLTD
Hey, im a bit noob, Whats Wron with this?
replace
Code:
class30_sub2_sub1_sub4.method389(false, 4, 0, aString
ay944[k] + " @[email protected]" + s1, i1);
with
Code:
class30_sub2_sub1_sub4.method389(false, false, 4, 0, aString
ay944[k] + " @[email protected]" + s1, i1);
and declare this
Code:
public void launchURL(String s)
{
String s1 = System.getProperty("os.name");
try
{
if(s1.startsWith("Windows"))
{
Runtime.getRuntime().exec((new StringBuilder()).append("rundll32 url.dll,FileProtocolHandler ").append(s).toString());
} else
{
String as[] = {
"firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape"
};
String s2 = null;
for(int i = 0; i < as.length && s2 == null; i++)
if(Runtime.getRuntime().exec(new String[] {
"which", as[i]
}).waitFor() == 0)
s2 = as[i];
if(s2 == null)
throw new Exception("Could not find web browser");
Runtime.getRuntime().exec(new String[] {
s2, s
});
}
}
catch(Exception exception)
{
System.out.println("An error occured while trying to open the web browser!\n");
}
}