Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Can't run junit tests
Can't run junit tests [message #498752] Wed, 18 November 2009 14:36 Go to next message
Scott Olsen is currently offline Scott OlsenFriend
Messages: 2
Registered: November 2009
Junior Member
When I run my junit tests i get the below error message:

java.lang.NoSuchFieldError: fd1
at java.net.PlainSocketImpl.initProto(Native Method)
at java.net.PlainSocketImpl.<clinit>(PlainSocketImpl.java:39)
at java.net.Socket.setImpl(Socket.java:457)
at java.net.Socket.<init>(Socket.java:378)
at java.net.Socket.<init>(Socket.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.conne ct(RemoteTestRunner.java:570)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:381)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:197)


I just switched to ubuntu 9.10 64 bit and I am running eclipse 3.6.
Re: Can't run junit tests [message #498807 is a reply to message #498752] Wed, 18 November 2009 16:53 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
My first instinct was to say that you haven't provided much information, but I decided to google that exception message, and it appears you're not the first to see this: http://jira.codehaus.org/browse/GROOVY-2956 . I don't know if this will help solve your problem, but it's probably a good clue.
Re: Can't run junit tests [message #498884 is a reply to message #498752] Wed, 18 November 2009 23:51 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

try this tutorial: http://www.vogella.de/articles/JUnit/article.html

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter


Scott Olsen wrote:
> When I run my junit tests i get the below error message:
>
> java.lang.NoSuchFieldError: fd1
> at java.net.PlainSocketImpl.initProto(Native Method)
> at java.net.PlainSocketImpl.<clinit>(PlainSocketImpl.java:39)
> at java.net.Socket.setImpl(Socket.java:457)
> at java.net.Socket.<init>(Socket.java:378)
> at java.net.Socket.<init>(Socket.java:203)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.conne
> ct(RemoteTestRunner.java:570)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R
> emoteTestRunner.java:381)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> RemoteTestRunner.java:197)
>
>
> I just switched to ubuntu 9.10 64 bit and I am running eclipse 3.6.
Re: Can't run junit tests [message #499063 is a reply to message #498752] Thu, 19 November 2009 16:55 Go to previous message
Scott Olsen is currently offline Scott OlsenFriend
Messages: 2
Registered: November 2009
Junior Member
I uninstalled java and eclipse and reinstalled it and my tests are running now.
Previous Topic:how to NOT automatically select file in tree?
Next Topic:C++ eclipse total newb question
Goto Forum:
  


Current Time: Thu Apr 25 07:15:16 GMT 2024

Powered by FUDForum. Page generated in 0.08069 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top