Wednesday, April 11, 2018

BitBucket Environment Variable Change

BitBucket is based on Tomcat, but for version 5.6 and higher, its environment variable including Java Local Machine location is configured in new ways instead running tomcat.exe
Java Home variable is easy to configure. It is in System Properties - Advanced system settings - Environment Variables - System variables - JAVA_HOME. This variable will be used in installation of Bitbucket. However if Bitbucket is already installed, it will not be automatically used by existing Bitbucket services.


Their Java Virtual Machine location has to be manually specified.


Start with AtlassianBitbucketElasticsearch first.
  1. Copy the text string in "Path to executable" in Services console . It is "C:\path\elasticsearch-service-x64.exe //RS//AtlassianBitbucketElasticsearch".
  2. Paste it into Command Prompt window, edit it to: C:\path\elasticsearch-service-mgr.exe //ES//AtlassianBitbucketElasticsearch. Execute It.
  3. In the configuration windows, go to Java tab, edit the Java Virtual Machine box with correct path to jvm.dll, for example, c:\program files\java\jdk1.8.0_71\bin\server\jvm.dll
  4. Apply and OK. You can start the service now.

Second configure AtlassianBitbucket.

  1. Copy the text string in "Path to executable" in Services console . It is "C:\path\bserv64.exe //RS//AtlassianBitbucket".
  2. Paste it into Command Prompt window, edit it to: C:\path\bservmgr.exe //ES// AtlassianBitbucket . Execute it.
  3. In the configuration windows, go to Java tab, edit the Java Virtual Machine box with correct path to jvm.dll, for example, c:\program files\java\jdk1.8.0_71\bin\server\jvm.dll
  4. Apply and OK. You can start the service now.

No comments: