Using awt/Swing methods without having to install X on linux server

Hi,
I've written a servlet that generates PNG images and send them to your browser. However, I get the following exception:
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
So I set the variable... but it still doesn't work, because I have no X server on my server, and I wasn't planning on installing a huge system hogging X server...
Any ideas?
Regards
Paul Hamer

AFAIK Headless AWT (AWT that doesn't need X) is one of the enhancements of Java 1.4. You need to set java.awt.headless=true on the command line of though (-Djava.awt.headless=true).
If you're not using 1.4 you'll need som awt replacement, one of the first I found with google was http://www.logicstyle.com/projects/wct/docs/userguide.html.
Another alternatve could be to run a fake display. On one of my linux boxes I kickstart /usr/bin/X11/Xvfb :1 -screen 0 1x1x24 -fn fixed -fc fixed -fp "/usr/lib/X11/fonts/misc:/usr/lib/X11/fonts/100dpi" &in my tomcat startup script. It creates a rather light weight virtual framebuffer with one pixel and satisfy my need to use awt to generate images.

Similar Messages

  • My Adobe trial for Photoshop Elements 10 for the Mac was over and I wanted to buy the application. The screen message was "Your trial has expired...but the fun doesn't have to end! Buy now to continue using Photoshop Elements 10 without having to download

    My Adobe trial for Photoshop Elements 10 for the Mac was over and I wanted to buy the application. The screen message was "Your trial has expired...but the fun doesn't have to end! Buy now to continue using Photoshop Elements 10 without having to download or re-install. " and then the button "Buy Now". When I hit the Buy Now button I am put in a field to buy Photoshop Elements 13, with no way to change to Elements 10. I do not want to go through the hassle of reinstalling etc. In fairness, it's been over a month since making the decision to buy. Still, I consider this a nightmare. Any ideas on how to buy the app I've got withou having to purchase a whole new one? Thanks.
    If worse comes to worse, will I need to uninstall the trial if I buy a new version? Can I use part of it lime download assistant?

    Adobe does not sell older versions of their software.  If you wish to purchase an older version you will have to find and take your chances with a third party vendor.

  • Wrong pagesize during DWG conversion without having Autocad installed

    Hi,
    I'm trying to convert an DWG file into a PDF using Acrobat 9 or LiveCycle PDF Converter 8.2 without having Autocad installed.
    Unfortunately in both cases the pagesize is ignored during the PDF creation. The output PDF is always of "Default size" and the content is down-scaled accordingly.
    Inside the documentation I have read that the output pagesize is selected from the source document (if you use a single file only)
    So what am I doing wrong :-(
    Thanks
    Timo

    I too face the same issue. I am not able to customize page size in Adobe PDf Printer. Could some one provide me solution how to customize page size in Adobe PDf printer. I am Domain user. I dont have admin rights.

  • How to run java exe files without having to install jre

    Hi all i want to run a java application. i already converted the jar file to exe using Launch4j but the problem is that i want to run the application on other computers without having to install jre. please, is this possible and if yes, how can i do that. Thanks alot in advance

    The Launch4J website should explain how to bundle the JRE. I've not really used it myself though. If you can't get it to work you could try the launcher I use:
    http://www.megaupload.com/?d=FYZAVM77
    which comes with instructions. Or:
    http://sourceforge.net/projects/javaround
    Both of which are really easy to use.

  • Cellular and wifi Ipad Mini, can i still use/connect to wifi without having the 3g sim?

    If i get a 3g and wifi Ipad Mini, can i still use/connect to wifi without having the 3g sim?  or do i HAVE to have the sim??
    i want to get the 3g and wifi Ipad...but dont want to get the 3g sim until i know i need it (as an option)

    Yes you can still connect to WiFi. You can activate cellular when you need it.

  • Hey i hav an hp pavilion g series n i would like to kno how use the function keys without having to

    hey i hav an hp pavilion g series n i would like to kno how use the function keys without having to click on the fn + function key

    Hi,
    You can change this in your system bios as described in the link below.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • How to install and configure NI Visa Server without having to install MAX?

    Hi,
    I need to install NI Visa Server on a computer so that remote systems can connect to the devices connected to it. However, the flash-drive on the computer is marked as "removable media" by the operating system which is causing the MAX installer to error out (this is a known problem with standard windows installers and removable media).
    Before pursuing a hardware change, I was wondering if there was a way to install and configure NI Visa Server on the embedded computer without having to install or configure through MAX?
    Thanks in advance for any help.

    Hello!
    Your system should appear under remote systems and then you can right click on the software folder and install software. Our 8145s for instance have compact flash drives and this process works. Could you give me more details on your hardware? Are you getting an error message when you try to install the software?
    Allan S.

  • How can I know about the latest updates / versions which when available for all the CC products, without having to install and check it with the Desktoip Creative Cloud Application ?

    How can I know about the latest updates / versions which when available for all the CC products, without having to install and check it with the Desktoip Creative Cloud Application ?

    Thanks for looking into this Jeff!
    I work with an Inventory module software and is responsible for software detection across several computers. Once an updated version comes up, I update our database with latest software details to get it detected if installed on any machines.
    The problem tracking updates with Desktop Creative Cloud Software are;
    1)We have to have it installed with the CC applications in-order to get the notification of the latest updates and have to check everyday.
    2)Only relates to the latest updates, so in-between we may miss a prior update unknowingly.Hence, the remote machines having those updates may not get  detected with the software version update which would create problem in reporting.
    3)For all CC products, there is no base or previous updates available for installation if we miss one.
    I went through the Adobe Products Update pages [Product updates] which holds good when it comes to Acrobat and Reader software which I follow to track down any newer updates but this is inconsistent when it comes to CC products like in After Effects CC, Dreamweaver CC etc...
    So overall to be very specific, is there any one channel I can follow to get the notifications only for the updates on CC products and then may be I can rely on Desktop Creative Cloud for installation if not available anywhere like in product update pages of Adobe ?
    Regards,
    Subrat

  • I would like to know if it's possible to bring back the status bar in Firefox 4 without having to install any addons.

    Does anybody know how to bring back the status bar in Firefox 4 without having to install any addons? The reason why I ask is that for some reason, when Firefox 4 was made available to the general public to download, Firefox 4 was missing the status bar and also the save and quit message was turned off by default. I got the save and quit message turned back on but I just don't know if it's possible to bring back the status bar without any addons.

    Please read this article:
    http://support.mozilla.com/en-US/kb/what-happened-status-bar

  • For Cisco SPA112: can I make dial plan that can use 6 digit number without having to dial the area code 00357 but not for 0030?

    Cisco SPA112:
    Can I make dial plan that can use 6 digit numbers without having to dial the area code 00357 but also being able to dial 0030xxxxxxxxxx numbers?

    If you include a country number, you have to drop the initial 0 from the area code. eg +31 10 2345 6789 instead of +31 (0)10 2345 6789

  • I am looking for a way to automate index creation using Adobe Reader Pro without having to use the screen user interface, as the indexing has to be run by a batch process.

    I am looking for a way to automate index creation using Adobe Reader Pro without having to use the screen user interface, as the indexing has to be run by a batch process.

    [discussion moved to Creating, Editing & Exporting PDFs forum.]

  • How can I use the Creative Cloud without having a Credit Card? Why are there no other possibilities?

    How can I use the Creative Cloud without having a Credit Card? Why are there no other possibilities?

    Hi @DRB1961, 
    I do not think the Zeen will work if you no longer have the C510 printer. The printer is necessary to ensure the Zeen is up to date. The Zeen is simply not a standalone device, it is a component of the printer.   I can not say this with certainty that it will not work, so it is worth trying to reset the Zeen to finding out for sure.
    When you see this message, "must dock the Zeen to the printer to continue", can you access the settings using the 3rd icon above the touch screen? If so we can do a factory reset, if not there is no other way I can think of to bypass this message.
    I just tried a reset on a Zeen I have access to, after the initialization, it prompts me to attach the Zeen to the printer to continue with product setup. it appears my original speculation was correct. No, you can not use the Zeen without the printer.
    Clicking the thumbs up below helps show me that you are grateful of my efforts   If you have any additional questions, I am happy to help.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • How to install PEAR on Linux server

    Hi
    I have PHP installed on one linux server and developers are using it already. I have been given the task to get the oci8 (oracle connectivity) done on this same server. I can not do the reinstall of whole PHP again. During the install of OCI extention I got many errors for missing PEAR files.
    So I went through the PEAR document and found "php go-pear.php" command to install the PEAR package. This command fails with below error.
    download of http://pear.php.net/get/PEAR?uncompress=yes failed: Failed to parse address "" (0)
    The problem is this Linux box does not have direct internet connectivity so I had to download all the required packages as per go-pear.php on my local machine and I am FTPing them to this linux box. I have kept the "PEAR-1.8.1.tar" file in the same directory where go-pear.php file exists but still the above command tries to download it from internet.
    Could you please tell me how can I overcome this problem. Please let me know if there are any RPM's that I can use to install PEAR rather that "php go-pear.php" command.
    Thanks
    Shelly

    Hi CJ.
    It has been more than 4 weeks that I am strugling to get PHP-Oracle work on my system. You are the only hope right now. I have gone through so many articles and white pages that I am totally confused and starting to hate PHP or actually Suse Linux. :-)
    Below are the details of my system.
    more SuSE-release
    SUSE LINUX Enterprise Server 9 (i586)
    VERSION = 9
    PATCHLEVEL = 4
    rpm -qa php* No results
    rpm -qa ph* --No results
    rpm -qa oracle*
    oracle-instantclient-devel-10.2.0.4-1
    oracle-instantclient-basic-10.2.0.4-1
    * which php*
    */usr/bin/php*
    * php -version*
    PHP 4.3.4 (cli) (built: Jan 17 2008 09:55:23)
    Copyright (c) 1997-2003 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
    This is what I see on my system
    */usr/bin> ls -l |grep php*
    -rwxr-xr-x 1 root root 100308 2008-01-17 05:03 asp2php
    -rwxr-xr-x 1 root root 1392441 2008-01-17 04:55 php
    -rwxr-xr-x 1 root root 684 2008-01-17 04:55 php-config
    -rwxr-xr-x 1 root root 593 2008-01-17 04:55 phpextdist
    -rwxr-xr-x 1 root root 2082 2008-01-17 04:55 phpize
    /usr/bin> whereis php
    php: /usr/bin/php /etc/php.ini /usr/lib/php /usr/include/php /usr/share/php /usr/share/man/man1/php.1.gzI see that PHP is already installed on my system which is version PHP 4.3.4.
    Question.
    1) Do i have to upgrade the PHP version to the latest to get OCI8 configured?
    2) If the answer to the above question is Yes than could you point me to any reference doc?
    3) If the upgrade is not needed, how can I configure PHP to use OCI8 to connect to database?
    Thanks in advance
    Shelly

  • How do I move my TABS below the address bar WITHOUT having to install an add on ?? may have to goto another browser now!

    Firefox just updated and now my TABS are above the address bar...
    I do not wish to add another add on, it should be basic functionality to do this (as in previous versions)
    The vast population of users also want this according to the forums.
    How do I do this without having to resort to a "FIX" or an add on as this would add to memory usage.. ??
    Why have you removed this functionality?

    So if I dont want to install an add you suggest installing an add on???
    PS, I dont want to install an addon!!

  • Can I use ipad at home without having a standard computer, but having a wiifi broadband facility

    Can I use an ipad2 at home without having a PC and email address

    You can get by without a pc.  There are hazards to that , but you can do it.  But you absolutely need an e mail address.
    You can get an e mail address for free from g mail, or whoever is providing your wifi is likely an isp that would be happy to give you an e mail address.
    You cannot get past step one in setting up the pad without an address, and so many of the features are tied to communication, you would miss half the world without it.

Maybe you are looking for