![]() |
Java open multiple web pages with your default browser(need help).
How would I do this?
I'm new to Java. Basically I want to open multiple web pages to Code:
http://mywebsite.com |
You can use the Desktop class to issue a browser open:
PHP Code:
|
Quote:
|
I'm very new to Java
Why isn't this working? Code:
class test |
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.
|
Quote:
Am I doing it wrong? Code:
class test |
Works fine for me unsigned.
Execute it from the command line. Maybe even compile a .class first to verify you didn't miss something in setting up the jar. Edit: Also, mine opens as 5x tabs, not windows. I don't know if there is a way to do that beyond exec which should work, but I wouldn't recommend. |
Quote:
thanks! |
http://i.minus.com/jbfKdth2cVAz4F.png
please help! :/ |
Quote:
|
Fixed the issue I changed the int to:
Code:
for (int i2 = 0; i2 < iBrowserWindows; ++i) |
My favorite kind of answers :thumbsup:!
|
it was because you had
Code:
for(int i = 0; i< Configmax.players; i++) |
basically this is only opening on my computer, how can I make it so I can open it on a players computer?
Code:
if (playerCommand.startsWith("freeze")) { |
Remotely?
You need to set up an RMI interface between the clients and the servers so you can issue commands to call a function to do this. I think that's what you're looking for, thinking like a chat client? |
| All times are GMT +1. The time now is 10:53 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.