ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Fwd: Fwd: IBM Wordcloud with the Filter Module
Date: Thu, 14 Mar 2019 20:56:54 -0400 (EDT)	[thread overview]
Message-ID: <nycvar.YAK.7.76.44.1903142052090.22034@nqv-guvaxcnq> (raw)
In-Reply-To: <CAPtmdbOC2W39-1bXWefraU9QdgKapXnqy7Q-nxUZsqbDJALcYQ@mail.gmail.com>

On Fri, 15 Mar 2019, Jeroen wrote:

> I have installed portable java8 in /context/java, so paths will not be
> needed when using absolute paths with the commands in these files. When I
> execute the following batch file sample2.bat with a command on a single
> line, it will create the sample2.png wordcould file as expected in the
> /context/documents folder:
>
> /context/java/bin/java -jar /context/wordcloud/ibm-word-cloud.jar -c
> /context/wordcloud/examples/configuration.txt -w 800 -h 600 <
> /context/wordcloud/examples/hamlet.txt > /context/documents/sample2.png
>
> I now use this test2.tex file with filter with the defineexternalfilter
> command on one line without crlf or spaces:
>
> fonts           > 'fallback modern-designsize rm 12pt' is loaded
> t-filter        > current filter : wordcloud
> t-filter        > base file : test2-temp-wordcloud-0
> t-filter        > input file : test2-temp-wordcloud-0.tmp
> t-filter        > output file : test2-temp-wordcloud-0.png
> t-filter        > command : /context/java/bin/java -jar
> /context/wordcloud/ibm-word-cloud.jar -c
> /context/wordcloud/examples/configuration.txt -w 800 -h 600 -o
> test2-temp-wordcloud-0.png -i test2-temp-wordcloud-0.tmp
> t-filter        > state :
> t-filter        > cached output file 'test2-temp-wordcloud-0.png' missing.
> Rerunning filter
> t-filter        > file 'test2-temp-wordcloud-0.png' cannot be found
> t-filter        > current filter : wordcloud
> t-filter        > base file : test2-temp-wordcloud-0
> t-filter        > input file : test2-temp-wordcloud-0.tmp
> t-filter        > output file : test2-temp-wordcloud-0.png

Everything looks okay here, so I am not sure what is going wrong. Can you 
try if you can run other java programs, perhaps even setting

\usemodule[filter]
\traceexternalfilters
\defineexternalfilter[JAVA][filtercommand=java]

\starttext
\startJAVA
This is a test
\stopJAVA
\stoptext

and check the console output to see if you see messages that java is 
running (you should see the standard message about how to use java). If 
java is being called correctly, then the error is on the java end of 
things and I don't know how to debug that.

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2019-03-15  0:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-11 12:52 Jeroen
2019-03-11 16:54 ` Aditya Mahajan
2019-03-11 20:41   ` Jeroen
2019-03-12 14:41     ` Aditya Mahajan
2019-03-14 14:08       ` Fwd: " Jeroen
2019-03-14 15:32         ` Aditya Mahajan
2019-03-14 23:16           ` Fwd: " Jeroen
2019-03-15  0:56             ` Aditya Mahajan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nycvar.YAK.7.76.44.1903142052090.22034@nqv-guvaxcnq \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).