OpenNMS Installation problem: Java version and compile error
Magnus Karlsson <[email protected]> Tue, 08 Dec 2015 16:55:06 +0100
| Newsgroups | gmane.network.opennms.install |
|---|---|
| Message-ID | <D28CBBEA.229E2%[email protected]> |
> Detta meddelande r i MIME-format. P grund av att din e-postlsare inte frstr
detta format, kommer hela eller delar av detta meddelande inte att vara lsbart.
--===============0561671549841999809==
Content-type: multipart/alternative;
boundary="B_3532438509_11748806"
> Detta meddelande r i MIME-format. P grund av att din e-postlsare inte frstr
detta format, kommer hela eller delar av detta meddelande inte att vara lsbart.
--B_3532438509_11748806
Content-type: text/plain;
charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
Hi,
I=B9m trying to install openNMS for a first time evaluation.
First I=B9ve got a Java version problem that I managed to make a =B2dirty=B2 work
around for and then I=B9ve got a compilation error. This is what happens:
Preconditions:
- OSX 10.11.1
- I follow the installation instruction on
http://www.opennms.org/wiki/Installation:MacOSX#Fink_Installation until
=B2Install OpenNMS=B2 and =B2fink selfupdate=B2
- Fink 0.39.2 (selfupdate 8/12 2015)
-Java 1.8
Action:=20
- =B2fink install opennms=B2
Result:
- Source files downloaded
- Error:
=B2
Java.check:
[INFO]=20
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]=20
------------------------------------------------------------------------
[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.
=B2
- Similar error messages referring to the same problem follows
Action: =20
- Change the source/build.xml file to accept Java 1.8
Result: =20
- Same as above since the source/build.xml is written over by the =B2fink
install opennms=B2
Action: =20
- 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
the =B2fink instal opennms=B2 has copied it over
Result: =20
- We get further into the build until=8A
- Compilation error:
"
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]=20
/sw/src/fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/m=
a
in/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
[ERROR]=20
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=
a
in/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 overrides the other
[ERROR]=20
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=
a
in/java/org/opennms/core/soa/support/MultivaluedMap.java:[60,19] error: nam=
e
clash: remove(K,V) in MultivaluedMap and remove(Object,Object) in Map have
the same erasure, yet neither overrides the other
[INFO] 3 errors=20
[INFO] -------------------------------------------------------------
[INFO]=20
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]=20
------------------------------------------------------------------------
[INFO] Compilation failure
/sw/src/fink.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/m=
a
in/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
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=
a
in/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 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=
a
in/java/org/opennms/core/soa/support/MultivaluedMap.java:[60,19] error: nam=
e
clash: remove(K,V) in MultivaluedMap and remove(Object,Object) in Map have
the same erasure, yet neither overrides the other
=B2
Can someone help me how to get further? Hopefully, its just me who have
missed something but right now I=B9m stucked with this problem.
Best wishes,
Magnus
--B_3532438509_11748806
Content-type: text/html;
charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space; color: rgb(0, 0, 0);"><div styl=
e=3D"font-family: Calibri, sans-serif; font-size: 14px;">Hi,</div><div style=3D"=
font-family: Calibri, sans-serif; font-size: 14px;">I’m trying to inst=
all openNMS for a first time evaluation. </div><div style=3D"font-family:=
Calibri, sans-serif; font-size: 14px;"><br></div><div style=3D"font-family: C=
alibri, sans-serif; font-size: 14px;">First I’ve got a Java version pr=
oblem that I managed to make a ”dirty” work around for and then =
I’ve got a compilation error. This is what happens:</div><div style=3D"f=
ont-family: Calibri, sans-serif; font-size: 14px;"><br></div><div style=3D"fon=
t-family: Calibri, sans-serif; font-size: 14px;">Preconditions:</div><div st=
yle=3D"font-family: Calibri, sans-serif; font-size: 14px;"><span class=3D"Apple-=
tab-span" style=3D"white-space:pre"> </span>- OSX 10.11.1</div><div style=
=3D"font-family: Calibri, sans-serif; font-size: 14px;"><span class=3D"Apple-tab=
-span" style=3D"white-space:pre"> </span>- I follow the installation inst=
ruction on <a href=3D"http://www.opennms.org/wiki/Installation:MacOSX#Fin=
k_Installation" style=3D"font-family: Helvetica; font-size: 12px;">http://www.=
opennms.org/wiki/Installation:MacOSX#Fink_Installation</a> until ”=
;Install OpenNMS” and ”fink selfupdate”</div><div style=3D"f=
ont-family: Calibri, sans-serif; font-size: 14px;"><span class=3D"Apple-tab-sp=
an" style=3D"white-space:pre"> </span>- Fink 0.39.2 (selfupdate 8/12 2015=
)</div><div style=3D"font-family: Calibri, sans-serif; font-size: 14px;"><span=
class=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 st=
yle=3D"font-family: Calibri, sans-serif; font-size: 14px;">Action: </div>=
<div style=3D"font-family: Calibri, sans-serif; font-size: 14px;">- ”fin=
k install opennms”</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;"> - Source files downloaded</div><div style=3D"font-fam=
ily: Calibri, sans-serif; font-size: 14px;"> - Error:</div><div style=3D"=
font-family: Calibri, sans-serif; font-size: 14px;">”</div><div style=3D=
"font-family: Calibri, sans-serif; font-size: 14px;">J<span style=3D"font-fami=
ly: Helvetica; font-size: 12px;">ava.check:</span></div><div style=3D"font-fam=
ily: 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] BU=
ILD 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] An =
Ant BuildException has occured: The following error occurred while executing=
this line:</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/fi=
nk.build/opennms-1.8.16-32/opennms-1.8.16-1/source/build.xml:18: Your Java v=
ersion (java.version =3D 1.8.0_65 java.vm.version =3D 25.65-b01) is not supporte=
d. The</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">build syst=
em 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. You can try to work around this error by</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">modifying =
the java.check target in the build.xml file.</p></div><div style=3D"font-famil=
y: Calibri, sans-serif; font-size: 14px;">”</div><div style=3D"font-fami=
ly: Calibri, sans-serif; font-size: 14px;">- Similar error messages referrin=
g to the same problem follows</div><div style=3D"font-family: Calibri, sans-se=
rif; font-size: 14px;"><br></div><div style=3D"font-family: Calibri, sans-seri=
f; font-size: 14px;"><br></div><div style=3D"font-family: Calibri, sans-serif;=
font-size: 14px;">Action: </div><div style=3D"font-family: Calibri, san=
s-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;">Re=
sult: </div><div style=3D"font-family: Calibri, sans-serif; font-size: 1=
4px;">- Same as above since the source/build.xml is written over by the R=
21;fink install opennms”</div><div style=3D"font-family: Calibri, sans-s=
erif; font-size: 14px;"><br></div><div style=3D"font-family: Calibri, sans-ser=
if; font-size: 14px;"><div>Action: </div><div>- Change the source=
/build.xml file to accept Java 1.8</div><div>- Make o copy of the file and c=
opy it back to the original one after that the ”fink instal opennms=
221; has copied it over</div><div>Result: </div><div>- We get further =
into the build until…</div><div>- Compilation error:</div><div>"</div>=
<div><p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[ERROR=
] COMPILATION 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;">[ERROR] /s=
w/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: na=
me 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]&nb=
sp;</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;"> &nbs=
p; Key extends Object declared in class SynchronizedMultivaluedMa=
p</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;"> &nbs=
p; Value extends Object declared in class SynchronizedMultivalued=
Map</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/fi=
nk.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/main/java/or=
g/opennms/core/soa/support/MultivaluedMapImpl.java:[187,19] error: name clas=
h: remove(K,V) in MultivaluedMapImpl and remove(Object,Object) in HashMap ha=
ve the same erasure, yet neither overrides the other</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[ERROR]&nb=
sp;</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;"> &nbs=
p; K extends Object declared in class MultivaluedMapImpl</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;"> &nbs=
p; V extends Object declared in class MultivaluedMapImpl</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/fi=
nk.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/main/java/or=
g/opennms/core/soa/support/MultivaluedMap.java:[60,19] error: name clash: re=
move(K,V) in MultivaluedMap and remove(Object,Object) in Map have the same e=
rasure, yet neither overrides the other</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">[INFO] 3 e=
rrors </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] BU=
ILD 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] Com=
pilation failure</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica; min-height:=
14px;"><br></p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/fi=
nk.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/main/java/or=
g/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; min-height:=
14px;"><br></p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;"> &nbs=
p; Key extends Object declared in class SynchronizedMultivaluedMa=
p</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;"> &nbs=
p; Value extends Object declared in class SynchronizedMultivalued=
Map</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/fi=
nk.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/main/java/or=
g/opennms/core/soa/support/MultivaluedMapImpl.java:[187,19] error: name clas=
h: remove(K,V) in MultivaluedMapImpl and remove(Object,Object) in HashMap ha=
ve the same erasure, yet neither overrides the other</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica; min-height:=
14px;"><br></p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;"> &nbs=
p; K extends Object declared in class MultivaluedMapImpl</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;"> &nbs=
p; V extends Object declared in class MultivaluedMapImpl</p>
<p style=3D"margin: 0px; font-size: 12px; font-family: Helvetica;">/sw/src/fi=
nk.build/opennms-1.8.16-32/opennms-1.8.16-1/source/core/soa/src/main/java/or=
g/opennms/core/soa/support/MultivaluedMap.java:[60,19] error: name clash: re=
move(K,V) in MultivaluedMap and remove(Object,Object) in Map have the same e=
rasure, yet neither overrides the other</p></div><div>”</div><div><br>=
</div><div>Can someone help me how to get further? Hopefully, its just=
me who have missed something but right now I’m stucked with this prob=
lem.</div><div><br></div><div>Best wishes,</div><div>Magnus</div></div></bod=
y></html>
--B_3532438509_11748806--
--===============0561671549841999809==
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
--===============0561671549841999809==
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
--===============0561671549841999809==--