Announcement

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

  • Java virtual machine is not available...

    Hi
    When I run the Stata updata I get this error:
    Running c:\Stata16\profile.do...
    Java virtual machine is not available at this time
    failed to set specific Python version.
    Unable to find shared library.
    r(601);
    I do not use Java directly, but I have begun to use Python from within Stata (via anaconda) and all seems to be working.
    Could somebody tell me if this is something I have not set up and if so, if possible, suggest where I may find some guide to how to do that.
    I know this is a typical generally useful statement but I have looked at Stata's paths and I think they are correct, but do not know if anything is missing.

    I have included these in my profile.do
    Code:
    adopath + "C:\anaconda3\"
    adopath + "C:\StataDoFiles\Python\" 
    adopath + "C:\STATA16\ado\base\py"
    adopath + "C:\STATA16\ado\personal\lasso\"
    
    set python_exec  "C:\anaconda3\python.exe", permanently
    set python_userpath "C:\anaconda3\LHL_PythonModules", permanently

    Thanks
    Laurence


  • #2
    I mean "typically generally un-useful"

    Comment


    • #3

      Try adding the following at the start of the profile.do
      Code:
      java initialize
      BTW adopath is for finding Stata .ado files. Thus, the following could probably be removed from you profile.do
      Code:
      adopath + "C:\anaconda3\"
      adopath + "C:\StataDoFiles\Python\"
      adopath + "C:\STATA16\ado\base\py"
      If this does noe help, contact Stata tech support and include the result of running
      Code:
      about
      java q
      python q

      Comment


      • #4
        Thanks Bjarte
        I added the line you suggested and got no error when I tried a manual update ("Do nothing; all files up to date") so now I'll just wait until Stata has an other update and see what happens. If a problem remains I will do as you suggest and try Stata tech support.
        Thanks again.
        Laurence

        Comment

        Working...
        X