Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problems with importing archive files
Problems with importing archive files [message #256812] Wed, 21 May 2008 00:19 Go to next message
No real name is currently offline No real nameFriend
Messages: 53
Registered: July 2009
Member
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
Re: Problems with importing archive files [message #256816 is a reply to message #256812] Wed, 21 May 2008 00:48 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #256941 is a reply to message #256869] Wed, 21 May 2008 19:38 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 53
Registered: July 2009
Member
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

R

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
Re: Problems with importing archive files [message #256951 is a reply to message #256941] Wed, 21 May 2008 21:40 Go to previous message
Eclipse UserFriend
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
Previous Topic:Problem with files from CVS
Next Topic:Ant Build and adding compiler option -Xlint:unchecked
Goto Forum:
  


Current Time: Fri Apr 26 19:56:35 GMT 2024

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

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

Back to the top