Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with URI  RSS feed

 
Pavel Kubal
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Im trying to pass this link "http://192.168.1.194/mamut/offerLists/handOffers/SPL0000164/images/getstart.gif
" as an argument to URI constructor, but it prints "java.lang.IllegalArgumentException: URI scheme is not "file"
". What I'm doing wrong?
 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you access that URI in a web browser from the same machine you're running the code on? Maybe you should post the exact code that's generating this exception...
 
Pavel Kubal
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Stephen Huey:
Can you access that URI in a web browser from the same machine you're running the code on? Maybe you should post the exact code that's generating this exception...


Yes, that was the first what I tried
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!