Menu

#69 Fails to run without an X connection

open
nobody
None
5
2012-04-20
2012-04-20
Anonymous
No

Steps to reproduce:

1. unset DISPLAY
2. java -jar ProjectX.jar -demux

Tested this on 0.90.4, 0.91, and a fresh CVS copy.

Console output:
[...snipped a lot...]
[-demux, -tom2p, -topva, -tovdr, -tots, -filter] ..action types

Loading Basic Classes...
Multicolor OFF / switches 00000000

(.:3867): Gtk-WARNING **: cannot open display:

$ echo $?
1

Expected:
[snip]
Loading Basic Classes...
Multicolor OFF / switches 00000000
Reading CLI Switches...
Preparing GUI (if enabled)...
Check Commons-Net library access...
Loading AC3 frames...
Error: No Collection to Process ...

Discussion

  • Anonymous

    Anonymous - 2012-04-20

    The environment, in case it matters:

    java.version 1.5.0
    java.vendor Free Software Foundation, Inc.
    java.home //usr/lib/jvm/java-1.5.0-gcj-4.4/jre
    java.vm.version 4.4.5
    java.vm.vendor Free Software Foundation, Inc.
    java.vm.name GNU libgcj
    java.class.vers 49.0
    java.class.path ProjectX.jar
    os.name Linux
    os.arch i386
    os.version 2.6.32.59

     

    Last edit: Anonymous 2014-05-09
  • Matthias Mueller

    read http://forum.dvbtechnics.info/showthread.php?t=2057
    try java -Djava.awt.headless=true -jar ProjectX.jar

     
  • Anonymous

    Anonymous - 2012-04-20

    That does not seem to work with the gnu version of java. I'll have to test with openjdk.

     
  • Anonymous

    Anonymous - 2012-04-20

    Apparently, the headless version of the GNU JRE (gcj-4.4-jre-headless) doesn't work either, since it doesn't contain java.awt.* which the code requires =/

     

Log in to post a comment.