Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
"The import org.junit cannot be resolved'
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dan Weis  
View profile  
 More options Dec 1 2007, 8:48 pm
From: Dan Weis <Weis...@gmail.com>
Date: Sat, 1 Dec 2007 17:48:49 -0800 (PST)
Local: Sat, Dec 1 2007 8:48 pm
Subject: "The import org.junit cannot be resolved'
When I attempt to run junit tests, I get the following message:

"The import org.junit cannot be resolved'

How can I resolve this issue?

Thanks,
Dan Weis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Owen Durni  
View profile  
 More options Dec 2 2007, 2:05 pm
From: Owen Durni <o...@andrew.cmu.edu>
Date: Sun, 2 Dec 2007 11:05:02 -0800 (PST)
Local: Sun, Dec 2 2007 2:05 pm
Subject: Re: "The import org.junit cannot be resolved'
What OS and version of java are you using?

You should make sure that JUnit is in your build path.

On Dec 1, 8:48 pm, Dan Weis <Weis...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Weis  
View profile  
 More options Dec 2 2007, 7:29 pm
From: Dan Weis <Weis...@gmail.com>
Date: Sun, 2 Dec 2007 16:29:56 -0800 (PST)
Local: Sun, Dec 2 2007 7:29 pm
Subject: Re: "The import org.junit cannot be resolved'
XP SP2 and Ubuntu 7.10, but I have installed the build-essential
package.  I'm assuming that I just need to reference JUnit in the
build path for this as well.  How do I do that in Eclipse?

On Dec 2, 2:05 pm, Owen Durni <o...@andrew.cmu.edu> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Owen Durni  
View profile  
 More options Dec 2 2007, 10:06 pm
From: Owen Durni <o...@andrew.cmu.edu>
Date: Sun, 2 Dec 2007 19:06:35 -0800 (PST)
Local: Sun, Dec 2 2007 10:06 pm
Subject: Re: "The import org.junit cannot be resolved'
Ubuntu has problems with JUnit 4 (I think because of a licensing
issue)

You should be able to fix it by locally downloading and unpacking the
latest version of Eclipse. Then copy the directory org.junit4_4.1.0.1
and the file org.eclipse.jdt.junit4.runtime_1.0.1.r321_v2006090 5.jar
from the local eclipse plugins to the system eclipse plugins (/usr/lib/
eclipse/plugins) directory. After a restart of eclipse JUnit4 tests
should work.

===

To add JUnit to the build path in either OS:

Window -> Preferences -> Java -> Installed JREs -> Edit current JRE ->
Add External JARs -> add JUnit 4

Also make sure that Window -> Preferences -> Java -> JUnit -> stuff is
enabled

You can also add JUnit 4 to the build path on a project by project
basis.  The option is hidden somewhere in the long list of options
when you right click on a project.

On Dec 2, 7:29 pm, Dan Weis <Weis...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »