Sudeepta
2008-09-23 10:47:07 UTC
i downloaded jai 1.1 all the files(jdk,jre,lib) then i installed them one by one.
when i am trying to compile and run "Listing 1-1 Simple Example JAI Program" from
"http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Introduction.doc.html#47285"
It is not compiling and giving an error like:
---------------------------------------------------------------------------------------
AccessRGB.java:7: package javax.media.jai does not exist
import javax.media.jai.*;
^
AccessRGB.java:8: package javax.media.jai.widget does not exist
import javax.media.jai.widget.*;
^
AccessRGB.java:16: cannot find symbol
symbol : class PlanarImage
location: class AccessRGB
PlanarImage image1 = JAI.create("fileload",fileName)
^
AccessRGB.java:16: cannot find symbol
symbol : variable JAI
location: class AccessRGB
PlanarImage image1 = JAI.create("fileload",fileName)
^
AccessRGB.java:65: cannot find symbol
symbol : variable JAI
location: class AccessRGB
(RenderedImage)JAI.create("bandSelect", paramsR);
^
AccessRGB.java:67: cannot find symbol
symbol : variable JAI
location: class AccessRGB
(RenderedImage)JAI.create("bandSelect", paramsG);
^
AccessRGB.java:69: cannot find symbol
symbol : variable JAI
location: class AccessRGB
(RenderedImage)JAI.create("bandSelect", paramsB);
^
AccessRGB.java:72: cannot find symbol
symbol : variable JAI
location: class AccessRGB
JAI.create("filestore",imageR,"redBand.JPG");
^
AccessRGB.java:73: cannot find symbol
symbol : variable JAI
location: class AccessRGB
JAI.create("filestore",imageG,"greenBand.JPG");
^
AccessRGB.java:74: cannot find symbol
symbol : variable JAI
location: class AccessRGB
JAI.create("filestore",imageB,"blueBand.JPG");
^
AccessRGB.java:81: cannot find symbol
symbol : class PlanarImage
location: class AccessRGB
PlanarImage redBand = JAI.create("scale",params);
^
AccessRGB.java:81: cannot find symbol
symbol : variable JAI
location: class AccessRGB
PlanarImage redBand = JAI.create("scale",params);
^
AccessRGB.java:87: cannot find symbol
symbol : class ScrollingImagePanel
location: class AccessRGB
ScrollingImagePanel panel =
^
AccessRGB.java:88: cannot find symbol
symbol : class ScrollingImagePanel
location: class AccessRGB
new ScrollingImagePanel(redBand,widthR,heightR);
^
Note: AccessRGB.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
14 errors
-----------------------------------------------------------------------------------------
I think it is not taking the library path properly but i tried linking all the jai*.jar files in classpath but that did not work please help.
I have installed jdk1.6.0_07, jre1.6.0_07 path is set and i can compile and run the normal java programs properly.
i am using winxp machine.