Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error in mata when invoking collect export

    I have been using collect export for a while now, but today my previous collect export command throws me a strange error. From the error tracing:

    Code:
        - if "`builder'" == "" {
        = if "" == "" {
        - sreturn local collection `"`name'"'
        = sreturn local collection `"T1"'
        - sreturn local filename `"`file'"'
        = sreturn local filename `"T1.xlsx"'
        - }
        - mata: (void) pathresolve(pwd(), `"`file'"', "path")
        = mata: (void) pathresolve(pwd(), `"T1.xlsx"', "path")
    Java installation not found
              _pathresolve():  9904  Stata returned error
               pathresolve():     -  function returned error
                     <istmt>:     -  function returned error
        ---------------------------------------------------------------------------------- end collect.collect__export ---
        exit
        }
      ---------------------------------------------------------------------------------------------------- end collect ---
    r(9904);
    
    end of do-file
    
    r(9904);
    So the command pathresolve() in mata is the problem here. It complains about me not having Java, but I have never had Java and I have never experienced any problem with collect export before.
    I have no idea of how to solve this.

  • #2
    So, that was solved by updating Stata

    Comment


    • #3
      While you may not have installed Java for your use, Stata makes use of Java internally and installs (and updates as needed) a copy of Java in (on macOS at least) a subdirectory of the directory containing the Stata application.

      Thank you for updating Statalist with the resolution of your problem.

      Comment

      Working...
      X