LWJGL Forum

Archive => DevIL => Topic started by: bobjob on April 10, 2007, 17:00:04

Title: Webstart Error
Post by: bobjob 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;
}
Title: Re: Webstart Error
Post by: bobjob 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 :)