Monthly Archives: February 2014

Installing openMRS Tools

This week I worked on installing the openMRS SDK along with cloning building and running the openMRS-core[0] codebase this week. To do this I needed to install mySQL and maven as prerequisites for the project.

Installing mySQL and maven were pretty simple thanks to the package installer homebrew[1]. If you are using a Mac and haven’t heard of homebrew i suggest you look into it. It makes installing maven as easy as: “brew install maven”. There is also a homebrew package for mySQL so I installed mySQL  the same way. Once I had the two installed I added the variables M2_HOME and MYSQL_HOME to my .bash_profile to remember where they are.

I had issues with my Terminal only recognizing java 1.6 even though when I did a check through the Java website it said that I had version 7. What I had to do was go to the Oracle website and download and install the Java 1.7 JDK. Once I did that the terminal reflected the correct version.

After this I went to github and forked the openMRS-Core [0] then cloned it to my local. Once in my local I changed to the repository and ran “mvn clean install” this built the code to the ‘target’ directory in the project.

Next was to run the project. I ran the “mvn jetty:run” command, then went to the localhost url, and did the initial setup.

After doing the initial setup, which created the DB, I am no longer able to successfully do a “mvn jetty:run” I will have to look into this more this week.

From the blog A blog about things by TRStaake and used with permission of the author. All other rights reserved by the author.

Setting up openMRS!

Setting up openMRS was not to difficult. I first attempted to use the Windows Installer to install openMRS … and failed. I then continued to read more of the documentation on OpenMRS and installed it by obtaining maven and mysql then using the pom.xml files to build and get a running instance of openMRS. I have experience using maven in the past so overall the setup and installation of openMRS was quite easy

From the blog tbruceblog » cs401 by tbruce731 and used with permission of the author. All other rights reserved by the author.

Week 4

We didn’t meet this week due to the president day holiday. However, we were still working on assignments from the previous week and doing the set of the development environment on our systems. There  were a few problems going through the set up process because the instructions wasn’t too clear to follow. At some point, we had to install git hub first before installing the OpenMRS but the instructions did go into detail about that. The is still a few issues but we still doing the installations.

From the blog ~~~ACordor Blog~~~~ » CS@Worcester by juwee05 and used with permission of the author. All other rights reserved by the author.

Week 4: 17 February 2014

[OpenMRS Developers Setup]

From the get go I was having installation troubles for the SDK. I followed the instructions located here: https://wiki.openmrs.org/display/docs/OpenMRS+SDK#OpenMRSSDK-StepByStep

I first tried to get it successfully installed on my laptop to no avail. I installed Java 1.7.0.51 JDK fine along with the JRE. I installed the OpenMRS installer for Windows version 1.0.6 fine. Below is the code snippet from my cmd window:

C:\Users\Jesse\Desktop\OMRS>omrs-version

OMRS Version: “1.0.5”
OMRS Home: C:\Program Files (x86)\omrssdk-1.0.6
ORMS Scripts: C:\Program Files (x86)\omrssdk-1.0.6\bin
OMRS Maven Home: C:\Program Files (x86)\omrssdk-1.0.6\apache-maven
——–
Executing: “C:\Program Files (x86)\omrssdk-1.0.6\apache-maven\bin\mvn.bat” –ver
sion
Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-27 22:15:3
2-0400)
Maven home: C:\Program Files (x86)\omrssdk-1.0.6\apache-maven\bin\..
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: C:\Program Files (x86)\Java\jdk1.7.0_51\jre
Default locale: en_US, platform encoding: Cp1252
OS name: “windows 8″, version: “6.2”, arch: “x86″, family: “windows”
C:\Users\Jesse\Desktop\OMRS>

 

After I knew I had the correct JDK and OMRS version installed correctly, I tried to create the module. It went through its downloads of files and came up with no errors after I left all default values. No matter what I tried at this point, I could not get the command “omrs-run” to see the configuration. I was sure I forked the correct project to GitHub correctly and I verified with other students but we could not figure out why it was not working.

Duplicating the whole process again on my desktop yielded the same results. I will have to investigate further as to why the module/configuration is not being seen and update upon further info.

 

Sources:

https://wiki.openmrs.org/display/docs/OpenMRS+SDK#OpenMRSSDK-StepByStep

https://wiki.openmrs.org/display/docs/Using+Git#UsingGit-InstallGitonyourcomputer

From the blog slykrysis » cs-wsu by slykrysis and used with permission of the author. All other rights reserved by the author.

Week 3: 10 February 2014

[Wiki Editing]

This week’s learning on editing the Wiki page was actually very helpful and easy to pick up on. I can see why wikis are being more and more common for compiling information or for use as knowledge bases. I began by going to to the CS wiki and logging into my account. I wrote a brief description about me and then added a link to this page under the Students page. Editing in a wiki was incredibly easy to do and straight forward and I had no problem with it.

The Issue Tracker Activity was also very informative on how to use formatting and editing for a wiki. As I proceeded through the activity, I learned from the few mistakes I made in formatting so my responses were easier to read, but in the end I got the hang of it.

 

[Issue Tracker Activity/Three Issues]

Viewing the info on the OpenMRS Issue Tracker was also sorted out very well and made it easy to read and follow how tickets and bugs were logged. The filters make sense on how one would want to search for a particular type of issue. I was able to easily find all of the necessary field and type information, but I did have trouble at first finding the summary of the project. I was looking for a description or paragraph summary but did not realize it was right on the front page shown with data.

After perusing the list on all the tickets at a glance, I ended up choosing three according to my comfort level (programming level as well as overall knowledge of the project so far). I couldn’t think of any other ways the system might have been improved upon, but there certainly are ways. To me as an outsider to the core of the project, it seemed to suffice very well for giving someone cursory information.

 

[Git Videos and Tutorials]

Following the Git tutorial was very useful and gave me a tool that I can come back to in case I need to remember certain commands without having to look them up without example uses. I  completed it after about 10-15 minutes, but I still had some general confusion about what the syntax for some of the commands were (I do not feel at all comfortable operating in a Linux/Unix environment, even after my classes here at WSU). As they came up in the example terminal, I did somewhat look up what they meant but did not come up with anything really concrete as a definition or further examples of how to use them.

The Git videos were also a good reference to go alongside with while watching on my desktop and following along on my laptop. I have never used GitHub before this class (unfortunate we are learning it so late) so a further explanation with maps and diagrams was helpful. One thing I did notice though was that even though these were tutorial videos on using Git and what it is, it still was not as detailed as I would have wanted it to be for some areas.

From the blog slykrysis » cs-wsu by slykrysis and used with permission of the author. All other rights reserved by the author.

Week 2 readign assignment

OPenMRS is very helpfully. specially, it is very good for who start to do the software development, and it good for who want to share their experience or exchange their knowledge about software.

There are a lot of thing you can gain from OpenMRS:

1.Understand how the OpenMRS community interacts and communicates. 

2. Have a development environment setup

3. Understand the basic of the OpenMRS system

4..Be able to troubleshoot OpenMRS with the resource in the  community

5..Know where to go to get your started with  your fist contributions to the community

 

 

 

 

From the blog herangoc » cs@worcester by emtrieu and used with permission of the author. All other rights reserved by the author.

Week 3

Editing a wiki is easy I tend to edit gaming wikis. The issue tracker was odd to run thought at first as things a old a a few months could quickly pop up on you as well as not knowing if the issue is truly an issue anymore or was forgotten when finished.

From the blog Computer Science » CS401 by Renowneddragoon and used with permission of the author. All other rights reserved by the author.

OpenMRS Set Up

Setting up the system has been difficult. My laptop is running Windows 8.1, so that’s the first challenge I have.

First, when I tried to check which version of java I had installed, I got this output: “ ‘javac’ is not recognized as an internal or external command, operable program or batch file”. So, I decided to check: Program > Java > About > Version 7 (1.7.0-b147). The Developers Guide instructs to check the version as follow “javac –version” on the command line, but instead I entered “java -version” and it worked!

Then, I got stuck in the installation step. I downloaded and run the OpenMRS SDK installer. The wizard setup was completed without outputting any error. Once again, in order to get the output in the console I had to change “omrs-version” to uppercase, “OMRS-version”, otherwise the result would not have succeeded.

This time, the prompt line gave me an error: “JAVA_HOME not found in your environment. Please set the JAVA_HOME variable in your environment to match the location of your Java installation”

If you are running into the same problem, here is the solution:

  1. Locate the Java Runtime Environment (JRE) Installation Directory
    1.  If you didn’t change the installation path for the Java Runtime Environment during installation, it will be in a directory under C:\Program Files\Java. Using Explorer, open the directory C:\Program Files\Java.
    2.  Inside that path will be one or more subdirectories such as C:\Program          Files\Java\jre7
  2. Set the JAVA_HOME Variable
    1. Right-click the My Computer icon on your desktop and select Properties.
    2. Click the Advanced tab.
    3. Click the Environment Variables button.
      1. Under System Variables, click New.
      2. Enter the variable name as JAVA_HOME.
      3. Enter the variable value as the installation path for the Java Development Kit. (e.g.C:\Program Files\Java\jre7)
    4. Click OK.
    5. Click Apply Changes.

Close any command window which was open before you made these changes, and open a new command window. If the changes do not take effect even after reopening the command window, restart Windows.

After fixing the JAVA_HOME, I checked if the SDK is working properly. The console output looks similar as the one on the Developers Guide.

Now the last step, running OpenMRS locally, it starts to create the directory, but nothing happens. It never launches the web server to be tested. If I click the link, the web page loads blank. I’m still trying to figure out what I missed!

From the blog Naty Zelaya » CS@Worcester by natyzelaya and used with permission of the author. All other rights reserved by the author.

Week 4

The install went through for me almost without a hitch, i ran the OpenMRS SDK like it said which installed without a problem. After it installed i tried the omrs-version command in the command prompt to check if it had installed successfully. At first it said “Error: JAVA_HOME not found in your environment. Please set the JAVA_HOME variable in your environment to match the location of your Java Installation” after a quick Google search i did the command “set JAVA_HOME=c:\Program Files\Java\jdk1.7.0_45″ i did the omrs-version command again and everything seemed to be in working order like it showed in the developers guide. Besides that i had no other problems with the installation.

From the blog Dhimitris CS Blog » CS401 by dnatsis and used with permission of the author. All other rights reserved by the author.

Week 3

The wiki editing stuff that we did this week all seemed to be pretty straight forward, its not the hardest thing in the world to edit a wiki but i could see it getting annoying at times. The issue tracker activity was a good way to get a bit more familiar with the open mrs issue tracker. the definitions were easy to figure out just by reading some of the description on the site and just by browsing the site. Although the definitions were easy to find it forced you to use all the parts of the issue tracker which is a good way to get really comfortable with it. The GIT tutorials and homework was much like what we had done in class, it just shows how to use GIT and get more comfortable with it since it is a tool we will be using a lot. They were alright for the most part nothing ground breaking but good references if you get stuck somewhere which did seem to happen to me a few times.

I picked 3 introductory tickets that to me seemed like they could be accomplished, i tried to pick tickets that were not too hard since part of the problem at first is gonna be getting comfortable with the whole process that comes along with fixing an issue.

 

From the blog Dhimitris CS Blog » CS401 by dnatsis and used with permission of the author. All other rights reserved by the author.