LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: Webstart Error  (Read 5555 times)

bobjob

  • Prolific Timewaster
  • ****
  • Offline Offline
  • Posts: 380
  • 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;
}
Logged

bobjob

  • Prolific Timewaster
  • ****
  • Offline Offline
  • Posts: 380
  • 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 :)
Logged