|
Re: Problems with importing archive files [message #256816 is a reply to message #256812] |
Wed, 21 May 2008 00:48 |
Eclipse User |
|
|
|
Originally posted by: wegener.cboenospam.com
Richard Geddes wrote:
> I'm following along the Basic Tutorial for Java development, created the
> JUnit project and imported the archive files for junit381src.jar archive
> file.
>
> When I completed the import, there were several *folders* under the
> JUnit project. The tutorial shows that the imported archive should
> create a series of packages under JUnit.
>
> Tried it a few times... same results.
>
> Any ideas?
>
> R
The JUnit folder needs to be a source folder. Right click on the JUnit
folder and select the Build Path entry. Select Add to Build Path.
|
|
|
Re: Problems with importing archive files [message #256869 is a reply to message #256812] |
Wed, 21 May 2008 14:02 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Richard Geddes wrote:
> I'm following along the Basic Tutorial for Java development, created the
> JUnit project and imported the archive files for junit381src.jar archive
> file.
>
> When I completed the import, there were several *folders* under the
> JUnit project. The tutorial shows that the imported archive should
> create a series of packages under JUnit.
>
> Tried it a few times... same results.
>
> Any ideas?
Are you sure you're looking at the same View in Eclipse as the tutorial
shows? The Resource Navigator view, for example, shows only folders,
while the Package Explorer and Project Explorer views show package
structures.
Hope this helps,
Eric
|
|
|
|
Re: Problems with importing archive files [message #256951 is a reply to message #256941] |
Wed, 21 May 2008 21:40 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Richard Geddes wrote:
> After playing around a bit, I found that when creating a project the
> "Project Layout" was set to "Create separate folders for sources and
> class files". I changed that to "Use project folder as root for sources
> and class files" and the packages were created as shown in the tutorial.
>
> Thanks for the advice, nonetheless
I'm surprised that the tutorial shows that option as the default. I
would swear that the default is to use separate folders. That certainly
*should* be the default, IMO.
It is very poor organization to have the project root be the source and
build locations - only the most trivial projects will work well that way
because you inevitably need better organization for non-code files and
to make cleaning easier.
So, despite what that tutorial shows, I strongly recommend using
separate folders for source and build output.
Hope this helps,
Eric
> Eric Rizzo wrote:
>> Richard Geddes wrote:
>>> I'm following along the Basic Tutorial for Java development, created
>>> the JUnit project and imported the archive files for junit381src.jar
>>> archive file.
>>>
>>> When I completed the import, there were several *folders* under the
>>> JUnit project. The tutorial shows that the imported archive should
>>> create a series of packages under JUnit.
>>>
>>> Tried it a few times... same results.
>>>
>>> Any ideas?
>>
>> Are you sure you're looking at the same View in Eclipse as the
>> tutorial shows? The Resource Navigator view, for example, shows only
>> folders, while the Package Explorer and Project Explorer views show
>> package structures.
>>
>> Hope this helps,
>> Eric
|
|
|
Powered by
FUDForum. Page generated in 0.09497 seconds