Hello Guest

Webstart Error

  • 1 Replies
  • 13413 Views
*

Offline bobjob

  • ****
  • 394
  • LWJGL: WOW SO GOOD
Webstart Error
« on: April 10, 2007, 17:00:04 »
if use the following line, it will load the image no problems from my program
Code: [Select]
  try {
  if(!IL.ilLoadFromURL(Thread.currentThread().getContextClassLoader().getResource("Resources/Images/" + name))) {
  System.out.println("Could not load: Resources\\" + name);
  }
  } catch (Exception e) {
  System.out.println("Devil Exception MOTHER....");
  }
it will throw the exception in the java webstart console, not return false. has anyone had this problem or undertand why it may be happening?

i Also Tried this instead, but still the same problem
Code: [Select]
if(!IL.ilLoadFromURL(IL.class.getClassLoader().getResource("Resources/Images/" + name))) {
  System.out.println("Could not load: Resources\\" + name);
  return null;
}
« Last Edit: April 10, 2007, 17:15:43 by bobjob »

*

Offline bobjob

  • ****
  • 394
  • LWJGL: WOW SO GOOD
Re: Webstart Error
« Reply #1 on: April 10, 2007, 18:12:05 »
ummmm........... sorry guys, i didnt relise captilisation was a important in URLS
ahhhh sigh. its all working good now :)