NoClassDefFoundError: javax/media/jai/PlanarImage
I am trying to run the JaiTut from the JAI and got the following error. Is this a classpath problem or what, I'm kind of new to this stuff.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/PlanarImage
at LoadDemo.load(LoadDemo.java:42)
at RightPage.setContents(RightPage.java:141)
at Book.setContents(Book.java:142)
at Book.loadPage(Book.java:161)
at Book.gotoPage(Book.java:217)
at Book.valueChanged(Book.java:123)
at javax.swing.JList.fireSelectionValueChanged(Unknown Source)
at javax.swing.JList$ListSelectionHandler.valueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
at javax.swing.DefaultListSelectionModel.setSelectionInterval(Unknown Source)
at javax.swing.JList.setSelectedIndex(Unknown Source)
at Book.loadIndex(Book.java:297)
at Book.<init>(Book.java:97)
at Tutor.main(Tutor.java:54)
So I changed my CLASSPATH to the following and I still get the error
CLASSPATH=.;c:\jdk1.3.1\jai111\JaiTutor\classes;c:\jdk1.3.1\jai111\lib\jai_codec.jar;c:\jdk1.3.1\jai111\lib\ja
i_core.jar;c:\jdk1.3.1\jai111\lib\mlibwrapper_jai.jar;C:\PROGRA~1\JMF21~1.1\lib\sound.jar;C:\PROGRA~1\JMF21~1.
1\lib\jmf.jar;C:\JSDT-2.0\lib\jsdt.jar;C:\WINNT\java\classes;.
Similar Messages
-
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/
After I got this exception, I tried the following solution:
I downloaded the Windows package for JAI from this link:
https://jai-imageio.dev.java.net/binary-builds.html
Then I went to the Projects window > Libraries (Netbeans IDE) and browsed to the two jar files in that download. The two jar files are now showing under the Libraries node and, accordingly, they are listed in my Classpath as this:
..\..\..\Desktop\jai-imageio-1_2-pre-dr-b04-lib-windows-i586-07_Apr_2009\lib\ext\jai_imageio.jar
..\..\..\Desktop\jai-imageio-1_2-pre-dr-b04-lib-windows-i586-07_Apr_2009\lib\ext\clibwrapper_jiio.jar
There also a couple of DLL files which I wasn't sure how to add.
So why am I still getting this error? Maybe it's the wrong version of JAI?This research made me VERY late for work and I've been swamped all day. Didn't have a chance to post my solution earlier.
"It appears that you have downloaded wrong package... try downloading and installing the stable release " jai_imageio-1_1-lib-windows-i586-jdk.exe ".
I didn't know how to install that one. I tried clicking it and got an error msg. Then I added it as a reference (I browsed to it from the Libraries node) which "seemed" to work (allowed me to run my app using F6) but then it wouldn't produce a deployment package when I seleced Run > Clean and Build. So I went back and downloaded the "Daily Build" which unzips to two jar files
jai_imageio.jar
clibwrapper_jiio.jar
and immedliately Run > Clean and Build produced a deployment package. (All of this is to get PDFbox running in my app). I also needed jai_core.jar which I believe was from this page:
http://code.google.com/p/mapmap/downloads/detail?name=jai_core.jar&can=2&q=
specifically this link:
http://mapmap.googlecode.com/files/jai_core.jar
By the way I am using a "Daily Build" for PDFbox (0.7.4) which came from the "FOP" downloads here:
http://www.jeremias-maerki.ch/download/fop/pdf-images/
but I still needed the older pdfbox 0.7.3 download just to extract the Fontbox.jar from it. I needed a codec from this page as well:
http://www.findjar.com/jar/geoserver/jai/jars/jai_codec-1.1.3-alpha.jar.html
the codec was offered as a one-link download:
http://www.findjar.com/jar/geoserver/jai/jars/jai_codec-1.1.3-alpha.jar.html
The upshot of all this is that I can now work with more types of PDF files than before - but still not all of them. I'm getting another error on some of them (I'll have to reproduce this at home). -
JAI installation problem, javax/media/jai/util/ not found?
Hi,
I am trying to use the JAI instllation in executing a class. However, I keep getting the following message.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/util/
I have added some jars from the JAI instllation to my classpath. However, I still get this message.
What jar file do I have to reference so I do not get this message?Even more strange, I deploy it under Unix, there is no problem. The previous one is deployed
under Windowns XP. Anyone has same experience? -
Javax.media.jai error message
Hi,
This is probably more of an eclipse message so i am sure I will get slammed for posting it, anyway...
I have set a path to my necessary jai_cor.jar files, though now it does not show any error messages, when i go to compile I get the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError: com.sun.media.jai.codec.SeekableStream
at javax.media.jai.operator.BMPDescriptor.class$(BMPDescriptor.java:86)
at javax.media.jai.operator.BMPDescriptor.<clinit>(BMPDescriptor.java:85)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at javax.media.jai.RegistryFileParser.getInstance(RegistryFileParser.java:216)
at javax.media.jai.RegistryFileParser.registerDescriptor(RegistryFileParser.java:352)
at javax.media.jai.RegistryFileParser.parseFile(RegistryFileParser.java:287)
at javax.media.jai.RegistryFileParser.loadOperationRegistry(RegistryFileParser.java:47)
at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:363)
at javax.media.jai.JAI.<clinit>(JAI.java:560)
Any ideas?
Thanks, RonDidn't have the codec file in the path!
Message was edited by:
cake -
Problem to find the javax.media.jai package
hi everyone!! it's not the first time I ask this question, but i have troubles to find javax.media.jai..
I've downloaded the jai 1.1 and everything is fine... However, I have to use classes from the javax.media.jai... I made the import, and it doesn't find it, as if it doesn't exist... Someone tells me that the jai contained it, so why doesn't it find it??
i'm using a java version 1.2.. do you think that is the problem?
thanks a lot, and sorry for my bad english!!
Anne.thanks a lot!!! it helps me but doesn't resolve my problem!! ;o)
you may be right,, it's a classpath problem. well i work under unix, so i have to give my classpath by the command setenv CLASSPATH ...
i didn't find the jai_core.jar in my JAI 1.1, I have only the BugFixes.jar...
I tried to download the latest version of JAI, and unfortunately i have a new problem with the .tar, i don't manage to "open" it... the command
tar xvf [archieve file] gives me some errors!!
so I don't know what I'm gonna do.... I think I'm going to ask someone to send me the package, or the specific classes I need, it would be more easier!!
Thanks
Anne. -
Package javax.media.jai does not exists
I am geting this error
'package javax.media.jai does not exists'
when I try to compile my Java Application in Netbeans.
i have upgraded from JDK 1.5_06 to JDK 1.6_27 and no other code changes
Earlier I was using jai_codec.jar and jai.core.jar with JDK 1.5_06.
Can anyone help me with this?Where can I download the latest jai_codec and jai_core.jar files
that are compatible with JDK 1.6_27 ?
Thanks885522 wrote:
Earlier I was using jai_codec.jar and jai.core.jar with JDK 1.5_06.So keep using them. -
Downloading javax.media.jai.JAI
hi,
helo im new to this forum. Can anybody plz help me in downloading the package "javax.media.jai.JAI". Please let me know where can i download the above package. This is very important to me plz help me.Hey,
Search google man.....Type JAI software for download...u find setup file.......
Best Of Luck!
Rgds, -
Javax.media.jai in applets
I would like to use some features of javax.media.jai in developing some applets, but from what I read I get the impression that most average users' JRE would not have this installed. Is this correct?
Sidereal wrote:
1. Would this greatly increase load time?That depends on the size of the Jar's, and the speed of the server and client connections (or whatever connection between them is the slowest).
If you deploy the applet in a 1.6.0_10+ JRE, it can be deployed using web start (while still embedded in the web page). Deploying using web start can offer a number of advantages, such as..
- Better control of class caching, and even 'lazy' deployment of classes and resources. This latter ability ensures the applet appears on-screen quickly, while downloading other components as needed.
- Sand-boxed access to the local file-system.
- The ability to offer different security levels for different application components. (E.G. the JAI Jar's might already be digitally signed with a valid certificate, simplifying matters.)
Sidereal wrote:
2. Can you point me to any good tutorials on setting this up?As an aside, it would help if you had not ignored my earlier question. It was not merely curiosity. If you had answered my question, I might have been able to determine some of the constraints of this deployment. As it is, I am not about to enter a lengthy discussion (or lots of links) covering all the possibilities, so how about you narrow it down by answering my earlier question? (<- as opposed to that one, which was purely rhetorical.)
And please be as specific as possible. What I am looking for is like the 'feature list' you might see on the box of commercial software. The things that are supposed to make the person think "I +need+ that!". -
Javax.media.jai not in jmf.jar
Ive download JMF 2.1.1e from
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/download.html
and installed it. However it does not seem to contain the javax.media.jai or com.sun.media.jai packages as per the documentation :-
http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/index.html
I checked the contains of the jmf.tar and and the other jars that came with the download
eg the following can not be found
import javax.media.jai.widget.ScrollingImagePanel;
import javax.media.jai.NullOpImage;
import javax.media.jai.OpImage;
import com.sun.media.jai.codec.SeekableStream;
import com.sun.media.jai.codec.FileSeekableStream;
import com.sun.media.jai.codec.TIFFDecodeParam;
import com.sun.media.jai.codec.ImageDecoder;
import com.sun.media.jai.codec.ImageCodec;
So have I done something wrong, is this code no long in the jmf.jar, or is the documentation wrong ?Thanks, that got me the jai_imageio.jar , however this jar does not contain the any of the following packages
import javax.media.jai.widget.ScrollingImagePanel;
import javax.media.jai.NullOpImage;
import javax.media.jai.OpImage;
import com.sun.media.jai.codec.SeekableStream;
import com.sun.media.jai.codec.FileSeekableStream;
import com.sun.media.jai.codec.TIFFDecodeParam;
import com.sun.media.jai.codec.ImageDecoder;
import com.sun.media.jai.codec.ImageCodec;
are they in another jar that I have not included, or do I need to get them from somewhere else? -
In compileng time this class not found import javax.media.jai.JA
Hi,
I�m download
jai_imageio-1_0_01-lib-windows-i586
jai_imageio-1_0_01-lib-windows-i586-jdk
jai_imageio-1_0_01-lib-windows-i586-jre
jdk-1_5_0_02-windows-i586-p
in compel time
import com.sun.media.jai.codec.*;
import javax.media.jai.JAI;
The complier gave me error class not found
How can i configured my system
I have Windows XP
[email protected]try compiling like this:
java -cp "." myTest
This is not compiling, here you execute the already
compiled myTest.java file (or it should be already
compiled). To compile you may want to use javac or any
other available compiler.Oops, sorry, I didn't mean compiling.
If you were able to compile ok, you can try running the program by using:
java -cp "." myTest
This usually will solve the problem when your program comples fine but can't find the class when you try to run it. It's almost like the compiler assumes to look in the current directory but the VM (java.exe) doesn't make this assumption. -
Newbye question: what is javax.media.jai ?
Hello,
What is javax.media.jai for, and what has it more than java.awt.image?
I am experiencing difficulties with colormap manipulations in the standard java.awt.image classes, so I'm wondering if javax.media.jai could help.
Its classes are not in the standard documentation javadoc. If I use it in my project, do I have to warn people downloading that package or is it basically installed in the standard download of jse ?
thank youSidereal wrote:
1. Would this greatly increase load time?That depends on the size of the Jar's, and the speed of the server and client connections (or whatever connection between them is the slowest).
If you deploy the applet in a 1.6.0_10+ JRE, it can be deployed using web start (while still embedded in the web page). Deploying using web start can offer a number of advantages, such as..
- Better control of class caching, and even 'lazy' deployment of classes and resources. This latter ability ensures the applet appears on-screen quickly, while downloading other components as needed.
- Sand-boxed access to the local file-system.
- The ability to offer different security levels for different application components. (E.G. the JAI Jar's might already be digitally signed with a valid certificate, simplifying matters.)
Sidereal wrote:
2. Can you point me to any good tutorials on setting this up?As an aside, it would help if you had not ignored my earlier question. It was not merely curiosity. If you had answered my question, I might have been able to determine some of the constraints of this deployment. As it is, I am not about to enter a lengthy discussion (or lots of links) covering all the possibilities, so how about you narrow it down by answering my earlier question? (<- as opposed to that one, which was purely rhetorical.)
And please be as specific as possible. What I am looking for is like the 'feature list' you might see on the box of commercial software. The things that are supposed to make the person think "I +need+ that!". -
Use of javax.media.jai
Hi all,
I wanted to use some classes of javax.media.jai but , I get this error which says
cannot resolve javax.media, I am using eclipse to write my code. Please let me know what I need to do.
Thank you.Two things to check.
If your trying to actually use the JAI from javax.media.jai you need to
have the following import.
import javax.media.jai.JAI;
Also in eclipse you need to make sure that you have the package included in the project, and that your Class Paths are correct. If your class paths aren't correct then even if you have the package in the project you'll get errors.
Hope that helps. -
Where can I find javax.media.jai?
I 'm using java 1.2
can i get this package??
thanksIt's part of the Java Advanced Imaging API, which is available for download (beta version) at this site...
-
Javax.media, installing
Hi, I am trying to use:
import javax.media.jai.PlanarImage;
import javax.media.jai.Histogram;
But I keep getting an error, how do i install them? I am assuming i have to download a new developers pack, and how do I install it under eclipse?
Many thanks, RonI have the same problem, can you help to solve it?
I can't make work JMF in my linux box:
I have added these lines to my .bashrc script:
export JMFHOME=/usr/local/lib/JMF-2.1.1e
export CLASSPATH=$JMFHOME/lib/jmf.jar
export LD_LIBRARY_PATH=$JMFHOME/lib
Additionally I have make ln -s /usr/local/lib/JMF-2.1.1/lib/jmf.jar in
my /usr/local/lib/j2re1.4.2_01/lib/ext/ directory.
And
http://java.sun.com/products/java-media/jmf/2.1.1/jmfdiagnostics.html
always say me:
"JMF Version... 2.1.1e
All Java Build
Native Libraries Not Found"
What are "Native Libraries"?
Can you help me please? -
Exception: com.sun.media.jai.util.ServiceConfigurationError
I've developed an applet that uses javax.media.jai. API. When it's compiled and ran through Microsoft's IIS and from the command line it works fine. The final place for this applet, though, is on a Linux server. When it's compiled and ran from the shell it runs fine. But through Apache i get this error.
com.sun.media.jai.util.ServiceConfigurationError: javax.media.jai.OperationRegistrySpi: : sun.io.MalformedInputException
at com.sun.media.jai.util.Service.fail(Service.java:127)
at com.sun.media.jai.util.Service.parse(Service.java:206)
I know that the problem line is:
PlanarImage im = (PlanarImage)JAI.create ("AWTImage", pb);
Also, that both servers JSDK's and JRE's were installed correctly.
And, that the needed registerFile.jai is located in the right place.
I've been stumped by this for a week and can't find info on the com.sun.media.jai.util.ServiceConfigurationError class or javax.media.jai.OperationRegistrySpi class.Hi ,
I am getting the similar error -
I have an applet which displays a tiff image and allows the user to magnify , rotate , invert , zoom or print the displayed image . The applet uses JAI 1.1 API and jre plugin -1.3.0_0.1. It works fine when loaded in IE but with netscape (version 4.5/6.0) it throws the exception :-
com.sun.media.jai.util.ServiceConfigurationError: javax.media.jai.OperationRegistrySpi: https://xyz/javatiffviewer/META-INF/services/javax.media.jai.OperationRegistrySpi:1: Illegal configuration-file syntax
at com.sun.media.jai.util.Service.fail(Service.java:127)
at com.sun.media.jai.util.Service.fail(Service.java:133)
at com.sun.media.jai.util.Service.parseLine(Service.java:155)
at com.sun.media.jai.util.Service.parse(Service.java:204)
at com.sun.media.jai.util.Service.access$100(Service.java:118)
at com.sun.media.jai.util.Service$LazyIterator.hasNext(Service.java:255)
at javax.media.jai.OperationRegistry.registerServices(OperationRegistry.java:2031)
at javax.media.jai.ThreadSafeOperationRegistry.registerServices(ThreadSafeOperationRegistry.java:620)
at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:371)
at javax.media.jai.JAI.<clinit>(JAI.java:382)
at javax.media.jai.OpImage.<init>(OpImage.java:230)
at javax.media.jai.PointOpImage.<init>(PointOpImage.java:374)
at javax.media.jai.PointOpImage.<init>(PointOpImage.java:404)
at javax.media.jai.NullOpImage.<init>(NullOpImage.java:108)
at javax.media.jai.NullOpImage.<init>(NullOpImage.java:156)
at TiffApplet.CReadImage.separateImages(CReadImage.java:185)
at TiffApplet.CReadImage.checkForNoOfImages(CReadImage.java:149)
at TiffApplet.CReadImage.<init>(CReadImage.java:68)
at TiffApplet.CTIFFViewer.showImage(CTIFFViewer.java:259)
at TiffApplet.CTIFFViewer.start(CTIFFViewer.java:191)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Can you please, suggest a solution .
Thanks ,
Navneet
Maybe you are looking for
-
PO Text copy from Sales Order to Purchase Order
Dear friends, Hope everyone is doing fine. I have the following business requirement for two situations Scenario 1) Purchase Order text from the Sales order has to be copied to the purchase order. Here sales order is converted to purchase requisition
-
Horizontal scroll in TextEditBoxWidget
Hello How can I get a TextEditBoxWidget with a horizontal scrollbar? Is there an existing resource for this? Best regards / Pontus Hulin
-
Tango Video calls on Nokia Belle
When will Nokia make Tango or any other video calls application available on Nokia Belle mobiles, such appliocation are very imoprtant to have, and Nokia should invite the developers to make such applications compatible with our Nokia latest mobiles.
-
IOS6 causes Podcast App to Play when I get a phone call!
Try this: play a podcast using the Podcast app with a headset. Unplug the headset - the app pauses automatically. Ok so far. Call your phone. Dismiss the call. The Podcast starts to play!! Or answer the call and talk - Ok. Then hang up the call - the
-
How to detect the installed device name
Hi, I am using Labview 8.5. I need to display the device name installed in my pc. I have a PXI chassis with DAQ,Digitizer and function generator card.To display the DAQ device name used the "DevName" property of DAQmx driver.Similarly to display the