OpenNMS compiled, packaged and started under Windows

Source: Internet
Author: User
Tags opennms

1.Download OPENNMS Latest Source code

2.Download latest Java JDK and install it. Set java_home Path

3.Download Postgres and install it. Set the path in environment variable

4.Download Perl and install it. Set Path in environment variable

5.Unzip the OpenNMS source code and put it your local server
(EX:D:\WORKSPACE\OPENNMS\SOURCE\OPENNMS)

6.Set the Mavan bin path in environment variable
(Ex:d:\workspace\opennms\source\opennms\maven\bin)

7.Enter into d:\workspace\opennms\source\opennms> path

8.Clean your project
(Ex:d:\workspace\opennms\source\opennms>perl clean.pl)

9.Compile your OPENNMS Project
(Ex:d:\workspace\opennms\source\opennms>perl compile.pl)

10.Assemple your or build your project
(Ex:d:\workspace\opennms\source\opennms>perl assemple.pl-dopennms.home=d:\workspace\opennms\build)

11.Copy your build file opennms-1.13.0-snapshot.tar.gz from D:\Workspace\OpenNMS\Source\opennms\target folder

12.Put it your build OpenNMS home location and unzip it
(Ex:d:\workspace\opennms\build)

13.Now your folder structure in build path should is the folllowing Hira
Build
-Bin
-etc
- ...

14.Create Install.bat file with the following content

SET Opennms_home=d:/workspace/opennms/build
SET Dbname=opennms
SET dburl=jdbc:postgresql://localhost:5432/
SET etcdir=%opennms_home%/etc
SET Servletdir=%opennms_home%/webapps/opennms

"C:\Program Files\java\jdk1.6.0_20\bin\java"-xmx512m "-dopennms.home=%opennms_home%" "-dinstall.dir=%opennms_home % ""-dinstall.database.name=%dbname% ""-dinstall.database.url=%dburl% ""-dinstall.etc.dir=%etcdir% ""- dinstall.servlet.dir=%servletdir% "-classpath"%opennms_home%/lib/opennms_bootstrap.jar;%o Pennms_home%/lib/opennms_install.jar "Org.opennms.install.Installer%*


15.Download Jicmp.dll and Jicmp6.dll file and put it in your Java Bin folder
(Ex:c:\program Files\java\jdk1.6.0_20\bin)

16.Change your postgres password in D:\Workspace\OpenNMS\Build\etc\opennms-datasources.xml file

<jdbc-data-source name= "Opennms-admin"

Database-name= "Template1"

Class-name= "Org.postgresql.Driver"

Url= "Jdbc:postgresql://localhost:5432/template1"

User-name= "Postgres"

password= "Postgres"/>

17.Create the OPENNMS database for OPENNMS source and help of Install.bat file
(ex:d:\workspace\opennms\build\bin>install.bat-d)

18.Create Opennms.bat file with the following content to start OpenNMS bulid

"C:\Program Files\java\jdk1.6.0_20\bin\java"-xmx512m-xx:maxpermsize=256m-dopennms.home= "d:/workspace/opennms/ Build "-djava.endorsed.dirs=" $OPENNMS _home/lib/endorsed "-jar" D:/workspace/opennms/build/lib/opennms_ Bootstrap.jar "%*

19.To Run the OPENNMS server, Open cmd prompt in admin mode and run Opennms.bat file
  (Ex:d:\workspace\opennms\build\bin>opennms.bat start)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.