it's interesting. gz!
in my point of view, maybe java for linux uses the X gui engine. 
but it seems impossible!you'd better have a test as following:
copy your code into one windows computer, then run it.

解决方案 »

  1.   

    Yes. Java need XWindows environment for Graphics feature.
    You can avoid run tomcat in XWindow by one of the following approch:
    1. Access the X window on another machine. The DISPLAY variable can point to another make with XWindow running if one if available.
    2. Install and run xvfb (X virtual frame buffer). This basically simulate a XWindow without actually running one.
    3. Install and config PJA (Pure Java AWT) package. This is a free software and allows Java to add AWT without a XWindow.
    4. Use jdk 1.4 which supports headless AWT.
      

  2.   

    哎,大家都不能说中文吗?
    我用linux不好吗,这个问题就不能解决了吗?
    Use jdk 1.4 which supports headless AWT.

    什么意思呀?
    不明白,能仔细说一说吗?
      

  3.   

    Yes, you can use Linux.
    Actually, xvfb is a util program you can used for similate an X window.
    PJA is another one written in Java, you can download it freely.
    JDK 1.4 support headless AWT means you can operate graphics without XWindow in JDK1.4.
    You have these three options to solve your problem if you really do NOT want run tomcat under XWindows.
      

  4.   

    我用的就是j2sdk1.4.0
    那么,怎么样才能解决问题呢?
      

  5.   

    change(程序人生) (  ) 信誉:100 
    再说说,好吗?