oh ya..saya juga sudah mencoba nambahin ini...
java -Djava.awt.headless=true

tp muncul message di bawah...sepertinya argumentnya tdk dikenal..

kira2 kenapa ya??




Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -d32          use a 32-bit data model if available

    -d64          use a 64-bit data model if available
    -server       to select the "server" VM
                  The default VM is server.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see
java.lang.instrument


2009/12/2 HERIANTO <[email protected]>

> ada ide lain ga ?
>
> 2009/12/2 HERIANTO <[email protected]>
>
> thx, saya dah buat kok..cuma memang masih ga mo jalan..
>>
>> saya pake tomcat...buatnya di file catalina.sh kan ya ?
>> saya nambahin sperti ini..benar ga ?
>> JAVA_OPTS='-Djava.awt.headless=true'
>>
>> Regards,
>> Herianto
>>
>> 2009/12/1 Thomas Edwin Santosa <[email protected]>
>>
>>
>>>
>>> Halo,
>>>
>>> Dibuat headless saja.
>>>
>>> http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/
>>>
>>> java -Djava.awt.headless=true
>>>
>>> HERIANTO wrote:
>>> >
>>> >
>>> > All, minta bantuannya donk..
>>> >
>>> > jadi saya ada bikin report dgn jasper report...nah programnya skrg
>>> > jalan di windows lancar.., di linux ada yg bisa jalan dan ada yg ga
>>> > bisa jalan...
>>> > nah yg ga bs jalan muncul errornya..
>>> >
>>> > # java.lang.InternalError: Can't connect to X11 window server using
>>> ':0.0' as the value of the DISPLAY variable.
>>> > # sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
>>> > #
>>> sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
>>> > # java.lang.Class.forName0(Native Method)
>>> > # java.lang.Class.forName(Class.java:141)
>>> > #
>>> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
>>>
>>> >
>>> >
>>> > setelah saya googloing
>>> > (
>>> http://www.coderanch.com/t/62480/Other-Open-Source-Projects/Jasper-Report-t-connect-X
>>> > ) , kesimpulan yg saya dapat adalah ada kemungkinan di linux yg tidak
>>> > jalan tuh tidak ada x11...nah yg ingin saya tanyakan adalah bagaimana
>>> > cara mengetahui di linux tersebut sudah di install x11 atao blm ?
>>> >
>>> > trus kalo misalnya blm..kira2 gmn installnya ya...mksdnya install x11
>>> > nya mesti dari cd linuxnya ato bisa download x11 nya ?
>>> >
>>> > ato mungkin ada solusi lain?
>>>
>>> --
>>> Salam/Regards,
>>> Thomas Edwin Santosa
>>>
>>> http://facebook.com/ThomasEdwin
>>>
>>> http://jaringbuku.com
>>> http://facebook.com/JaringBuku
>>> Kaset, MP3 dan VCD rohani dalam jangkauan Anda
>>>
>>>  
>>>
>>
>>
>>
>> --
>> Thanks
>> Herianto
>>
>
>
>
> --
> Thanks
> Herianto
>



-- 
Thanks
Herianto

Kirim email ke