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.
Similar Messages
-
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? -
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? -
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, -
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. -
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;. -
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). -
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. -
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 -
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!". -
Help me - I have a problem of using the javax.smartcardio
Hi everybody!!!
I'm creating an application to communicate with javacard.
I searched on internet and know about javax.smartcardio.
But I can not use it, even it's inside the default library of Java 6.
I already import the javax.smartcardio.*; to my java file.
But it can not find the class inside this package.
Can somebody help me? Thanks a lot.Hi everybody.
I got the advice from Mr. Safarmer on this forum.
So:
If you're using Eclipse to develop the application.
You have to set the JRE Library to Alternate JRE.
Below is the instruction for dummies like me ^^:
Go to Build Path > Configure Buil Path of your project
In Libraries tab, Edit the JRE System Library
Instead of choosing the Execution Environment, we choose Alternate JRE (usually jre6)--> This is my case. And i did it. -
Re: javax.media.* package
i am trying to work on an example that uses the javax.media package, but the package is not found. Any ideas on importing a package or whatever to get my example to work?
thanks a millionIt may have something to do with the way you're building your MediaLocator. They should be URL-like.
myLocator = new MediaLocator("file:\\"+adVids[currVid].getAbsolutePath()); -
How to find the version of a package
Hi ,
Please let me know the command to find the version of a package.
For Example I want to know the version of ARPURG.pls file .
Thanks
Naveen.Unix: strings -a ARPURG.pls | grep -i Header
Windows: find "Header" ARPURG.pls | more
Maybe you are looking for
-
When trying to update my iTunes 10.6.1 software, I keep getting a message that states, "the feature you are trying to use is on a network resource that is unavailable". Specifically, it is an error for 'Bonjour.msi'. Can someone please help me get
-
Agg tables with non-Sum aggregation type
Situation: We have a fact called Ending Cash Balance that is non-additive across time. Each month, it shows the cash on hand at the end of the month. So our aggregation method is "Last" for the Time dimension (i.e. the value for Q1 = March, value for
-
I want to have 10 small images for navigation where you rollover one and the content image changes (not the image i rollover) how do i do this in dreamweaver? thanks, s
-
Hi,everybody Not only is the new interface for importing files NOT better, in my opinion, but I cannot find a way to get LR to use my previous file template - one created with a lot of thinking and effort. Any help?
-
Hello, I'm having trouble getting this dynamic group to populate. Any idea what i'm doing wrong? If I split it up by just running the customAttribute1 items, it populate; if I just run the Title items it populates; putting the 2 together results in