<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    BTW - It should be possible to invoke Kepler without a display. 
    This has been done in the past and is covered elsewhere<br>
    <br>
    However, when I need to invoke Ptolemy with a display on a headless
    machine, I use Xvfb, which is a virtual framebuffer.  <br>
    By starting up Xvfb and then setting the DISPLAY, I'm able to run
    350+ demos and export the results to HTML.<br>
    <br>
    1. Install Xvfb on your
    machine                                                                       
    <br>
        yum install
    Xvfb                                                                                   
    <br>
    2. Start up the
    display                                                                               
    <br>
       Xvfb :1 -screen 0 1024x768x24
    &                                                                    
    <br>
       export
    DISPLAY=localhost:1.0                                                                       
    <br>
    <br>
    I've done this under Linux and Solaris.<br>
    <br>
    _Christopher<br>
    <br>
    On 4/26/12 1:43 PM, Ramón Pérez Pérez wrote:
    <blockquote
      cite="mid:E8FADDFE-3479-4440-B27C-9DDD7F1F560F@gmail.com"
      type="cite">
      <div>
        <div>Hi,</div>
        <div><br>
        </div>
        <div>I think that it is possible that there are new modules to
          download for your version, and for this reason the execution
          (too in command line) tries to launch the X11. We changed the
          configuration.xml in
          kepler_2.2/module-manager-2.2.0/resources/configurations as
          follow:</div>
        <div><br>
        </div>
        <div><?xml version="1.0"?></div>
        <div><config></div>
        <div><br>
        </div>
        <div>    <releaseLocation></div>
        <div>        <a moz-do-not-send="true"
            href="https://code.kepler-project.org/code/kepler/releases/released/">https://code.kepler-project.org/code/kepler/releases/released/</a></div>
        <div>    </releaseLocation></div>
        <div><br>
        </div>
        <div>   
          <check-for-patches>false</check-for-patches>    </div>
        <div><br>
        </div>
        <div></config></div>
        <div><br>
        </div>
        <div>Best,</div>
        <div>Ramón</div>
      </div>
      <div><br>
        <div apple-content-edited="true">
          <div>--<span class="Apple-converted-space"> </span><br>
            <div>Ramón Pérez Pérez<br>
              Centro Andaluz de Medio Ambiente, Universidad de Granada -
              Junta de Andalucía<br>
              Avda. del Mediterráneo S/N. 18006. Granada. España<br>
              email:<span class="Apple-converted-space"> </span><a
                moz-do-not-send="true" href="mailto:ramon@ugr.es"
                target="_blank">ramon@ugr.es</a><span
                class="Apple-converted-space"> </span><br>
              Blog:<span class="Apple-converted-space"> </span><a
                moz-do-not-send="true"
                href="http://rpperez.blogspot.com/" target="_blank">http://rpperez.blogspot.com</a><br>
              Fax: +34 958137246<br>
              Tel: +34 958241000 (ext. 31202)</div>
          </div>
        </div>
        <br>
        <div>
          <div>El 26/04/2012, a las 21:22, Matt Jones escribió:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <div class="gmail_extra">Albert -- </div>
            <div class="gmail_extra"><br>
            </div>
            <div class="gmail_extra">Did you try running the command
              line shell with the -nogui and -runwf arguments? Something
              like:</div>
            <div class="gmail_extra">
              <br>
            </div>
            <div class="gmail_extra">kepler.sh -nogui -runkar
              /home/mbj/myworkflow.kar</div>
            <div class="gmail_extra"><br>
            </div>
            <div class="gmail_extra">The location of kepler.sh will vary
              by platform, but if you get it on your path, then you
              should be good to go.  More details are here:</div>
            <div class="gmail_extra"><br>
            </div>
            <div class="gmail_extra"><a moz-do-not-send="true"
href="https://kepler-project.org/developers/reference/executing-kepler-from-the-command-line">https://kepler-project.org/developers/reference/executing-kepler-from-the-command-line</a></div>
            <div class="gmail_extra"><br>
            </div>
            <div class="gmail_extra">Matt<br>
              <br>
              <div class="gmail_quote">On Thu, Apr 26, 2012 at 10:27 AM,
                Albert Vilà Picas <span dir="ltr"><<a
                    moz-do-not-send="true"
                    href="mailto:albertvilapicas@gmail.com"
                    target="_blank">albertvilapicas@gmail.com</a>></span>
                wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
                  all,
                  <div><br>
                  </div>
                  <div>We're trying to execute Kepler from command line
                    on a Server without -X fordwarding.</div>
                  <div>Running kar workflows without display actors we
                    have a ptolemy.kernel.util.IllegalActionException:</div>
                  <div><br>
                  </div>
                  <div>
                    <div>     [null] Because:</div>
                    <div>     [null] Could not initialize class
                      sun.awt.X11GraphicsEnvironment</div>
                    <div>     [null] <span style="white-space:pre-wrap">
                      </span>at
                      ptolemy.actor.Manager.execute(Manager.java:485)</div>
                    <div>     [null] <span style="white-space:pre-wrap">
                      </span>at
                      ptolemy.actor.Manager.run(Manager.java:1159)</div>
                    <div>     [null] <span style="white-space:pre-wrap">
                      </span>at
                      ptolemy.actor.Manager$PtolemyRunThread.run(Manager.java:1689)</div>
                    <div>     [null] Caused by:
                      java.lang.NoClassDefFoundError: Could not
                      initialize class sun.awt.X11GraphicsEnvironment</div>
                  </div>
                  <div><br>
                  </div>
                  <div>1. Then, there is a special Kepler for a
                    Server-side?</div>
                  <div>2. Can we disable the ptolemy java gui without
                    JAVAFLAGS or the -Djava.awt.headless=true for
                    headless gui exec?</div>
                  <div>3. Maybe only redirecting the X11 DISPLAY to a
                    null or fake xhost we can solve it?</div>
                  <div><br>
                  </div>
                  <div>Thanks again,</div>
                  <div>--albert</div>
                  <br>
                  _______________________________________________<br>
                  Kepler-users mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users"
                    target="_blank">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a><br>
                  <br>
                </blockquote>
              </div>
              <br>
            </div>
            _______________________________________________<br>
            Kepler-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kepler-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Christopher Brooks, PMP                       University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841                                (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670 </pre>
  </body>
</html>