Main Menu

Webstart Error

Started by bobjob, April 10, 2007, 17:00:04

Previous topic - Next topic

bobjob

if use the following line, it will load the image no problems from my program
  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
if(!IL.ilLoadFromURL(IL.class.getClassLoader().getResource("Resources/Images/" + name))) {
	  System.out.println("Could not load: Resources\\" + name);
	  return null;
}

bobjob

ummmm........... sorry guys, i didnt relise captilisation was a important in URLS
ahhhh sigh. its all working good now :)