Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

core java

 
Navneet Pathak
Greenhorn
Posts: 5
Hibernate Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please someone guide me how to call a url from java program? please its urgent...
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Navneet Pathak wrote:please someone guide me how to call a url from java program? please its urgent...

EaseUp. What do you mean by "calling a url" ? You might be interested by HttpComponents.
 
Campbell Ritchie
Sheriff
Pie
Posts: 48954
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
webpage.

And please read this, too.
 
Navneet Pathak
Greenhorn
Posts: 5
Hibernate Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually i wanted to go to a specific webpage ...
eg: - www.javaranch.com

i have made two threads .... in one i want to call a webpage and in other i want to play a song ...



so suggest me how to do?

 
Campbell Ritchie
Sheriff
Pie
Posts: 48954
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forget about the threads and open the website. Forget about threads and play the song. Then put the two together with threads later.

What did it say in the Java™ Tutorials link I posted yesterday?
 
Navneet Pathak
Greenhorn
Posts: 5
Hibernate Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
although the program runs fine without any exceptions.. but the browser does not get opened and page is not displayed...

when i attempted to save the contents of the page in a file ... that's happened perfetly alright. but the page is not displayed on the browser.
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Desktop#browse(...)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic