Opening a new URL from the current working browser in java
<p>Currently I have a website with url, for eg. say: <a href="http://mydomain/index.jsp" rel="nofollow">http://mydomain/index.jsp</a> and I have opened the site in firefox browser &amp; consider my default browser is Google chrome.</p>

<p>Now in java, I need to open a new url with the current working browser (firefox in which my website is opened). When I tried to use:</p>

<pre><code>Desktop desktop = java.awt.Desktop.getDesktop();
URI uri = new java.net.URI(my_new-uRL);
desktop.browse(uri);
</code></pre>

<p>The new url was opened in chrome (since its my default browser). I dont need so. Since I have all my sessions valid in firefox, I need my code to open the new url with the same firefox browser. How can I do so?</p>

<p>Thanks.</p>
