Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with URI

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic