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 you
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!".
Similar Messages
-
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. -
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!". -
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? -
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;. -
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. -
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 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 -
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). -
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 do I need to just "play" a vm in my laptop ?
today I have vmware player and a few images.
my laptop is Win XP and I can not change that .
can Oracle VM substitute vmware on this specific scenario ?
(I must keep host OS = win XP).
I see this statement at the wiki page:
Oracle VM Server: A self-contained virtualization environment designed to provide a lightweight, secure, server-based platform for running virtual machines. Oracle VM Server is based on open source technology (Xen hypervisor for example) tailored by Oracle, and includes Oracle VM Agent to communicate with Oracle VM Manager for management of virtual machines
so.. sounds like what I need.. a self-contained (standalone ??) env, etc..
but I also see other places saying the installer will erase my HD !! that is ok for a server env but all I need is to play a VM every now and then at my win XP laptop.
I think that is not possible but I am not sure... can you guys confirm my understanding ?
Thanks in advance !!user730886 wrote:
can Oracle VM substitute vmware on this specific scenario ? No. Oracle VM is a bare-metal, self-contained virtualization platform. This means it is the only operating system running on the physical machine. It is the equivalent concept to VMware's ESX or ESXi products, not their workstation products.
Oracle does not currently have a desktop-based virtualization solution. -
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?
Maybe you are looking for
-
Pages '09: The inspector window doesn't open any more - no idea why
Don't know what and when something went wrong. But I can't open the inspector window anylonger. Any idea?
-
I'd like to either change the orange background or change the appearance of the tabs so that I can see them better. They are transparent right now and cannot be seen.
-
Weblogic 5.1 Service Pack 9 Issue
Hi, I install weblogic5.1 with service pack 9 on Solaris. However, when I start the weblogic server, the following appears during startup even though the server is started successfully:-[ExternalEntity] : Could not resolve entity '-//Sun Microsystems
-
Mini bridge wird nicht angezeigt
mini bridge wird nicht angezeigt, kann nicht über "Fenster"->"Erweiterungen" eingeblendet werden, da Erweiterungen nicht anwählbar ist. Kann das an der Testversion liegen? DANKE!
-
Original size and no smoothness
Hi Guys, I have a problem when I'm importing videos. The original video size is 480x360 aad when I'm importing it the video gets all messed up. It's very important with this video that there is no change in it at all, because it's pixel art. So smoot