Thanks @dkayiwa
@nimodi i have just checked the documentation and i have not been able to locate the exact section. Do you mind pointing me to that section which says that code should be checked out from subversion?
Section I point out is given here.I attach the screen shot also. Using Maven in Netbeans - Documentation - OpenMRS Wiki.
Oh i see! Since you already have netbeans installed, do you mind replacing those screenshots with the ones that use git?
Just in case you find this useful: https://wiki.openmrs.org/display/docs/Using+Git
Yes, It is possible.But under git IDE integration, it only mentioned configuring steps for eclipse not net beans. Therefore I thought that I use command line for check out the code.
I also find command line easier. So go ahead and use it.
I commented on the “OpenMRS CoreTRUNK-5033” about my issue.Can you reply on that ticket?
Responded!
I have a question about my issue.Can you reply on that ticket(OpenMRS CoreTRUNK-5033)?
I followed the all the steps in “Developer How-To Setup And Use IntelliJ - Documentation - OpenMRS Wiki” to configure intellij. But I did not get openMRS as livetemplates like given below. My IDE configured like below.
What is the reason for that?How to fix it? I colmpiled the code in intellij without fixing that issue.But it still worked. The problem is run buttons are hidden from IDE like follows. Can’t the program run because of "openMRS live templates are not available " or due to another reason?@nimodi the live templates are simply a set of pre-written code snippets that can help you to speed up your development. You know how we can type sout and press tab to get “System.out.println()” ?
These are the same. They are written specially for OpenMRS developers.
Being simple code snippets, the live templates do not affect running the program. Personally, I run the OpenMRS server with the SDK and set whatever modules I am developing as “watched”.
But for building the standalone server, I’d suggest doing a maven clean install and running the built war or jar file on a Tomcat server.
Thanks @merovingienne for responding me.I also tried to run the code using “mvn jetty:run”. But it starts running Jetty server but does not serve up my project on http://localhost:8080/.I have already installed tomcat server but I can not understand how to run the code using tomcatserver.
You are working on the OpenMRS core repo yes? From https://github.com/openmrs/openmrs-core?
Yes @merovingienne. I am working on OpenMRS CoreTRUNK-5033
Okay, depending on your OS, the instructions for deploying the web app to Tomcat might change a bit. I didn’t have much luck with Jetty myself so can’t really help you with that.
Have you started Tomcat and tested that it works? (start Tomcat, go to localhost:8080 or the port you’ve configured?)
I will check and see.
I started tomcat server and type " http://localhost:8080/openmrs". But it still did n’t work. Therefore I tried using eclipse. I did step by step given as “https://wiki.openmrs.org/display/docs/Installation+for+Developers+On+Windows” It says install jetty from “http://run-jetty-run.googlecode.com/svn/trunk/updatesite” to run code.But that download link is not found.Can you upload the updated link to install jetty.
What do you mean by “it still did not work”? Do you mean getting an error? If yes, what error message?
It says the requested resource is not available.I attached a screen shot for more details.
@nimodi did you mvn clean package the Core project, and then copy paste the packaged war file to the webapps folder of Tomcat?