Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.IllegalArgumentException: URI is not absolute?

843790Dec 1 2009 — edited Dec 1 2009
Hi everyone. Thanks in advance for helping. : )

I'm making an MMO in school and we were testing what we have so far as an applet. Problem is, my images won't show up due to the fact that apparantly my sprite URI is not absolute.

My image is located at http://xxx.xxx.xxx.xx/WebGame/gfx/sprites/picture.gif

My URI in the code reflects that. That is an absolute address, but Java doesn't think so. I've also tried:

gfx/sprites/picture.gif The relative address
http://gfx/sprites/picture.gif It was worth a try.

Any ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2009
Added on Dec 1 2009
5 comments
2,313 views