0

i am browsing a url in my default browser with this code..

    URI uri = new URI("Some url here"); 
    Desktop dt = Desktop.getDesktop();
    dt.browse(uri); 

Running it from Netbeans opens the webpage flawlessly, but while running the jar it opens the folder where it is saved. Whats wrong. It's a maven project and here is the pom. Thanks in advance..

Community
  • 1
  • 1
Nazim
  • 209
  • 5
  • 17

0 Answers0