Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Suggestions for Code Placement?
Suggestions for Code Placement? [message #154532] Wed, 31 May 2006 05:30 Go to next message
Eclipse UserFriend
Originally posted by: sqlpython.sbcglobal.net

May seem elementary for practiced Eclipse users but I would appreciate
examples as to what more experienced Eclipse and Java coders do.
I can of course place all code for a Project in one dir and make that the
Workbench Home.
But If I want to have access to other Classes i.e ClassPath what is a good
procedure (no pun intended) for Making Eclipse and Java aware of my
Project's and other useful Classes I may create? So Eclipse and I won't be
groping in the dark to find Classes I need.

Thank You
Re: Suggestions for Code Placement? [message #154556 is a reply to message #154532] Wed, 31 May 2006 12:58 Go to previous messageGo to next message
Nick Veys is currently offline Nick VeysFriend
Messages: 52
Registered: July 2009
Member
Typically you'd import JARs into your workspace as dependencies and set
them on the Build Path in your project in Eclipse. You can then use any
class files in those JARs.

You can also create multiple source code directories in the project,
this will allow you to break up your code if desired (something packages
will usually be sufficient for).

On Wed, 2006-05-31 at 01:30 -0400, sqlpython wrote:
> May seem elementary for practiced Eclipse users but I would appreciate
> examples as to what more experienced Eclipse and Java coders do.
> I can of course place all code for a Project in one dir and make that the
> Workbench Home.
> But If I want to have access to other Classes i.e ClassPath what is a good
> procedure (no pun intended) for Making Eclipse and Java aware of my
> Project's and other useful Classes I may create? So Eclipse and I won't be
> groping in the dark to find Classes I need.
>
> Thank You
Re: Suggestions for Code Placement? [message #154730 is a reply to message #154556] Thu, 01 June 2006 05:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sqlpython.sbcglobal.net

Nick Veys wrote:

> You can also create multiple source code directories in the project,
> this will allow you to break up your code if desired (something packages
> will usually be sufficient for).

First off..Thanks very much for the reply.
I am a little uneasy using a Compiler other then the JSE2..But I like the
results.

Secondly I am a little unsure regarding your above statement..
I know the package concept works but how can I utilize the multiple source
dir ?
Re: Suggestions for Code Placement? [message #154946 is a reply to message #154730] Thu, 01 June 2006 23:16 Go to previous messageGo to next message
Nick Veys is currently offline Nick VeysFriend
Messages: 52
Registered: July 2009
Member
On Thu, 2006-06-01 at 01:36 -0400, sqlpython wrote:
> Nick Veys wrote:
>
> > You can also create multiple source code directories in the project,
> > this will allow you to break up your code if desired (something packages
> > will usually be sufficient for).
>
> First off..Thanks very much for the reply.
> I am a little uneasy using a Compiler other then the JSE2..But I like the
> results.
>
> Secondly I am a little unsure regarding your above statement..
> I know the package concept works but how can I utilize the multiple source
> dir ?

If you right-click on your project you can do New -> Source Folder.
This will just create a new directory that the compiler will compile
from. It can have its own package structure etc. Many find this useful
to have a /src and /test directory to separate source from unit tests.
This way you can jar up the src directory and only get the real working
code and leave tests behind.

It's by no means required, but it does get useful with large projects.
Re: Suggestions for Code Placement? [message #154950 is a reply to message #154946] Fri, 02 June 2006 05:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sqlpython.sbcglobal.net

Nick Veys wrote:

> If you right-click on your project you can do New -> Source Folder.
Thanks Nick..Missed that as I have been right clicking there to create
classes. This is the kind of good info that only comes with practice which
is why I appreciate the comeback..
Seems simple when your accustom to the interface but with so much going on
in Eclipse .....
Re: Suggestions for Code Placement? [message #155043 is a reply to message #154950] Fri, 02 June 2006 13:54 Go to previous messageGo to next message
Nick Veys is currently offline Nick VeysFriend
Messages: 52
Registered: July 2009
Member
On Fri, 2006-06-02 at 01:39 -0400, sqlpython wrote:
> Nick Veys wrote:
>
> > If you right-click on your project you can do New -> Source Folder.
> Thanks Nick..Missed that as I have been right clicking there to create
> classes. This is the kind of good info that only comes with practice which
> is why I appreciate the comeback..
> Seems simple when your accustom to the interface but with so much going on
> in Eclipse .....

It can be especially difficult if you're still getting used to Java in
general, as well as learning Eclipse, it can be pretty overwhelming.
But once you get used to the environment it really is amazing what it
can do for you.
Re: Suggestions for Code Placement? [message #155391 is a reply to message #155043] Sun, 04 June 2006 02:55 Go to previous message
Eclipse UserFriend
Originally posted by: sqlpython.sbcglobal.net

Nick Veys wrote:

>
> It can be especially difficult if you're still getting used to Java in
> general, as well as learning Eclipse,
Your Right...Fortunately as a long time programmer I am coming up to speed
quickly in Java. I find Eclipse though somewhat foreign and it well present
the more difficult learning curve..

You will see me bouncing questions off this List for a while.. ;^)
Previous Topic:Cant get eclipse to work
Next Topic:Case Sensitive?
Goto Forum:
  


Current Time: Wed Jul 03 12:24:21 GMT 2024

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

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

Back to the top