Quality of Cursors created with java.awt.Toolkit(createCutsomCursor)

Hi -
I encountered a small problem while creating my own cursors for my Java application , I used the java.awt.Toolkit Objects createCustomCursor method to use a .GIF image as a cursor ... it worked but the quality of that cursor is horrible, the outline is rough ... I tried the same with a transparent PNG file afterwards unfortunately the same result , does anyone know why the quality is that bad or may this just be a problem of the choosen color pool ?
Help would be very appreciated since I have no clue how to use .cur files ... seems like a non supported format , in case someone knows how to import those it would help a lot if you would drop some lines of code.
I am currently using Java 2 SDK 1.4.0_01 , newest version.
Thanks for you time and thanks in advance for possible answers
-- Harald Scheckenbacher

I noticed this problem too. It looks like the routine is generating cursors which are scaled to to the maximum size of the system. On my win XP system,
Dimension dim = toolkit.getBestCursorSize(256, 256);
int maxColors = toolkit.getMaximumCursorColors();
return 32,32 and 256 respectively
If I provide a 16x16, all the pixels have been pixel doubled. If I specify a 32x32 image, then the cursor looks perfect. This looks like a bug for the java folks. Not sure why someone would ever want a cursor image to be pixel scaled.
          

Similar Messages

  • Deprecation warning for getFontMetrics(java.awt.Font) in java.awt.Toolkit

    Hi all,
    When I use the following code
    JComponent c;
    FontMetrics metrics = getToolkit().getFontMetrics(c.getFont());
    I get this following warning during compilation:-
    warning: getFontMetrics(java.awt.Font) in java.awt.Toolkit has been deprecated
    JDK suggests to use getLineMetrics() of the Font class.
    But there's an issue with that: if I use getLineMetrics(), there is no API method that I can use to get the width of a string as opposed to FontMetrics which provides stringWidth(String str) method for that purpose. In fact all the methods in FontMetrics are not mapped into LineMetrics.
    Could anyone please help or provide me at least some pointers on how to tackle this issue so that I can get rid of the deprecated method along with the existing methods mapped to equivalent APIs? The bottomline is that I should be able to maintain the existing functinality of my application for those part of code that uses getToolkit().getFontMetrics().
    Thank you for your help in advance.
    -Sanjoy Das

    Use Graphics.getFontMetrics(font) instead.
    After creation your frame and calling frame.show();
    You can access it like that
    frame.show();
    frame.getGraphics().getFontMetrics(new Font("Arial",0,10));
    before showing graphics is null.
    Or just create a BufferedImage and ask it for graphics.
    BufferedImage img=new BufferedImage(...);
    img.getGraphics().getFontMetrics(font);
    regards
    Stas

  • Rendering of an 8Bit-tiff with java.awt produces crap

    Hi Folks,
    i do a downsampling of tiff images. The source tiffs are colored 8 Bit greyscale with a 256 color-table. Now i have 2 possibilities to resample with java.awt:
    1. the target-tiff is of 24Bit true color:
    BufferedImage objDownsample = new BufferedImage(iTargetWidth, iTargetHeight, BufferedImage.TYPE_INT_RGB);The result is a perfect looking, but oversized tiff with 16 million colors each pixel.
    2. the target-tiff is of 8Bit like the source-tiff:
    BufferedImage objDownsample = new BufferedImage(iTargetWidth, iTargetHeight, BufferedImage.TYPE_BYTE_INDEXED,(IndexColorModel)image.getColorModel());The result is a small sized tiff image of 8Bit. Problem: it now has visible vertical stripes of two colors (which both composed result the source-color i assume).
    Does anybody know what's wrong here and how to retrieve the 8Bit color-image without stripes?
    Here comes the whole source:
        private BufferedImage resize(int newHeight, int newWidth, BufferedImage image) {
            int iTargetHeight = newHeight;
            int iTargetWidth = newWidth;
            //Create a BufferedImage that fits
            BufferedImage objDownsample = new BufferedImage(iTargetWidth, iTargetHeight, BufferedImage.TYPE_BYTE_INDEXED,(IndexColorModel)image.getColorModel());
            //A map with all necessary rendering hints to optimize the quality of the image
            Map<java.awt.RenderingHints.Key, java.lang.Object> obj_Map = new HashMap<java.awt.RenderingHints.Key, java.lang.Object>();       
            obj_Map.put(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);
            obj_Map.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            obj_Map.put(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
          // Draw the scaled image
          Graphics2D graphics2D = objDownsample.createGraphics();
            graphics2D.addRenderingHints(obj_Map);
            graphics2D.drawImage(image, 0, 0, iTargetWidth, iTargetHeight, null);
            return objDownsample;
        }Thanks
    Albrecht

    As far as I can tell, this solution only allows compositing within the component that is currently being painted. What would be nice is if I could add a custom composite to say .. a JLabel, which paints based on the colors of the underlying pixel data (ie. from its parent container). In this way you could make a JLabel that always inverts the color of what's underneath.
    Here, painting to the screen using a composite allows me to get the pixels underneath as the destination raster, the pixels in the JLabel as the source raster, and what actually gets painted which is the destination output raster.
    If I paint to a BufferedImage instead, the composite's 'destination raster' is the new BufferedImage's default values which are all black. Thus compositing over this would not have the desired effects described above (inverting the underlying image for instance). The missing piece when rendering to the BufferedImage is first copying the underlying screen data into a BufferedImage before painting to it. How do I do that? Something tells me it's very difficult.

  • Java.awt.Toolkit - Coldfusion - HELP

    Greetings.
    I am having a hard time with the following code:
    <cfobject action="create" type="java" class="java.awt.Toolkit" name="fileObj">
    <cfscript>
    img = fileObj.getDefaultToolkit().getImage("images/products/39321.jpg");
    width = img.getwidth();
    height = img.getheight();
    </cfscript>
    <cfoutput>#height#</cfoutput>
    I keep getting the following error:
    java.lang.NoClassDefFoundError
    My version of Java is 1.4.2. I'm running Redhat Linux 4.0. Coldfusion MX 6.1.
    I know this isn't a Coldfusion forum, but I really need some help here.
    I'm new to Java technologies, so any help will be greatly appreciated.

    can ColdFusion load Java objects?
    Presuming that it can, then ColdFusion probably needs some configuration to tell it the Java directory or where the class files are (JavaHome/jre/lib/rt.jar)

  • How can I create a java.awt.Image from ...

    Hi all,
    How can I create a java.awt.Image from a drawing on a JPanel?
    Thanks.

    JPanel p;
    BufferedImage image =
        new BufferedImage(p.getWidth(), p.getHeight, BufferedImage.TYPE_INT_RGB);
    Graphics2D g = image.createGraphics();
    p.paint(g);
    g.dispose();

  • Substitute of java.awt.ToolKit.getDefaultToolKit.beep()

    Hello everybody. I am designing a Swing Application and there I am using java.awt.ToolKit.getDefaultToolKit.beep() method to generate sound in various operations. I want to know is it possible to generate own sound as a substitute of this method? I think it is possible. How can I do this? Thank you.

    Thank you for giving reply.
    As I wish to play .mp3 file I had downloaded an API from Javalobby . I tried it, here is my code :
    package player;
    import java.io.File;
    import java.io.IOException;
    import javax.sound.sampled.AudioFormat;
    import javax.sound.sampled.AudioInputStream;
    import javax.sound.sampled.AudioSystem;
    import javax.sound.sampled.DataLine;
    import javax.sound.sampled.SourceDataLine;
    * @author Tanmoy
    * @Super Scientific Calculator
    * @version 1.2010
    public class Player {
         private File audioFile;
         public Player(String path) {
              this.audioFile = new File(path);
         public void play() {
              AudioInputStream din = null;
              try {
                   AudioInputStream in = AudioSystem.getAudioInputStream(audioFile);
                   AudioFormat baseFormat = in.getFormat();
                   AudioFormat decodedFormat = new AudioFormat(
                        AudioFormat.Encoding.PCM_SIGNED,
                        baseFormat.getSampleRate(), 16, baseFormat.getChannels(),
                        baseFormat.getChannels() * 2, baseFormat.getSampleRate(),
                        false);
                   din = AudioSystem.getAudioInputStream(decodedFormat, in);
                   DataLine.Info info = new DataLine.Info(SourceDataLine.class, decodedFormat);
                   SourceDataLine line = (SourceDataLine) AudioSystem.getLine(info);
                   if (line != null) {
                        line.open(decodedFormat);
                        byte[] data = new byte[4096];
                        line.start();
                        int nBytesRead;
                        while ((nBytesRead = din.read(data, 0, data.length)) != -1) {
                             line.write(data, 0, nBytesRead);
                        line.drain();
                        line.stop();
                        line.close();
                        din.close();
              } catch (Exception e) {
              } finally {
                   if (din != null) {
                        try {
                             din.close();
                        } catch (IOException e) {
    }And the calling, piece of code is :
    try {
                                  Parser parser = new Parser(parsingString, displayPanel.getCurrentBase(),
                                       displayPanel.getCurrentBase(), displayPanel.getTrigoMode(),
                                       displayPanel.getScale());
                                  String output = parser.solve();
                                  displayPanel.outputTextField.setText(output);
                                  displayPanel.outputTextField.setCaretPosition(displayPanel.outputTextField.getText().length());
                                  displayPanel.charLabel.setText((Integer.toString(output.length())));
                                  if (message == null) {
                                       message = "No Exception";
                             } catch (InvalidSyntaxException invalidSyntaxException) {
                                  message = invalidSyntaxException.getMessage();
                                  JOptionPane.showMessageDialog(null, message, "Error", JOptionPane.ERROR_MESSAGE);
                                  new Player("/resources/what_the_hell.mp3").play();
                                  displayPanel.outputTextField.setText("0");
                                  displayPanel.charLabel.setText("0");
                             }But I can not able to here the sound.
    What to do now?
    Thank you.

  • Help with java.awt.Headless

    I added the following line to the catalina.sh file:
    JAVA_OPTS=-Djava.awt.headless=true
    My image was rendered the first time round but when I hit refresh it goes away and is replaced by just a black background. I have been working on this issue of rendering/resizing an image for months and I am just getting frustrated that I can 't seem to find out the problem.
    Here is my code:
    public static byte[] getResizedImage(byte[] imageData, int thumbWidth, int thumbHeight, int quality) throws IOException{
    //create instance of Image from byte array
    Image image = Toolkit.getDefaultToolkit().createImage(imageData);
    // determine thumbnail size from WIDTH and HEIGHT
    double thumbRatio = (double)thumbWidth / (double)thumbHeight;
    int imageWidth = image.getWidth(null);
    int imageHeight = image.getHeight(null);
    double imageRatio = (double)imageWidth / (double)imageHeight;
    if (thumbRatio < imageRatio) {
    thumbHeight = (int)(thumbWidth / imageRatio);
    } else {
    thumbWidth = (int)(thumbHeight * imageRatio);
    // draw original image to thumbnail image object and
    // scale it to the new size on-the-fly
    BufferedImage thumbImage = new BufferedImage(thumbWidth, thumbHeight, BufferedImage.TYPE_INT_RGB);
    Graphics2D graphics2D = thumbImage.createGraphics();
    graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
    graphics2D.drawImage(image, 0, 0, thumbWidth, thumbHeight, null);
    // set quality of thumbnail and doing resizing
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(os);
    JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(thumbImage);
    quality = Math.max(0, Math.min(quality, 100));
    param.setQuality((float)quality / 100.0f, false);
    encoder.setJPEGEncodeParam(param);
    encoder.encode(thumbImage);
    //return byte array
    return os.toByteArray();
    }

    MediaTracker mt = new MediaTracker(new Label());You say this is a servlet; this code is running within a J2EE app server, not where a user can see any GUI components. So the question in the first place is, why are you creating a Label GUI object in this code?
    Don't do that.

  • Zipped files created with Java won't unzip with Java

    Hello there,
    I have written a class for unzipping a zip file using the 'ZipFile' class. It works perfectly fine when I extract zip files that have been created with XP, Winzip, or Winrar.
    I am now experimenting with creating zip files using the ZipOutputStream (http://forum.java.sun.com/thread.jspa?forumID=256&threadID=366550 by author smeee). The code works great for creating the zip file, but when I try and unzip it with the zipfile class mentioned above it throws an exception.
    The error that the following code gives me when it tries to convert an element from the enumeration to a ZipEntry is this: java.io.FileNotFoundException: C:\testfiles\out\high\BAUMAN\00001.jpg (The system cannot find the path specified)
    NOTE: The file is there by the way!!! :-)
    See the code for extracting here:
    try {
                 zippy = new ZipFile(fileName);
                 Enumeration all = zippy.entries();
                 while (all.hasMoreElements()) {//loop through all zip entries
                              getFile((ZipEntry)all.nextElement()); <<<=====FAILS HERE
    } catch (IOException err) {
                 System.err.println(err.toString());
                 return;
    }Now if I extract the zip file with winzip, then rezip it with winzip and run the above method again it works with no errors. Any thoughts. Any help would be greatly appreciated.
    Jared

    Hello All,
    For anyone else who use the forum posting by smeee as a guide to create a zipper (http://forum.java.sun.com/thread.jspa?forumID=256&threadID=366550 by author smeee).
    I was tracing through the code and found that there is a statement that adds 1 character (strSource.length()+1) to the source path. This was causing the following bug:
    In windows it was placing objects like this \myfolder\myfile.txt
    In unix it was placing objects like this yfolder\myfile.txt
    Naturally a path like \myfolder... in the zip index was causing problems. I have added a case statement that tests the OS and then adds two chars if windows to compensate for the 'C:' and does nothing if Unix. The code now runs perfectly on either OS.
    Thanks for your response guys!
    Jared

  • Problem with java.awt.MouseInfo or java.awt.event.*;

    I have a problem with the MouseInfo class. I think.. because in my mousePressed(MouseEvent event) method, I have this:
         public void mousePressed(MouseEvent event) {
              pInfo = mInfo.getPointerInfo();
              point = pInfo.getLocation();
              pointX = point.getX();
              pointY = point.getY();
              System.out.println("pointer is at: (" + (int)pointX + ", " + (int)pointY + ")");
         }I think you all could figure out what this does. I declared the variables at the top and I implemented MouseListener... when I click it doesnt tell me the X and Y coords.
    Alright, thanks. Any help appreciated.

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MouseExample extends MouseAdapter implements Runnable {
        @Override
        public void mousePressed(MouseEvent event) {
            int x = event.getX();
            int y = event.getY();
            System.out.println("x=" + x + ", y=" + y);
        @Override
        public void run() {
            JLabel label = new JLabel("Click anywhere", SwingConstants.CENTER);
            label.setPreferredSize(new Dimension(300, 200));
            label.addMouseListener(this);
            JFrame f = new JFrame();
            f.getContentPane().add(label);
            f.pack();
            f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
        public static void main(String[] args) {
            EventQueue.invokeLater(new MouseExample());
    }

  • Exe created with Report Generation toolkit does not work for all users

    I created a exicutable with the report generation toolkit and it only works with some of my users. I use microsoft 2007 and anyone that has microsoft 2007 my exe works well. Most of my users that have microsoft 2010 are able to use my program as well. However, there is one user with 2010 and Windows 2007 that cant get my program to work.
    Any suggestions for troubleshooting this?
    Thanks

    The most likely issue is due to the fact that Microsoft changes the ActiveX object model of Office for each version of Office. The Report Generation Toolkit does a pretty good job of handling this, but it is not 100% effective. Search, for example on the "Set Cell Border" function and you will see what I mean. In these cases it's up to you to handle this issue. How you handle it really depends on your situation. For us to provide a more concrete answer you will need to provide further details, such as what toolkit function is "not working" (whatever that means), and who you "users" are. Is this an internal distribution? Are you selling this program? Is this code written for a project with a specific customer?

  • Java.awt.Toolkit.getScreenSize()

    Hello again world.
    I'm a little confused here. I have these two lines in a program:
    Toolkit tKit = Toolkit.getDefaultToolkit();
    Dimension size = tKit.getScreenSize();
    Reading the API, I notice that "getScreenSize()" is declared abstract.
    I was under the impression that abstract methods need to be overridden and have no actual code.
    if (that's correct)
       return "What's up with that second line?";
    else
       return "What's the deal with abstract methods?";Thank you one and all.
    Ciao for now.

    I don't understand.
    How does that tell me the "getScreenSize()" is
    defined?
    Do I just trust that the abstract method has been
    overridden in that implementation?Abstract methods can only exist in abstract classes and interfaces. A non-abstract class, commonly referred to as a concrete classes, cannot have abstract methods. Only concrete classes can be instanciated, therefore, if you have an instance of some abstract class, then you know that it is an instance of some concrete subclass of the abstract class. This tells you that all abstract methods have been implemented. So, just the simple fact that you actually have an instance of the object tell you that all the abstract methods are implemented.
    Where are these classes anyhow?Doesn't matter. Like someone said earlier, that is the beauty of polymorphism and inheritance.

  • [solution inside] Poor quality of DVD created with iDVD '08 (jerky movie)

    Hi everyone !
    I have a problem with the export of iDVD, the result is jerky.
    Here's what I done
    - filmed (cam sony 42E, DV)
    - imported to iMovie '08, exported to the media navigator
    - taken in iDVD and burned on a DVD simple layer in professional quality
    And it looks like the movie is 15 images/s (but apparently no problem of sound)
    I checked everything's in PAL (I'm in Europe)
    I checked with another DVD
    I checked the large selection in the navigator (720 * 540, H.264, 25 fps, 4Mbps)
    I tried with "best performances"
    I tried to cut the movie : 72 min -> 35 minutes
    I exported just an image disc
    Nothing fixed the problem
    Finally, I exported from iMovie in .dv then integrated the file in iDVD and, this time the result was the same as in the preview (thanks to SkyDrinker for the tip)
    So this is a solution, but this is strange :
    or my iLife is corrupted, or the way Apple say to work (with conversion in h.264) is not good.
    Did anyone else had the same problem ?
    Thank you for your feedback.
    Take care!

    I had the same problem with jerky pans and dancing pixels particularly when using Ken Burns on stills.
    Here is a solution. Save the 08 movies in Quicktime using AIC encoding then burn using Toast 8 with the quality slider set to best. The improvement in quality is substantial.
    There is some improvement(not as much as using Toast) using Quicktime AIC encoding then burning with iDVD with Professional Quality and dual layered DVDs just to make sure the quality indicator is well into the green.
    The disadvantage in using Toast as compared to iDVD is that the cool menus are lost.
    PS: All my burning is done using NTCS but it should not make a difference.

  • Weird problem with java.awt.Color

    I have a Compiled C program that launches a Java program. This java program always throws an UnsatisfiedLinkError when I attempt to construct a new Color object, unless the owner of the C program is one particular user and the group is admin. No other combination works.
    Any ideas?

    in nt & 2000, each user can have his/her own classpath - i assume that this is the same of unix. have you looked at whether the various users have the appropriate classpath settings?
    D

  • Problems with awt.Toolkit on Tomcat

    Hello! I'm trying to get the Default Toolkit (java.awt.Toolkit.getDefaultToolkit() ) to determine the scrren size of the client, and Tomcat keeps throwing an Exception - now it's the website's Tomcat and the one on my localhost - there it worked.. Is there another way to determine the client's screen size in JSP (not JavaScript!)?? Thanx!

    first, the previous poster was right - learn how these protocols are interacting before you try something like you want to do - and they're right, you can't use the AWT toolkit to find out ANYTHING about the client.
    HTTP is stateless. so it's like this:
    browser request -> your code on server, jsp completely exeutes, generates html -> html PLAIN old html goes to the browser. in that order. no exceptions. ergo, all your code has executed once the browser starts getting data (buffers on the server not withstanding).
    As to why you're getting the exception, the server you are trying to run it on is most likely running in a mode called "headless", that is, there is no windowing api available to the JVM, so any awt calls will fail anyway. It works on your box because you are probably running a full windowing os, such as windows or Linux with gnome or kde. it just happens to return the correct screen size because that's the screen size of your screen, not the screen of the browser that it's outputting to. (try running your code locally and making your browser window small, you'll be dismayed that the rendered HTML is not the "right" size - because the screen size call was based on your resolution, NOT the size of the requesting browser window.
    if the last 2 sentences don't make sense, re-read them until they do.
    best of luck, sorry you're learing these frustrating lessons this way.

  • Eexception in java.awt.AWTError

    Hi all,
    I am starting with java in my Ubuntu box, and am faced with a problem.
    Consider a simple program
    import javax.swing.*;
    import java.awt.*;
    class helloSwing{
         public static void main(String[] args)
              JFrame myWindow;
              myWindow = new JFrame();
              myWindow.setSize(300,200);
              myWindow.setTitle("My First Swing Application");
              myWindow.setVisible(true);
              System.exit(0);
    }when I run this program
    neo@tathagata:~/Java Progs$ java helloSwingThis is the error I am getting
    Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
       at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.6.0.0)
       at java.awt.EventQueue.invokeLater(java.lang.Runnable) (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.SwingUtilities.invokeLater(java.lang.Runnable) (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.RepaintManager.addInvalidComponent(javax.swing.JComponent) (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.JComponent.revalidate() (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.JComponent.setOpaque(boolean) (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.JPanel.JPanel(java.awt.LayoutManager, boolean) (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.JPanel.JPanel() (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.JRootPane.createGlassPane() (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.JRootPane.getGlassPane() (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.JRootPane.JRootPane() (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.JFrame.createRootPane() (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.JFrame.getRootPane() (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.JFrame.frameInit() (/usr/lib/libgcj.so.6.0.0)
       at javax.swing.JFrame.JFrame() (/usr/lib/libgcj.so.6.0.0)
       at helloSwing.main(java.lang.String[]) (Unknown Source)
       at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
       at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
    Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
       at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
       at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0)
       at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
       at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
       at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
       at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.6.0.0)
       ...17 moreIt appears whenever I'm importing some packages it is creating a problem.
    With whatever little knowledge of Java I have, I suspect I have messed up in the enviornment variables somewhere.
    So here are my
    PATH=/usr/local/qt-x11-opensource-src-4.1.0/bin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/games:/home/neo/jdk1.3.1_17/bin/:/usr/sbin:/usr/java/jdk1.3.1_17/bin
    JAVA_HOME=/usr/java/jdk1.3.1_17Can anybody suggest me an easy link where classpath is explained?
    I'm am helpless, coz if this is not getting fixed I need to go back to Windoz ..
    leaving Ubuntu, which would be really painful.
    Please help. Thanks in Advance.

    Cool, I glad it's working. And thanks for the kind words (although
    your link sent me some sort of Introduction page, I eventually found
    "Tatha's blog").
    Now all I have to do is get my setup correct. Also 1.5, also Ubuntu.
    I screwed something up when I installed Netbeans, and couldn't
    understand how the Debian people have set things up. I just type the
    executable's path at the command line (easy with *nix) or let Eclipse
    just do the right thing.
    Cheers,
    Peter

Maybe you are looking for

  • MSI USA Casemod contest!

    http://www.msicomputer.com/msiforms/casemod.asp border=0>       HEIGHT="1">       src="http://www.msicomputer.com/msiforms/image_CaseMod/title.gif"       width=740>                   src="http://www.msicomputer.com/msiforms/image_CaseMod/image1.gif"

  • Photoshop in Mac/PC

    Hi, I always worked on my Acer laptop to do retouching my photographs and when I checked the final result in Mac, there was a little difference in color but still it was acceptable. This time I used Mac (Photoshop CS5) to retouch my photos, because I

  • TV Shows and Music purchased through iTunes doesn't work on my iPhone

    When I play some of the music and tv shows purchased through iTunes on my iPhone, it would play for around 30 seconds for music and anywhere from 5-20 min for the shows, and then either go to the next song, or stop playing the video for no reason. It

  • Let user drag drop dynamic components, resize them

    I'm just wondering how you can create UI components and let the user drag and drop them on the screen let the user resize the elements, change the text for example or rotate the element (just like scrapblog) Lets say you want to have an image object.

  • CF Flash Forms/CAPTCHA

    I am working on using a flash form for a contact form and in the past I have always used captcha images in this situation to prevent spam... I have tried using the cfimage tag within my form and it doesn't seem to be working. Does anyone have any ide