JUnit and Maven build fails in eclipse with java.lang.NoSuchFieldError: address? -
when try , run either junit (4.8.2) tests or maven (2.2.1) build in local eclipse following error:
junit 4.8.2 java.lang.nosuchfielderror: address @ java.net.inetaddress.init(native method) @ java.net.inetaddress.<clinit>(inetaddress.java:242) @ java.net.inetsocketaddress.<init>(inetsocketaddress.java:200) @ java.net.socket.<init>(socket.java:189) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.connect(remotetestrunner.java:570) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.run(remotetestrunner.java:381) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.main(remotetestrunner.java:197) maven 2.2.1 java.lang.nosuchfielderror: address @ java.net.inetaddress.init(native method) @ java.net.inetaddress.<clinit>(inetaddress.java:242) @ java.net.inetsocketaddress.<init>(inetsocketaddress.java:200) @ sun.net.networkclient.doconnect(networkclient.java:163) etc...
judging few posts people might conflicting dependencies i'm not sure. appreciated.
edit: running mvn clean install
command line works eclipse won't let me maven build, clean, or run of test because of error, ideas need do?
cheers,
alexei blue
looks corrupt jdk. pointed version of java 6 , worked fine not sure how got corrupt appears field address has gone missing.
Comments
Post a Comment