../ in jar

From: Peter (cmk128_at_hotmail.com)
Date: 10/31/04


Date: 30 Oct 2004 23:04:36 -0700

Hi
   saveImageIcon = new
ImageIcon(JFileViewer.class.getResource("../image/general/save.png"));

   Has no problem, But i package everything into a jar. It get a null
pointer exception. How to get arround it?

thanks
from Peter (cmk128@hotmail.com)



Relevant Pages

  • Re: OT: It aint what it appears to be
    ... power tools and gadgets, "arrr, arrr". ... would not open its twin package. ... Once I even had to call my son-in-law to open a jar ... released the pressure and the lid turns off easily. ...
    (alt.support.mult-sclerosis)
  • Re: What classes are in a package? Functional requirement
    ... you can turn around and check the package for the ... > that correspond to the classpath. ... The JavaBeans spec allows you to package plugins into a jar and you know ... So the creator of the plug-in has to create a special jar file to indicate ...
    (comp.lang.java.programmer)
  • Re: What classes are in a package? Functional requirement
    ... you can turn around and check the package for the ... > that correspond to the classpath. ... The JavaBeans spec allows you to package plugins into a jar and you know ... So the creator of the plug-in has to create a special jar file to indicate ...
    (comp.lang.java.help)
  • Re: JAR! . . .What is it good for?. . .Absolutely nothing :-)
    ... It ended up pilot error :-( I looked through the JAR manifest and to my ... embarassment I found the EmpApplet and EmpClient classes but sadly no ... the same package don't need to import one another to be visible to one ... might trigger this behaviour in your applet viewer program, ...
    (comp.lang.java.programmer)
  • Re: how to set up a simple plugin mechanism
    ... First we need to assign a unique class name to every possible ... clossnames) These define the names of the members in the jar. ... qualified package names. ... name of any of these classes to a custom class loader, ...
    (comp.lang.java.help)