Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Basic tutorial - source file not read
Basic tutorial - source file not read [message #216810] Tue, 19 June 2007 20:34 Go to next message
Eclipse UserFriend
Originally posted by: dxturner.yahoo.com

I'm getting an error message on the JUnit project from the 'Basic
Tutorial' which says:

The project was not built since the source file
/JUnit/junit/framework/TestSuite.java could not be read

however, the file is there with rw-r--r-- permissions:

<username>@<host>:~/workspace/JUnit/junit/framework$ ls -go
total 60
-rw-r--r-- 1 241 2007-06-19 15:19 AssertionFailedError.java
-rw-r--r-- 1 9794 2007-06-19 15:19 Assert.java
-rw-r--r-- 1 1798 2007-06-19 15:19 ComparisonFailure.java
-rw-r--r-- 1 270 2007-06-19 15:19 Protectable.java
-rw-r--r-- 1 5395 2007-06-19 15:19 TestCase.java
-rw-r--r-- 1 1444 2007-06-19 15:19 TestFailure.java
-rw-r--r-- 1 390 2007-06-19 15:19 Test.java
-rw-r--r-- 1 430 2007-06-19 15:19 TestListener.java
-rw-r--r-- 1 4202 2007-06-19 15:19 TestResult.java
-rw-r--r-- 1 7109 2007-06-19 15:19 TestSuite.java

Is there some environment variable something that holds the default
workspace path? I notice the error message doesn't include the full path,
so does it search from the workspace, or is this telling me it's looking
for the file starting at /?

Also, and this is just an annoyance ... If I have one of the settings
windows up in eclipse ... like the 'New Java Project' ... I can't scroll
in the help window that has the tutorial instructions which makes it hard
to read the instructions and look at the settings at the same time. Is
that just me or is it normal?

Any help appreciated.
Re: Basic tutorial - source file not read [message #216820 is a reply to message #216810] Tue, 19 June 2007 20:37 Go to previous messageGo to next message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
Dexter Turner wrote:
> I'm getting an error message on the JUnit project from the 'Basic
> Tutorial' which says:
>
> The project was not built since the source file
> /JUnit/junit/framework/TestSuite.java could not be read
>
> however, the file is there with rw-r--r-- permissions:
>
> <username>@<host>:~/workspace/JUnit/junit/framework$ ls -go
> total 60
> -rw-r--r-- 1 241 2007-06-19 15:19 AssertionFailedError.java
> -rw-r--r-- 1 9794 2007-06-19 15:19 Assert.java
> -rw-r--r-- 1 1798 2007-06-19 15:19 ComparisonFailure.java
> -rw-r--r-- 1 270 2007-06-19 15:19 Protectable.java
> -rw-r--r-- 1 5395 2007-06-19 15:19 TestCase.java
> -rw-r--r-- 1 1444 2007-06-19 15:19 TestFailure.java
> -rw-r--r-- 1 390 2007-06-19 15:19 Test.java
> -rw-r--r-- 1 430 2007-06-19 15:19 TestListener.java
> -rw-r--r-- 1 4202 2007-06-19 15:19 TestResult.java
> -rw-r--r-- 1 7109 2007-06-19 15:19 TestSuite.java
>
> Is there some environment variable something that holds the default
> workspace path? I notice the error message doesn't include the full
> path, so does it search from the workspace, or is this telling me it's
> looking for the file starting at /?
>
> Also, and this is just an annoyance ... If I have one of the settings
> windows up in eclipse ... like the 'New Java Project' ... I can't scroll
> in the help window that has the tutorial instructions which makes it
> hard to read the instructions and look at the settings at the same
> time. Is that just me or is it normal?
>
> Any help appreciated.
>
>
Hi Dexter. I'm not sure, but I would try making them all read/write.
Hope this helps. Mark Dexter
Re: Basic tutorial - source file not read [message #216828 is a reply to message #216820] Tue, 19 June 2007 20:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dxturner.yahoo.com

Mark Dexter wrote:
> Hi Dexter. I'm not sure, but I would try making them all read/write.
> Hope this helps. Mark Dexter

Thanks for the quick reply, but that didn't help ... and neither did
creating a link from / to point to the JUnit directory. Maybe I should
pose this question differently.

Where is the 'build file listing' or whatever it is for the project? If I
could look at it, I might understand where eclipse is looking to find the
files it needs.

Thanks.
Re: Basic tutorial - source file not read [message #216849 is a reply to message #216828] Tue, 19 June 2007 21:01 Go to previous message
Eclipse UserFriend
Originally posted by: dxturner.yahoo.com

Well, I'm still not sure where the 'build path list' file is located, but
I found the problem.

When I imported the junit381src.jar into the JUnit project, it created a
subfolder named 'junit' with directories underneath that like 'framework'.
In the tutorial instructions it shows these folders in the project as
'junit.framework' ... but in my installation they were imported as 'junit'
-> 'framework'.

I'm using linux ... I wonder if the tutorial is windows specific?

I had to modify the build path by right clicking on the project, selecting
'Build Path ...' -> 'Configure Build Path' ... and adding 'junit/*' to the
included source directories.

I wonder if my setup is just screwy or if I need to report this somewhere
as a bug?

Thanks for helping me think out loud :)
Previous Topic:Eclipse plug-in
Next Topic:Keyboard shortcuts
Goto Forum:
  


Current Time: Thu Sep 19 23:55:03 GMT 2024

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

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

Back to the top