When typing

./strategoxt-2.0.0/share/strategoxt/bin/strj -i factorial.str

the following error is reported

Error: Unable to access jarfile /home/mtabikh/STRATEGO/strategoxt-2.0.0/share/strategoxt/bin/../share/strategoxt/strategoxt/strategoxt.jar

This seems to be an incorrect path.

A temporary fix is to create two symbolic links
(cd strategoxt-2.0.0/share/strategoxt ; ln -s . share)
(cd strategoxt-2.0.0/share/strategoxt/strategoxt ; ln -s . strategoxt)

Submitted on 19 November 2016 at 13:56

On 21 November 2016 at 13:10 hubert commented:

Hi,

After re-testing on a new machine, I confirm that the problem exists and
that it also affects "str", not only "strj".

Here is the log

   PATH="$PATH:$HOME/STRATEGO/strategoxt-2.0.0/share/strategoxt/bin"
   str test.str 
   Error: Unable to access jarfile $HOME/STRATEGO/strategoxt-2.0.0/share/strategoxt/bin/../share/strategoxt/strategoxt/strategoxt.jar

Fix #1 and re-test

   ( cd $HOME/STRATEGO/strategoxt-2.0.0/share/strategoxt ; ln -s . share )
    str test.str
    Error: Unable to access jarfile $HOME/STRATEGO/strategoxt-2.0.0/share/strategoxt/bin/../share/strategoxt/strategoxt/strategoxt.jar

Fix #2 and re-test

    ( cd $HOME/STRATEGO/strategoxt-2.0.0/share/strategoxt/strategoxt ; ln -s . strategoxt )
   str test.str
   result = d0

After two fixes, it works. So, the organization of directories in the tar file or the dependencies in strj seem buggy.

Log in to post comments