Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » "Java Build Path" missing on Properties Page
"Java Build Path" missing on Properties Page [message #214553] Fri, 08 June 2007 12:01 Go to next message
Eclipse UserFriend
Originally posted by: daniel.obrien.yahoo.com

I'm stumped. I setup a new project and pulled in the source from our CVS
server, established the ant builder using the build.xml file the original
author of the code created, builds the project just fine, but I am having
trouble navigating the source ("Open Declaration", search references) and
I've concluded that I need to set the "Java Build Path" so that while
browsing source, these missing references/declarations are available.

BUT, when I open the project property page, all I see is:

Info
Builders
CVS
Project References

All the examples of this page I can find show "Java Build Path" under the
"Builders" line.

Yes, I'm a newbie. Any advice on how to make source browsing work or how
to get Java Build Path showing again so I can add in my source references
would be much appreciated. Thanks in advance!
Re: "Java Build Path" missing on Properties Page [message #214564 is a reply to message #214553] Fri, 08 June 2007 12:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------030509090801000407010902
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Dan,

It sounds like the people who committed the project to CVS didn't
include the hidden files, .project and .classpath. The .project file
specifies the nature of the project and without a Java nature, the Java
things won't be available. Use the "Filters..." action from the little
triangle in the Package Explorer so that ".*" files are not filtered to
see these files and be sure they get committed to CVS. The .project
should look something like this:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>**name of your project in the workspace**</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
</natures>
</projectDescription>



Dan wrote:
> I'm stumped. I setup a new project and pulled in the source from our
> CVS server, established the ant builder using the build.xml file the
> original author of the code created, builds the project just fine, but
> I am having trouble navigating the source ("Open Declaration", search
> references) and I've concluded that I need to set the "Java Build
> Path" so that while browsing source, these missing
> references/declarations are available.
>
> BUT, when I open the project property page, all I see is:
>
> Info
> Builders
> CVS
> Project References
>
> All the examples of this page I can find show "Java Build Path" under
> the "Builders" line.
>
> Yes, I'm a newbie. Any advice on how to make source browsing work or
> how to get Java Build Path showing again so I can add in my source
> references would be much appreciated. Thanks in advance!
>
>
>
>


--------------030509090801000407010902
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dan,<br>
<br>
It sounds like the people who committed the project to CVS didn't
include the hidden files, .project and .classpath.
Re: "Java Build Path" missing on Properties Page [message #214585 is a reply to message #214564] Fri, 08 June 2007 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.obrien.yahoo.com

Ed, thanks for the quick reply. I did as you said, and there now shows a
project file but no .classpath. Still, no "Java Build Path" in the
Project Properties. (Names changed to protect the guilty...)

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Stuff</name>
<comment></comment>
<projects>
<project>OtherStuff</project>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name >
<triggers>full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value> &lt;project&gt;/.externalToolBuilders/New_Builder.la unch </value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec>
<natures>
</natures>
</projectDescription>
Re: "Java Build Path" missing on Properties Page [message #214614 is a reply to message #214585] Fri, 08 June 2007 12:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.obrien.yahoo.com

Just a note. I rechecked CVS and the original author told CVS to ignore
project and .classpath files... Hmmm. I may just pitch everything and
start over from scratch. I won't setup the ant builder. More important to
be able to scan the code than to rebuild it at this point. More advice?
TIA!
Re: "Java Build Path" missing on Properties Page [message #214621 is a reply to message #214585] Fri, 08 June 2007 12:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Dan,

Try to include all the org.eclipse.jdt things that were in my example.
The nature is particularly important and you won't get Java settings
without it. If you are building a plugin, you need the org.eclipse.pde
things too.


Dan wrote:
> Ed, thanks for the quick reply. I did as you said, and there now shows
> a project file but no .classpath. Still, no "Java Build Path" in the
> Project Properties. (Names changed to protect the guilty...)
>
> <?xml version="1.0" encoding="UTF-8"?>
> <projectDescription>
> <name>Stuff</name>
> <comment></comment>
> <projects>
> <project>OtherStuff</project>
> </projects>
> <buildSpec>
> <buildCommand>
> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name >
> <triggers>full,incremental,</triggers>
> <arguments>
> <dictionary>
> <key>LaunchConfigHandle</key>
>
> <value> &lt;project&gt;/.externalToolBuilders/New_Builder.la unch </value>
> </dictionary>
> </arguments>
> </buildCommand>
> </buildSpec>
> <natures>
> </natures>
> </projectDescription>
>
>
Re: "Java Build Path" missing on Properties Page [message #214659 is a reply to message #214553] Fri, 08 June 2007 13:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Dan wrote:
> I'm stumped. I setup a new project and pulled in the source from our CVS
> server, established the ant builder using the build.xml file the
> original author of the code created, builds the project just fine, but I
> am having trouble navigating the source ("Open Declaration", search
> references) and I've concluded that I need to set the "Java Build Path"
> so that while browsing source, these missing references/declarations are
> available.
>
> BUT, when I open the project property page, all I see is:
>
> Info
> Builders
> CVS
> Project References

The project was not created as a Java project, but rather a "Simple"
project. Did you create the project before checking out from CVS, or did
you use CVS check-out to create the project for you?
If the former, then just delete the project and re-create it, making
sure to choose Java Project when prompted for the project type.
IF the latter, it is an easy mistake to make when you choose Check
out... from the CVS view. You want to use Check out as... and choose
Java as the project type.

As Ed told you, the .project and .classpath files should be checked in
to CVS so that other developers automatically get those settings when
they check out the project.

Hope this helps,
Eric
Re: "Java Build Path" missing on Properties Page [message #214673 is a reply to message #214659] Fri, 08 June 2007 13:12 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.obrien.yahoo.com

Eric Rizzo wrote:

> The project was not created as a Java project, but rather a "Simple"
> project. Did you create the project before checking out from CVS, or did
> you use CVS check-out to create the project for you?
> If the former, then just delete the project and re-create it, making
> sure to choose Java Project when prompted for the project type.
> IF the latter, it is an easy mistake to make when you choose Check
> out... from the CVS view. You want to use Check out as... and choose
> Java as the project type.

Bingo.

> As Ed told you, the .project and .classpath files should be checked in
> to CVS so that other developers automatically get those settings when
> they check out the project.

I don't have any control on my upstream code supplier. I can suggest it,
but not much hope there. I'm just a "user" of their application. It's a
luxory that I have source code to "figure out how it works." Oh well.

> Hope this helps,

Yes! Thanks.
Previous Topic:CRASH: Eclipse Ver: 3.1.2 / Linux
Next Topic:eclipse/cdt static library compile problem
Goto Forum:
  


Current Time: Thu Apr 25 14:48:36 GMT 2024

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

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

Back to the top