OpenMRS web app install error

Tags: #<Tag:0x00007f0f21f213e0>

hello everyone,

I had to move to the windows so I was trying to install openMRS on my local server and I got this build error while executing the code . Please can anyone helps me to solve this issue :disappointed_relieved:

@dkayiwa any idea why i’m getting this.

$ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] OpenMRS                                                            [pom]
[INFO] openmrs-tools                                                      [jar]
[INFO] openmrs-test                                                       [pom]
[INFO] openmrs-api                                                        [jar]
[INFO] openmrs-web                                                        [jar]
[INFO] openmrs-webapp                                                     [war]
[INFO]
[INFO] ------------------------< org.openmrs:openmrs >-------------------------
[INFO] Building OpenMRS 2.2.0-SNAPSHOT                                    [1/6]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ openmrs ---
[INFO] Deleting D:\Projects\openmrs-core\target
[INFO]
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: D:\Projects\openmrs-core
[INFO] Storing buildNumber: d0109e at timestamp: 1526744391692
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: D:\Projects\openmrs-core
[INFO] Storing buildScmBranch: UNKNOWN
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs ---
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:test-jar (default) @ openmrs ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: D:\Projects\openmrs-core\target\openmrs-2.2.0-SNAPSHOT-tests.jar
[INFO]
[INFO] --- license-maven-plugin:3.0:check (default) @ openmrs ---
[INFO] Checking licenses...
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ openmrs ---
[INFO] Installing D:\Projects\openmrs-core\pom.xml to C:\Users\Chathuranga\.m2\repository\org\openmrs\openmrs\2.2.0-SNAPSHOT\openmrs-2.2.0-SNAPSHOT.pom
[INFO] Installing D:\Projects\openmrs-core\target\openmrs-2.2.0-SNAPSHOT-tests.jar to C:\Users\Chathuranga\.m2\repository\org\openmrs\openmrs\2.2.0-SNAPSHOT\openmrs-2.2.0-SNAPSHOT-tests.jar
[INFO]
[INFO] ------------------< org.openmrs.tools:openmrs-tools >-------------------
[INFO] Building openmrs-tools 2.2.0-SNAPSHOT                              [2/6]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ openmrs-tools ---
[INFO] Deleting D:\Projects\openmrs-core\tools\target
[INFO]
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-tools ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-tools ---
[INFO]
[INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ openmrs-tools ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-tools ---
[INFO] Compiling 1 source file to D:\Projects\openmrs-core\tools\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[15,28] error: package com.sun.tools.doclets does not exist

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[20,37] error: cannot find symbol

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[29,1] error: method does not override or implement a method from a supertype

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[40,1] error: method does not override or implement a method from a supertype

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[51,1] error: method does not override or implement a method from a supertype

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[62,1] error: method does not override or implement a method from a supertype

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[73,1] error: method does not override or implement a method from a supertype

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[84,1] error: method does not override or implement a method from a supertype

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[96,1] error: method does not override or implement a method from a supertype

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[107,1] error: method does not override or implement a method from a supertype

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[119,2] error: cannot find symbol

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[119,14] error: cannot find symbol

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[132,1] error: method does not override or implement a method from a supertype

[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[143,1] error: method does not override or implement a method from a supertype

[INFO] 14 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] OpenMRS 2.2.0-SNAPSHOT ............................. SUCCESS [  3.209 s]
[INFO] openmrs-tools ...................................... FAILURE [  1.252 s]
[INFO] openmrs-test ....................................... SKIPPED
[INFO] openmrs-api ........................................ SKIPPED
[INFO] openmrs-web ........................................ SKIPPED
[INFO] openmrs-webapp 2.2.0-SNAPSHOT ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.837 s
[INFO] Finished at: 2018-05-19T21:09:54+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:compile (default-compile) on project openmrs-tools: Compilation failure: Compilation failure:
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[15,28] error: package com.sun.tools.doclets does not exist
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[20,37] error: cannot find symbol
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[29,1] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[40,1] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[51,1] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[62,1] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[73,1] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[84,1] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[96,1] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[107,1] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[119,2] error: cannot find symbol
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[119,14] error: cannot find symbol
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[132,1] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java:[143,1] error: method does not override or implement a method from a supertype
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :openmrs-tools

Hello @csmuthukuda

Try doing this git pull --rebase upstream master.

make sure you are connected then compile again.

or check for your \Projects\openmrs-core\tools\src\main\java\org\openmrs\tools\doclet\ShouldTaglet.java then compare it is same with this

1 Like

Hello @harisu,

I have re pulled the project from scratch and again compiled but still getting the same error::disappointed_relieved:

Guys I couldn’t solve this issue yet.Please anybody can help me because I need to run OpenMRS locally to do my GSOC tasks.

What does this return? mvn -v

thanks alot for replying @dkayiwa this is what I’m getting from the version check:

Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-25T01:19:05+05:30)
Maven home: C:\apache-maven-3.5.3
Java version: 10.0.1, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk-10.0.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

Java 10? We have not tried that yet. Use Java 8

1 Like

oops…I thought the instructions were to use the latest SDK.My bad then I’ll use java 8 and test it. Thanks you for your kind reply @dkayiwa

Do you mind fixing those instructions to help others? :slight_smile:

This suggestion was helpful for me, too, when I tried a manual install. I had assumed that Java 8 in the setup instructions was a minimum requirement, so I tried Java 10. Downgrading to 8 fixed the build error.

I got the same error while trying to install OpenMRS on a fresh mac laptop today, and its because my Java is version:

openjdk version “13” 2019-09-17

To now install Java 8, I went to this page: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

There is a pretty big warning there saying Java license has changed, and its ok for personal or development purpose, but not for others.

Question:

  1. Should I go ahead with Oracle JDK v8 now, or use a different provider?
  2. Is there plans to support Java 11 or 13 soon?

Thanks!

This site provides OpenJDK builds for Java 8. There a a project underway to update to enable more modern versions of Java, but it’s a pretty big lift.

3 Likes

Thanks @ibacher. I will try out openjdk 1.8.

With regards to the TRUNK-5689 epic (upgrade to Java), there don’t seem to be any notes in that ticket on the challenges towards upgrade. Is that a research that is pending? Should I spend some time trying to see if I can make openmrs-core run on Java 13, and see what possible workarounds exist?

#java #upgrade

@gsluthra There’s also another ticket which I explained at least some of what needs to be done. If you’re willing to take a plunge into that, it’d definitely be a good thing.

1 Like