I know that using process or processbuilder class in java I can start application.
On windows, all i need is to open a default browser with the url that I specify and get the returned url from the browser back to java program. Think like I am getting url to get access token from facebook. How can I do this?
There is perhaps a very little known API called java.awt.Desktop that allows launching of default applications on many platforms. Using it to launch the default web browser with a URL is easy: