Re: OpenNMS Installation problem: Java version and compile error

Jeremy McSpadden <[email protected]> Tue, 8 Dec 2015 15:58:28 +0000
Newsgroups gmane.network.opennms.install
Message-ID <[email protected]>
--===============7843290164212096379==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_848E2F08A228492AAB4E7DBE18AD6506fluxlabsnet_"

--_000_848E2F08A228492AAB4E7DBE18AD6506fluxlabsnet_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

OS X moved to closed Java sources. Good luck with that. Better of spinning =
up a Linux box.

--
Jeremy McSpadden | Flux Labs
Local - 850-250-5590x501<tel:850-250-5590;501> | Mobile - 850-890-2543<tel:=
850-890-2543>
Fax - 850-254-2955<tel:850-254-2955> | Toll Free - 877-699-FLUX<tel:877-699=
-FLUX>
Web - http://www.fluxlabs.net<http://www.fluxlabs.net/>


On Dec 8, 2015, at 9:56 AM, Magnus Karlsson <[email protected]<mailt=
o:[email protected]>> wrote:

Hi,
I=92m trying to install openNMS for a first time evaluation.

First I=92ve got a Java version problem that I managed to make a =94dirty=
=94 work around for and then I=92ve got a compilation error. This is what h=
appens:

Preconditions:
- OSX 10.11.1
- I follow the installation instruction on http://www.opennms.org/wiki/Inst=
allation:MacOSX#Fink_Installation until =94Install OpenNMS=94 and =94fink s=
elfupdate=94
- Fink 0.39.2 (selfupdate 8/12 2015)
-Java 1.8

Action:
- =94fink install opennms=94
Result:
 - Source files downloaded
 - Error:
=94
Java.check:

[INFO] --------------------------------------------------------------------=
----

[ERROR] BUILD ERROR

[INFO] --------------------------------------------------------------------=
----

[INFO] An Ant BuildException has occured: The following error occurred whil=
e executing this line:

/sw/src/fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/build.xml:18: =
Your Java version (java.version =3D 1.8.0_65 java.vm.version =3D 25.65-b01)=
 is not supported.  The

build system is currently designed and tested to work with Java

versions 1.5 and 1.6.  You can try to work around this error by

modifying the java.check target in the build.xml file.

=94
- Similar error messages referring to the same problem follows


Action:
- Change the source/build.xml file to accept Java 1.8
Result:
- Same as above since the source/build.xml is written over by the =94fink i=
nstall opennms=94

Action:
- Change the source/build.xml file to accept Java 1.8
- Make o copy of the file and copy it back to the original one after that t=
he =94fink instal opennms=94 has copied it over
Result:
- We get further into the build until=85
- Compilation error:
"

[ERROR] COMPILATION ERROR :

[INFO] -------------------------------------------------------------

[ERROR] /sw/src/fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/s=
oa/src/main/java/org/opennms/core/soa/support/MultivaluedMapImpl.java:[68,2=
3] error: name clash: remove(Key,Value) in SynchronizedMultivaluedMap and r=
emove(Object,Object) in Map have the same erasure, yet neither overrides th=
e other

[ERROR]

    Key extends Object declared in class SynchronizedMultivaluedMap

    Value extends Object declared in class SynchronizedMultivaluedMap

/sw/src/fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/m=
ain/java/org/opennms/core/soa/support/MultivaluedMapImpl.java:[187,19] erro=
r: name clash: remove(K,V) in MultivaluedMapImpl and remove(Object,Object) =
in HashMap have the same erasure, yet neither overrides the other

[ERROR]

    K extends Object declared in class MultivaluedMapImpl

    V extends Object declared in class MultivaluedMapImpl

/sw/src/fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/m=
ain/java/org/opennms/core/soa/support/MultivaluedMap.java:[60,19] error: na=
me clash: remove(K,V) in MultivaluedMap and remove(Object,Object) in Map ha=
ve the same erasure, yet neither overrides the other

[INFO] 3 errors

[INFO] -------------------------------------------------------------

[INFO] --------------------------------------------------------------------=
----

[ERROR] BUILD FAILURE

[INFO] --------------------------------------------------------------------=
----

[INFO] Compilation failure


/sw/src/fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/m=
ain/java/org/opennms/core/soa/support/MultivaluedMapImpl.java:[68,23] error=
: name clash: remove(Key,Value) in SynchronizedMultivaluedMap and remove(Ob=
ject,Object) in Map have the same erasure, yet neither overrides the other


    Key extends Object declared in class SynchronizedMultivaluedMap

    Value extends Object declared in class SynchronizedMultivaluedMap

/sw/src/fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/m=
ain/java/org/opennms/core/soa/support/MultivaluedMapImpl.java:[187,19] erro=
r: name clash: remove(K,V) in MultivaluedMapImpl and remove(Object,Object) =
in HashMap have the same erasure, yet neither overrides the other


    K extends Object declared in class MultivaluedMapImpl

    V extends Object declared in class MultivaluedMapImpl

/sw/src/fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/m=
ain/java/org/opennms/core/soa/support/MultivaluedMap.java:[60,19] error: na=
me clash: remove(K,V) in MultivaluedMap and remove(Object,Object) in Map ha=
ve the same erasure, yet neither overrides the other

=94

Can someone help me how to get further?  Hopefully, its just me who have mi=
ssed something but right now I=92m stucked with this problem.

Best wishes,
Magnus
---------------------------------------------------------------------------=
---
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OS=
s.
http://pubads.g.doubleclick.net/gampad/clk?id=3D254741911&iu=3D/4140
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of thi=
s page:
https://lists.sourceforge.net/lists/listinfo/opennms-install

--_000_848E2F08A228492AAB4E7DBE18AD6506fluxlabsnet_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body dir=3D"auto">
<div>OS X moved to closed Java sources. Good luck with that. Better of spin=
ning up a Linux box.&nbsp;<br>
<br>
<div class=3D"acompli_signature">
<div class=3D"acompli_signature"><span style=3D"background-color: rgba(255,=
 255, 255, 0);">--<br>
Jeremy McSpadden | Flux Labs<br>
Local -&nbsp;<a href=3D"tel:850-250-5590;501" x-apple-data-detectors=3D"tru=
e" x-apple-data-detectors-type=3D"telephone" x-apple-data-detectors-result=
=3D"0/1">850-250-5590x501</a>&nbsp;| Mobile -&nbsp;<a href=3D"tel:850-890-2=
543" x-apple-data-detectors=3D"true" x-apple-data-detectors-type=3D"telepho=
ne" x-apple-data-detectors-result=3D"0/2">850-890-2543</a>&nbsp;<br>
Fax -&nbsp;<a href=3D"tel:850-254-2955" x-apple-data-detectors=3D"true" x-a=
pple-data-detectors-type=3D"telephone" x-apple-data-detectors-result=3D"0/3=
">850-254-2955</a>&nbsp;| Toll Free -&nbsp;<a href=3D"tel:877-699-FLUX" x-a=
pple-data-detectors=3D"true" x-apple-data-detectors-type=3D"telephone" x-ap=
ple-data-detectors-result=3D"0/4">877-699-FLUX</a><br>
Web -&nbsp;<a href=3D"http://www.fluxlabs.net/" x-apple-data-detectors=3D"t=
rue" x-apple-data-detectors-type=3D"link" x-apple-data-detectors-result=3D"=
0/5">http://www.fluxlabs.net</a></span></div>
<div><br>
</div>
</div>
</div>
<div><br>
On Dec 8, 2015, at 9:56 AM, Magnus Karlsson &lt;<a href=3D"mailto:magnus.ka=
[email protected]">[email protected]</a>&gt; wrote:<br>
<br>
</div>
<blockquote type=3D"cite">
<div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">Hi,</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">I=92m try=
ing to install openNMS for a first time evaluation.&nbsp;</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;"><br>
</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">First I=
=92ve got a Java version problem that I managed to make a =94dirty=94 work =
around for and then I=92ve got a compilation error. This is what happens:</=
div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;"><br>
</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">Precondit=
ions:</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;"><span cla=
ss=3D"Apple-tab-span" style=3D"white-space:pre"></span>-&nbsp;OSX 10.11.1</=
div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;"><span cla=
ss=3D"Apple-tab-span" style=3D"white-space:pre"></span>-&nbsp;I follow the =
installation instruction on&nbsp;<a href=3D"http://www.opennms.org/wiki/Ins=
tallation:MacOSX#Fink_Installation" style=3D"font-family: Helvetica; font-s=
ize: 12px;">http://www.opennms.org/wiki/Installation:MacOSX#Fink_Installati=
on</a>&nbsp;until
 =94Install OpenNMS=94 and =94fink selfupdate=94</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;"><span cla=
ss=3D"Apple-tab-span" style=3D"white-space:pre"></span>-&nbsp;Fink 0.39.2 (=
selfupdate 8/12 2015)</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;"><span cla=
ss=3D"Apple-tab-span" style=3D"white-space:pre"></span>-Java 1.8</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;"><br>
</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">Action:&n=
bsp;</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">- =94fink=
 install opennms=94</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">Result:</=
div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">&nbsp;- S=
ource files downloaded</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">&nbsp;- E=
rror:</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">=94</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">J<span st=
yle=3D"font-family: Helvetica; font-size: 12px;">ava.check:</span></div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[INFO] -=
-----------------------------------------------------------------------</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[ERROR] =
BUILD ERROR</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[INFO] -=
-----------------------------------------------------------------------</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[INFO] A=
n Ant BuildException has occured: The following error occurred while execut=
ing this line:</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/=
fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/build.xml:18: Your Jav=
a version (java.version =3D 1.8.0_65 java.vm.version =3D 25.65-b01) is not =
supported.&nbsp;&nbsp;The</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">build sy=
stem is currently designed and tested to work with Java</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">versions=
 1.5 and 1.6.&nbsp;&nbsp;You can try to work around this error by</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">modifyin=
g the java.check target in the build.xml file.</p>
</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">=94</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">- Similar=
 error messages referring to the same problem follows</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;"><br>
</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;"><br>
</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">Action: &=
nbsp;</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">- Change =
the source/build.xml file to accept Java 1.8</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">Result: &=
nbsp;</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">- Same as=
 above since the source/build.xml is written over by the =94fink install op=
ennms=94</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;"><br>
</div>
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">
<div>Action: &nbsp;</div>
<div>-&nbsp;Change the source/build.xml file to accept Java 1.8</div>
<div>- Make o copy of the file and copy it back to the original one after t=
hat the =94fink instal opennms=94 has copied it over</div>
<div>Result: &nbsp;</div>
<div>- We get further into the build until=85</div>
<div>- Compilation error:</div>
<div>&quot;</div>
<div>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[ERROR] =
COMPILATION ERROR :&nbsp;</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[INFO] -=
------------------------------------------------------------</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[ERROR] =
/sw/src/fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/m=
ain/java/org/opennms/core/soa/support/MultivaluedMapImpl.java:[68,23] error=
: name clash: remove(Key,Value) in
 SynchronizedMultivaluedMap and remove(Object,Object) in Map have the same =
erasure, yet neither overrides the other</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[ERROR]&=
nbsp;</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">&nbsp;&n=
bsp;&nbsp;&nbsp;Key extends Object declared in class SynchronizedMultivalue=
dMap</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">&nbsp;&n=
bsp;&nbsp;&nbsp;Value extends Object declared in class SynchronizedMultival=
uedMap</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/=
fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/main/java=
/org/opennms/core/soa/support/MultivaluedMapImpl.java:[187,19] error: name =
clash: remove(K,V) in MultivaluedMapImpl
 and remove(Object,Object) in HashMap have the same erasure, yet neither ov=
errides the other</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[ERROR]&=
nbsp;</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">&nbsp;&n=
bsp;&nbsp;&nbsp;K extends Object declared in class MultivaluedMapImpl</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">&nbsp;&n=
bsp;&nbsp;&nbsp;V extends Object declared in class MultivaluedMapImpl</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/=
fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/main/java=
/org/opennms/core/soa/support/MultivaluedMap.java:[60,19] error: name clash=
: remove(K,V) in MultivaluedMap and
 remove(Object,Object) in Map have the same erasure, yet neither overrides =
the other</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[INFO] 3=
 errors&nbsp;</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[INFO] -=
------------------------------------------------------------</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[INFO] -=
-----------------------------------------------------------------------</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[ERROR] =
BUILD FAILURE</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[INFO] -=
-----------------------------------------------------------------------</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[INFO] C=
ompilation failure</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica; min-heigh=
t: 14px;">
<br>
</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/=
fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/main/java=
/org/opennms/core/soa/support/MultivaluedMapImpl.java:[68,23] error: name c=
lash: remove(Key,Value) in SynchronizedMultivaluedMap
 and remove(Object,Object) in Map have the same erasure, yet neither overri=
des the other</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica; min-heigh=
t: 14px;">
<br>
</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">&nbsp;&n=
bsp;&nbsp;&nbsp;Key extends Object declared in class SynchronizedMultivalue=
dMap</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">&nbsp;&n=
bsp;&nbsp;&nbsp;Value extends Object declared in class SynchronizedMultival=
uedMap</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/=
fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/main/java=
/org/opennms/core/soa/support/MultivaluedMapImpl.java:[187,19] error: name =
clash: remove(K,V) in MultivaluedMapImpl
 and remove(Object,Object) in HashMap have the same erasure, yet neither ov=
errides the other</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica; min-heigh=
t: 14px;">
<br>
</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">&nbsp;&n=
bsp;&nbsp;&nbsp;K extends Object declared in class MultivaluedMapImpl</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">&nbsp;&n=
bsp;&nbsp;&nbsp;V extends Object declared in class MultivaluedMapImpl</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/=
fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/main/java=
/org/opennms/core/soa/support/MultivaluedMap.java:[60,19] error: name clash=
: remove(K,V) in MultivaluedMap and
 remove(Object,Object) in Map have the same erasure, yet neither overrides =
the other</p>
</div>
<div>=94</div>
<div><br>
</div>
<div>Can someone help me how to get further? &nbsp;Hopefully, its just me w=
ho have missed something but right now I=92m stucked with this problem.</di=
v>
<div><br>
</div>
<div>Best wishes,</div>
<div>Magnus</div>
</div>
</div>
</blockquote>
<blockquote type=3D"cite">
<div><span>----------------------------------------------------------------=
--------------</span><br>
<span>Go from Idea to Many App Stores Faster with Intel(R) XDK</span><br>
<span>Give your users amazing mobile app experiences with Intel(R) XDK.</sp=
an><br>
<span>Use one codebase in this all-in-one HTML5 development environment.</s=
pan><br>
<span>Design, debug &amp; build mobile apps &amp; 2D/3D high-impact games f=
or multiple OSs.</span><br>
<span><a href=3D"http://pubads.g.doubleclick.net/gampad/clk?id=3D254741911&=
amp;iu=3D/4140">http://pubads.g.doubleclick.net/gampad/clk?id=3D254741911&a=
mp;iu=3D/4140</a></span></div>
</blockquote>
<blockquote type=3D"cite">
<div><span>_______________________________________________</span><br>
<span>Please read the OpenNMS Mailing List FAQ:</span><br>
<span><a href=3D"http://www.opennms.org/index.php/Mailing_List_FAQ">http://=
www.opennms.org/index.php/Mailing_List_FAQ</a></span><br>
<span></span><br>
<span>opennms-install mailing list</span><br>
<span></span><br>
<span>To *unsubscribe* or change your subscription options, see the bottom =
of this page:</span><br>
<span><a href=3D"https://lists.sourceforge.net/lists/listinfo/opennms-insta=
ll">https://lists.sourceforge.net/lists/listinfo/opennms-install</a></span>=
</div>
</blockquote>
</body>
</html>

--_000_848E2F08A228492AAB4E7DBE18AD6506fluxlabsnet_--


--===============7843290164212096379==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
--===============7843290164212096379==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
--===============7843290164212096379==--