Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » ERROR [0001] : The import junit cannot be resolved
ERROR [0001] : The import junit cannot be resolved [message #537134] Tue, 01 June 2010 12:42 Go to next message
Maxi is currently offline MaxiFriend
Messages: 9
Registered: May 2010
Junior Member
Hi all,

I have a project with 'Java BuildPath' - Libraries - JUnit4 - junit.jar. This references to a local file.
In my case to Eclipse plugin c:\eclipse-3.1.5.-6\plugins\org.junit4_4.5.0.v20090824
There are more Libraries definied such as junit.
In Buckminster IDE its OK.
But in buckminster headless I get following error:
ERROR   [0001] : The import junit cannot be resolved


How can I resolve my Problem to work in IDE and headless? Have I to customize dependencies?


Any ideas?
Rainer
Re: ERROR [0001] : The import junit cannot be resolved [message #537255 is a reply to message #537134] Tue, 01 June 2010 16:48 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hello Rainer,

did you install the headless support for junit?

Regards
Axel


Rainer wrote:

> Hi all,
>
> I have a project with 'Java BuildPath' - Libraries - JUnit4 - junit.jar.
> This references to a local file. In my case to Eclipse plugin
> c:\eclipse-3.1.5.-6\plugins\org.junit4_4.5.0.v20090824 There are more
> Libraries definied such as junit. In Buckminster IDE its OK.
> But in buckminster headless I get following error:
> ERROR [0001] : The import junit cannot be resolved
>
> How can I resolve my Problem to work in IDE and headless? Have I to
> customize dependencies?
>
>
> Any ideas?
> Rainer
Re: ERROR [0001] : The import junit cannot be resolved [message #538948 is a reply to message #537255] Wed, 09 June 2010 07:38 Go to previous messageGo to next message
Maxi is currently offline MaxiFriend
Messages: 9
Registered: May 2010
Junior Member
Hi

I use buckminster headless 1.1.350.r11410 (3.5)
How can I install support for junit?

If I use buckminster headless 1.2.0.r11458 (Eclipse 3.6) then I get following error:
ERROR [0001] : java.lang.NoSuchMethodError: org.eclipse.buckminster.core.resolver.NodeQuery.getRevision( )J

Why J at last character?
How can I fix my problems?

any ideas?
Rainer
Re: ERROR [0001] : The import junit cannot be resolved [message #538993 is a reply to message #538948] Wed, 09 June 2010 09:13 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 06/09/2010 09:38 AM, Rainer wrote:
> Hi
>
> I use buckminster headless 1.1.350.r11410 (3.5)
> How can I install support for junit?
>
You can't. Not in 3.6. But do you really need to install it? From the printout it seems like your target platform is
lacking the bundle. You only need to install it if you plan to actually run the JUnit tests.

> If I use buckminster headless 1.2.0.r11458 (Eclipse 3.6) then I get
> following error:
> ERROR [0001] : java.lang.NoSuchMethodError:
> org.eclipse.buckminster.core.resolver.NodeQuery.getRevision( )J
>
> Why J at last character?

The internal name used by the NoSuchMethodError includes the return type and J is internal Java lingo for long.

> How can I fix my problems?
>
Reinstall using a 3.6 product as well as a 3.6 features. You can't mix them.

Regards,
Thomas Hallgren
Re: ERROR [0001] : The import junit cannot be resolved [message #538994 is a reply to message #538993] Wed, 09 June 2010 09:44 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 06/09/2010 11:13 AM, Thomas Hallgren wrote:
> On 06/09/2010 09:38 AM, Rainer wrote:
>> Hi
>>
>> I use buckminster headless 1.1.350.r11410 (3.5)
>> How can I install support for junit?
>>
> You can't. Not in 3.6.

Uh, I meant to write "not in 3.5". Sorry...

- thomas
Previous Topic:Headless build: The import junit cannot be resolved
Next Topic:Standalone build with buckminster
Goto Forum:
  


Current Time: Tue Apr 23 09:41:04 GMT 2024

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

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

Back to the top