Where is my runtime.properties file on Windows 10?

Tags: #<Tag:0x00007fe7f6f82c90>

Platform Version: Platform 1.11.4 WAR (for Enterprise)

Question: I deployed the WAR file and during installation of OpenMRS it says that it can’t find my runtime properties file. in the “Troubleshooting Installation” Wiki page it says the runtime properties file should be in this directory: Under C:\Users\YOURUSERNAME\AppData\Roaming\OpenMRS I opened the Roaming folder and there is no OpenMRS folder and obviously no runtime properties file. What do I do? Thanks. P.s: I’m using windows 10

1 Like

@hossam, this bug was recently committed to the master, but I don’t think has been backported. See issue:

Not sure, why though. @dkayiwa any reason not to backport this?

Does that mean that for now, If I switch to windows 7, the problem will be fixed?

Thanks @sunbiz for the reminder. I have back ported it to 1.11.x and 1.12.x

Its a 1-line fix, so may be you can do that yourself and build. or you can set an environment variable with name = OPENMRS_APPLICATION_DATA_DIRECTORY with its value = directory where you want the folder like C:\Users\YOURUSERNAME\AppData\Roaming\OpenMRS

then remember to do a system restart, if you created a system env var. If you create a user env var, just restarting tomcat will find the folder/create the folder with the installation able to create runtime properties file

I appreciate that you think I can do that but I just knew OpenMRS existed 3 weeks ago and after that I knew MySQL and Tomcat existed then I had to learn some HTML language and database essentials from scratch.

I’m really sorry. I wish I could do it myself but I’m very overwhelmed as is. :slight_smile:

Did you try the environment variable?

no I don’t know what that is

Did you try out the standalone version? https://wiki.openmrs.org/display/docs/OpenMRS+Standalone

yes I did…I’ve been meaning to upgrade to enterprise to see how it’s gonna go when I implement OpenMRS in my facility

would you please kindly help me do that? hw do I set an environment variable?

What is the next step??

Google suggests:

I also tried Platform 1.9.10 war file. Deployed on tomcat 7 and i also got the same problems. Worked on Environment variables as suggested and restarted tomcat but no success. OpenMRS folder is not being created on AppData folder.

My Installation summary:

  • Windows 10, 64bit machine
  • Java 6 (Jre)
  • Tomcat 7
  • MySQL 5.1.45
  • Platform 1.9.10 war file.

What error and at what stage are you getting the error @jkemboi?

The installation is running on a former created “openmrs-runtime.properties” file open this link… C:\Application Data\OpenMRS Replace C: with the Local Disk Drive you are using. then delete the existing file

1 Like

try those versions: Tomcat 6.0.29 MySQL 5.5.46 JDK 6 I run openmrs on windows 10 as well and it works

@sunbiz I tried with environment variable (windows 10) . But not work.

Openmrs runs on this versions jdk 1.8., msql 5.7 and Tom cat 8. To access your run time properties
On Windows systems:

C:\Documents and Settings\YOURUSERNAME\Application Data\OpenMRS
C:\Windows\system32\config\systemprofile\Application Data\OpenMRS

On Mac OS X or Linux systems:

~/YOURUSERNAME/.OpenMRS
/usr/share/tomcatX/.OpenMRS