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, Ron

I 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?

Similar Messages

  • Javax.media.NoPlayerException: Cannot find a Player

    Hi all,
    I've installed JMF,
    and tried the sample 'SimplePlayerApplet.java' from Sun:
    http://java.sun.com/products/java-media/jmf/2.1.1/samples/
    (see the code below)
    However, everytime I run the applet,
    I get the message:
    "javax.media.NoPlayerException: Cannot find a Player"
    Can anybody help?
    -------code from sun website-----------------
    * @(#)SimplePlayerApplet.java     1.2 01/03/13
    * Copyright (c) 1996-2001 Sun Microsystems, Inc. All Rights Reserved.
    * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
    * modify and redistribute this software in source and binary code form,
    * provided that i) this copyright notice and license appear on all copies of
    * the software; and ii) Licensee does not utilize the software in a manner
    * which is disparaging to Sun.
    * This software is provided "AS IS," without a warranty of any kind. ALL
    * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
    * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
    * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
    * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
    * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
    * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
    * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
    * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
    * POSSIBILITY OF SUCH DAMAGES.
    * This software is not designed or intended for use in on-line control of
    * aircraft, air traffic, aircraft navigation or aircraft communications; or in
    * the design, construction, operation or maintenance of any nuclear
    * facility. Licensee represents and warrants that it will not use or
    * redistribute the Software for such purposes.
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.String;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.io.IOException;
    import java.util.Properties;
    import javax.media.*;
    //import com.sun.media.util.JMFSecurity;
    * This is a Java Applet that demonstrates how to create a simple
    * media player with a media event listener. It will play the
    * media clip right away and continuously loop.
    * <!-- Sample HTML
    * <applet code=SimplePlayerApplet width=320 height=300>
    * <param name=file value="sun.avi">
    * </applet>
    * -->
    public class SimplePlayerApplet extends Applet implements ControllerListener {
    // media Player
    Player player = null;
    // component in which video is playing
    Component visualComponent = null;
    // controls gain, position, start, stop
    Component controlComponent = null;
    // displays progress during download
    Component progressBar = null;
    boolean firstTime = true;
    long CachingSize = 0L;
    Panel panel = null;
    int controlPanelHeight = 0;
    int videoWidth = 0;
    int videoHeight = 0;
    * Read the applet file parameter and create the media
    * player.
    public void init() {
    //$ System.out.println("Applet.init() is called");
    setLayout(null);
    setBackground(Color.white);
    panel = new Panel();
    panel.setLayout( null );
    add(panel);
    panel.setBounds(0, 0, 320, 240);
    // input file name from html param
    String mediaFile = null;
    // URL for our media file
    MediaLocator mrl = null;
    URL url = null;
    // Get the media filename info.
    // The applet tag should contain the path to the
    // source media file, relative to the html page.
    if ((mediaFile = getParameter("FILE")) == null)
    Fatal("Invalid media file parameter");
    try {
    url = new URL(getDocumentBase(), mediaFile);
    mediaFile = url.toExternalForm();
    } catch (MalformedURLException mue) {
    try {
    // Create a media locator from the file name
    if ((mrl = new MediaLocator(mediaFile)) == null)
    Fatal("Can't build URL for " + mediaFile);
    try {
    JMFSecurity.enablePrivilege.invoke(JMFSecurity.privilegeManager,
    JMFSecurity.writePropArgs);
    JMFSecurity.enablePrivilege.invoke(JMFSecurity.privilegeManager,
    JMFSecurity.readPropArgs);
    JMFSecurity.enablePrivilege.invoke(JMFSecurity.privilegeManager,
    JMFSecurity.connectArgs);
    } catch (Exception e) {}
    // Create an instance of a player for this media
    try {
    player = Manager.createPlayer(mrl);
    } catch (NoPlayerException e) {
    System.out.println(e);
    Fatal("Could not create player for " + mrl);
    // Add ourselves as a listener for a player's events
    player.addControllerListener(this);
    } catch (MalformedURLException e) {
    Fatal("Invalid media file URL!");
    } catch (IOException e) {
    Fatal("IO exception creating player for " + mrl);
    // This applet assumes that its start() calls
    // player.start(). This causes the player to become
    // realized. Once realized, the applet will get
    // the visual and control panel components and add
    // them to the Applet. These components are not added
    // during init() because they are long operations that
    // would make us appear unresposive to the user.
    * Start media file playback. This function is called the
    * first time that the Applet runs and every
    * time the user re-enters the page.
    public void start() {
    //$ System.out.println("Applet.start() is called");
    // Call start() to prefetch and start the player.
    if (player != null)
    player.start();
    * Stop media file playback and release resource before
    * leaving the page.
    public void stop() {
    //$ System.out.println("Applet.stop() is called");
    if (player != null) {
    player.stop();
    player.deallocate();
    public void destroy() {
    //$ System.out.println("Applet.destroy() is called");
    player.close();
    * This controllerUpdate function must be defined in order to
    * implement a ControllerListener interface. This
    * function will be called whenever there is a media event
    public synchronized void controllerUpdate(ControllerEvent event) {
    // If we're getting messages from a dead player,
    // just leave
    if (player == null)
    return;
    // When the player is Realized, get the visual
    // and control components and add them to the Applet
    if (event instanceof RealizeCompleteEvent) {
    if (progressBar != null) {
    panel.remove(progressBar);
    progressBar = null;
    int width = 320;
    int height = 0;
    if (controlComponent == null)
    if (( controlComponent =
    player.getControlPanelComponent()) != null) {
    controlPanelHeight = controlComponent.getPreferredSize().height;
    panel.add(controlComponent);
    height += controlPanelHeight;
    if (visualComponent == null)
    if (( visualComponent =
    player.getVisualComponent())!= null) {
    panel.add(visualComponent);
    Dimension videoSize = visualComponent.getPreferredSize();
    videoWidth = videoSize.width;
    videoHeight = videoSize.height;
    width = videoWidth;
    height += videoHeight;
    visualComponent.setBounds(0, 0, videoWidth, videoHeight);
    panel.setBounds(0, 0, width, height);
    if (controlComponent != null) {
    controlComponent.setBounds(0, videoHeight,
    width, controlPanelHeight);
    controlComponent.invalidate();
    } else if (event instanceof CachingControlEvent) {
    if (player.getState() > Controller.Realizing)
    return;
    // Put a progress bar up when downloading starts,
    // take it down when downloading ends.
    CachingControlEvent e = (CachingControlEvent) event;
    CachingControl cc = e.getCachingControl();
    // Add the bar if not already there ...
    if (progressBar == null) {
    if ((progressBar = cc.getControlComponent()) != null) {
    panel.add(progressBar);
    panel.setSize(progressBar.getPreferredSize());
    validate();
    } else if (event instanceof EndOfMediaEvent) {
    // We've reached the end of the media; rewind and
    // start over
    player.setMediaTime(new Time(0));
    player.start();
    } else if (event instanceof ControllerErrorEvent) {
    // Tell TypicalPlayerApplet.start() to call it a day
    player = null;
    Fatal(((ControllerErrorEvent)event).getMessage());
    } else if (event instanceof ControllerClosedEvent) {
    panel.removeAll();
    void Fatal (String s) {
    // Applications will make various choices about what
    // to do here. We print a message
    System.err.println("FATAL ERROR: " + s);
    throw new Error(s); // Invoke the uncaught exception
    // handler System.exit() is another
    // choice.
    }

    First and most obvious question is, what are you trying to have the applet view? The NoPlayerException generally means that JMF couldn't figure out how to display what you're telling it to display, be that an unknown codec, or unknown media type.

  • Javax.media.* not found!!

    when i compile the a program, i get an error message "javax.media.*"not found! So, can any one tell me how to import this class to my compiler? i am use netbean 3.6. Thank u

    Two- Options
    1- This configuration is for Net Beans 3.5.1, I m not sure with 3.6
    Go to
    Tools > Options
    In
    Options
    -----Building
    ----------------Compiler Types
    ----------------------------------External Compilation
    In External Compilation select "Expert" Tab, In the class path field enter all the class related to the JMF, or if u r using Windows OS, just enter %CLASSPATH% OR -CLASSPATH.
    Do the same in Internal Compilation.
    And now in
    -------Building
    -----------------Debugging And Executing
    --------------------------------------------Execution Types
    Do the Same as in Compiler Types
    2----- 2nd one is only the way if above does not work.
    ->Uninstall the NetBeans
    ->Install the JMF first
    ->Make sure the classpath environment variable is updated with JMF classes
    ->Now Reinstall this NetBeans
    But I hope 1st will work.
    I also have faced that problem, and recovered it by both of above ways
    regards
    Khurram

  • Import javax.media.* is not working

    Hi,
    I'm new to java and i was trying to create a media player using the javax.media package from the JMF. I installed it using the windows setup and it seemed to install correctly. Testing it with the java.sun.com applet tester worked. The media player is also working...
    The only problem is that when i import javax.medis.* it gives me a compiler error:
    package javax.media does not exist
    my code is as follows:
    import java.applet.*;
    import java.awt.*;
    import java.net.*;
    import javax.media.*;
    public class PlayerApplet extends Applet {
         Player player = null;
    public void init() {
         setLayout( new BorderLayout() );
         String mediaFile = getParameter( "FILE" );
         try{
              URL mediaURL = new URL( getDocumentBase(), mediaFile );
              player = Manager.createRealizedPlayer( mediaURL );
              if (player.getVisualComponent() != null)
              add("Center", player.getVisualComponent());
              if (player.getControlPanelComponent() != null)
              add("South", player.getControlPanelComponent());
         catch (Exception e){
              System.err.println( "Got exception " + e );
    public void start() {
         player.start();
    public void stop() {
         player.stop();
         player.deallocate();
    public void destroy() {
         player.close();
    } Could someone please help me out here... i've tried all the few probable solutions... but to no avail...

    Well changing the classpath to the correct one still didn't work.... but i still found the solution.
    The Developer Environment that i use is JCreator and it seems it ignores the classpath and has its own settings for the class path... changing this also didn't work.
    What worked was copying the Jar files from the JMF2.1.1e installed location into the path of the original classpath

  • 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!".

  • Import javax.media?

    i have been trying to play a video from a application and i get a bunch of compile errors one is "package javax.media does not exist" because of this im getting 14 other errors, can anyone help me? i just downloaded and installed Java SDK 1.4.2 and i have jdk1.5.0_05 and jre1.5.0_05. so i should be up to date

    Well changing the classpath to the correct one still didn't work.... but i still found the solution.
    The Developer Environment that i use is JCreator and it seems it ignores the classpath and has its own settings for the class path... changing this also didn't work.
    What worked was copying the Jar files from the JMF2.1.1e installed location into the path of the original classpath

  • Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/

    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).

  • Where is the javax.media.j3d

    Hi I install Java3d JDK 1.4.2 but i have only one jar file with com.sun... utility java 3d package what I must do to have package javax.media.j3d?And do I can use java 3d to create games?

    Hi I install Java3d JDK 1.4.2 but i have only one jar
    file with com.sun... utility java 3d package what I
    must do to have package javax.media.j3d?For me it was straight forward process of installing the complete J3D. Extract the files to YOUR_JDK_PATH/jre/lib/ext and/or tell java via the CLASSPATH variable to use the jar's.
    And do I can use java 3d to create games?Yes...if you put some brain and effort in it. There are several projects in the web, which care about game programming using J3D. Try to google for them.
    Hope this helps.
    Kai

  • Javax.media.jai not in jmf.jar

    I’ve 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?

  • How to import javax.media.*

    i am doing project on audio ,video transmission over the LAN.
    after installing JMF1.2.1, when i run the program i am getting the error
    "D:\raghu\amp\audiolabreports\ampcom\AmpCom.java:3: package javax.media does not exist
    import javax.media.*;
    ^
    1 error"
    please help me out
    -raghnath.g

    Hi,
    You need to place jmf.jar in your classpath.
    -Amol

  • 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!".

  • Package javax.media doesnot exits

    Hi,
    I have installed JMF,but am still facing the error "package javax.media doesnot exits"
    when i tried to import javax.media.*

    You need to import JMF's library JAR files

  • Need javax.media package

    Hi.. Everyone
    where do i get this javax.media package ? will it not be available with jdk?
    Thanks in advance.

    Some of it is included with JMF...you have to install JMF specificlly to have access to the javax.media classes that JMF uses...

  • IE6 causes java.lang.ClassNotFoundException: javax.media.pm.PackageManager

    Guys,
    I have an applet that simply plays a media file. Quite simple! It has been working fine for ages, but I recently upgraded to IE6, and BLAM! I now get this exception: java.lang.ClassNotFoundException: javax.media.pm.PackageManager
    Of course, I have checked my classpath, and my path settings. I know that the classpath is fine, I can run JAVA JMStudio and it launches fine. The application runs OK as standalone. I can even debug the applet using JBuilder, and it works. As soon as I run it from IE6 - Nope.. Not working!
    I wonder if anyone else has seen this? If I set the option to use the Sun JVM, the diagnostincs applet shows this:
    JMF Diagnostics:
    Java 1.1 compliant browser.....Maybe
    JMF classes.....Not Found
    but, if I set the option off, I get:
    JMF Version... 2.1.1a
    Win32 Build
    Native Libraries Found
    What is causing this difference? Is this even relevant? I have seen several other posts talking about a ClassNotFoundException but this is specific to IE6 (I think at least.) I will try and regress to 5.5 and keep you posted!
    Steve

    OK, Here is the deal..
    Uninstall the JRE Plugin. (Delete the directory too)
    Uninstall the JMF (Again, delete the dirs)
    Remove any references to the JMF on the CLASSPATH
    Reboot
    Re-install the JRE Plug-in
    Re-install the JMF.. Note: Make sure all options are checked when installing.
    Reboot as requested .
    Browse to: http://java.sun.com/products/java-media/jmf/2.1.1/jmfdiagnostics.html to test the installation.
    Funilly, it all works now. The reason it did not work was due to the classpath being WRONG!!!
    It now reads: C:\PROGRA~1\JMF21~1.1\lib\sound.jar;C:\PROGRA~1\JMF21~1.1\lib\jmf.jar;
    BUT, I installed the JMF at: C:\Program Files\JMF2.1.1
    Call me insane, but I do not have a clue why the paths do not match, but is solved my problem.
    I am certain this clears several of the posts found on this Forum!!
    Hope this helps you all..
    Steve

  • Creating a text with transparent background using javax.media.j3d.Raster

    Hi, I'm trying to display a text in Java3D using the Raster but I'm not sure to make the background of the text transparent. Does anyone have any ideas.
    Here's my code for creating the Raster image:
    private javax.media.j3d.Raster getRaster(String str, boolean rotate) {
    // Create an empty raster.
    javax.media.j3d.Raster raster = new javax.media.j3d.Raster();
    // Get a font metrics.
    Font font = new Font("Times", Font.PLAIN, 12);
    FontMetrics fm = getFontMetrics(font);
    // Calculate the raster size.
    int width = SwingUtilities.computeStringWidth(fm, str) + 6;
    int height = 18;
    // Create an BufferedImage.
    BufferedImage image = new BufferedImage(width,
    height,
    BufferedImage.TYPE_INT_BGR);
    // Draw the input string on the BufferedImage.
    Graphics2D g2d = (Graphics2D) image.getGraphics();
    g2d.setFont(font);
    g2d.setColor(Color.WHITE);
    g2d.drawString(str, 3, 14);
    // Set the BufferedImage to the raster.
    raster.setImage(new ImageComponent2D(ImageComponent2D.FORMAT_RGB, image));
    raster.setSize(width, height);
    raster.setType(javax.media.j3d.Raster.RASTER_COLOR);
    raster.setCapability(javax.media.j3d.Raster.ALLOW_IMAGE_WRITE);
    raster.setCapability(javax.media.j3d.Raster.ALLOW_SIZE_READ);
    return raster;
    Thank you for your help.

    Hi,
    If you create a new transparent imge you can put a color fill layer below the text layer and either turn off  the layer visiblity for the color fill layer (eye beside the color fill layer in the layers panel)
    or delete the color fill layer before saving the file as a transparent png.

Maybe you are looking for