# java.lang.NoClassDefFoundError: while running latest openmrs snapshot version

**URL:** https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688
**Category:** Development
**Created:** [June 27, 2018, 12:42pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688 "2018-06-27T12:42:00Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![wyclif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/wyclif/32/19607_2.png) [@wyclif](https://talk.openmrs.org/u/wyclif)
#### Post date: [July 3, 2018, 2:35pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/43 "2018-07-03T14:35:40Z")

</div>

Do you already have npm installed or not? You could install it manually.

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 3, 2018, 6:42pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/44 "2018-07-03T18:42:22Z")

</div>

it returns this

```
 C:\Users\Dell>node -v
    v8.11.3
```

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 3, 2018, 6:44pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/45 "2018-07-03T18:44:16Z")

</div>

@wyclif , i have installed npm but using the windows installer.

am not sure whether installed it “on” the project as the error log says , but any way i installed it using the installer

---

<div class="post-metadata">

### Author: ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)
#### Post date: [July 3, 2018, 7:12pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/46 "2018-07-03T19:12:46Z")

</div>

What does this command return? npm -v

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 3, 2018, 7:28pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/47 "2018-07-03T19:28:46Z")

</div>

```
C:\Users\Dell>node -v
v8.11.3

C:\Users\Dell>npm -v
5.6.0
```

---

<div class="post-metadata">

### Author: ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)
#### Post date: [July 3, 2018, 7:41pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/48 "2018-07-03T19:41:46Z")

</div>

Now compile the module again with this command: mvn clean install -e

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 6, 2018, 5:26am UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/49 "2018-07-06T05:26:21Z")

</div>

ok sir, let me do that

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 6, 2018, 5:44am UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/50 "2018-07-06T05:44:30Z")

</div>

@dkayiwa here the error

[https://pastebin.com/WvMGXxfe](https://pastebin.com/WvMGXxfe)

---

<div class="post-metadata">

### Author: ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)
#### Post date: [July 6, 2018, 12:54pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/51 "2018-07-06T12:54:16Z")

</div>

Are you running this from command line? Or from your IDE?

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 9, 2018, 3:12pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/52 "2018-07-09T15:12:20Z")

</div>

i run it from either way, previuosly i was running it from commandline, that last attempt was from ecclipse

---

<div class="post-metadata">

### Author: ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)
#### Post date: [July 9, 2018, 3:33pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/53 "2018-07-09T15:33:42Z")

</div>

Can i look at the log when you compile from command line?

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 12, 2018, 5:45am UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/54 "2018-07-12T05:45:53Z")

</div>

here is the error log from comand line

[https://hastebin.com/ihafefebok.rb](https://hastebin.com/ihafefebok.rb).

wen i read about installing npm and node. there are two types of installations. 1) a global installation  
2) a local installtion to a project. wen i try to read the log , itsims it recqires a local instaltion ie `"(install node and npm) on project coreapps-omod:"`

so how do i make a local installtion of npm and node to the coreapps-omod project. coz globallyi have installed npm and node

@dkayiwa@wyclif

---

<div class="post-metadata">

### Author: ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)
#### Post date: [July 12, 2018, 7:00am UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/55 "2018-07-12T07:00:15Z")

</div>

```
Caused by: java.net.UnknownHostException: proxy.host.net

```

Are you behind a proxy?

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 12, 2018, 8:33am UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/56 "2018-07-12T08:33:53Z")

</div>

well, once , i was behind a proxy. but i remeber i tried to undo it…

here is my mvn settings file

```
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <proxies>
    <proxy>
      <protocol></protocol>
      <username></username>
      <password></password>
      <port>80</port>
      <host>proxy.host.net</host>
    </proxy>
  </proxies>
  <servers>
    <server>
      <username>${env.BINTRAY_USER}</username>
      <password>${env.BINTRAY_API_KEY}</password>
      <id>bintray-sdk</id>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <mirrorOf>central</mirrorOf>
      <url>http://mirrors.ibiblio.org/maven2</url>
      <id>ibiblio.org</id>
    </mirror>
  </mirrors>
  <profiles>
    <profile>
      <properties>
        <archetypeRepository>http://mavenrepo.openmrs.org/nexus/content/repositories/public</archetypeRepository>
        <archetypeCatalog>http://mavenrepo.openmrs.org/nexus/content/repositories/public/archetype-catalog.xml</archetypeCatalog>
      </properties>
      <repositories>
        <repository>
          <id>openmrs-repo</id>
          <name>OpenMRS Nexus Repository</name>
          <url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
        </repository>
        <repository>
          <id>openmrs-repo-thirdparty</id>
          <name>OpenMRS Thirdparty Nexus Repository</name>
          <url>http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty</url>
        </repository>
        <repository>
          <id>openmrs-bintray-repo</id>
          <name>OpeMRS Maven Bintray Repository</name>
          <url>https://dl.bintray.com/openmrs/maven/</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <id>openmrs-repo</id>
          <name>OpenMRS Nexus Repository</name>
          <url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
        </pluginRepository>
        <pluginRepository>
          <id>openmrs-bintray-repo</id>
          <name>OpeMRS Maven Bintray Repository</name>
          <url>https://dl.bintray.com/openmrs/maven/</url>
        </pluginRepository>
      </pluginRepositories>
      <id>openmrs</id>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>openmrs</activeProfile>
  </activeProfiles>
  <pluginGroups>
    <pluginGroup>org.openmrs.maven.plugins</pluginGroup>
    <pluginGroup>org.grails</pluginGroup>
  </pluginGroups>
</settings>
```

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 12, 2018, 8:35am UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/57 "2018-07-12T08:35:16Z")

</div>

i think that wud be the default seetings file

---

<div class="post-metadata">

### Author: ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)
#### Post date: [July 12, 2018, 8:57am UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/58 "2018-07-12T08:57:14Z")

</div>

Can you remove the proxies node and try again?

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 12, 2018, 9:00am UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/59 "2018-07-12T09:00:12Z")

</div>

do u mean deleteing out the whole `<proxies>` element?

---

<div class="post-metadata">

### Author: ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)
#### Post date: [July 12, 2018, 9:24am UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/60 "2018-07-12T09:24:59Z")

</div>

Yes that is what i mean.

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 12, 2018, 8:36pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/61 "2018-07-12T20:36:48Z")

</div>

wen i removed the proxy element , it built succesfully

---

<div class="post-metadata">

### Author: ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)
#### Post date: [July 12, 2018, 9:25pm UTC](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688/62 "2018-07-12T21:25:37Z")

</div>

wen i installed the coreapps, now al the reff apps have started succesfully on platform 2.2 snapshot. so this issue is now solved at last. thx sir @dkayiwa

[Previous page](https://talk.openmrs.org/t/java-lang-noclassdeffounderror-while-running-latest-openmrs-snapshot-version/18688.md?page=2)
