Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Error Accessing Compilation Unit
Error Accessing Compilation Unit [message #111761] Mon, 18 August 2003 14:37 Go to next message
Eclipse UserFriend
Originally posted by: ems.gmx.net

Dear all,

[Sorry for the long posting, but I want to give as much relevant info as
possible.]

when creating a new project in Eclipse 2.1.1, everything works fine. When
creating a method and typing, e.g., "System.", a window pops up and lets me
select, e.g., "out". There's also immediate underscoring of errors etc.

Now for the problem: I am working on a team project that I am accessing on a
remote server via CVS. Checking in and out works fine, also compiling with
an ANT build.xml file.

I chose "Check out as Project" in the CVS Repository Exploring Perspective.

-- Is it normal that this project (let's call it "my_cvs_project") doesn't
show up in the Java Browsing Perspective?

What's worse: When I am typing in a method, e.g., "System.", NO friendly
window pops up but an error message saying "Error Accessing Compilation
Unit" and "Cannot access compilation unit. Reason: my_cvs_project does not
exist."

Of course, the Project my_cvs_project exists in the workspace; I checked it
out as described above, and I can synchronize (update, commit) without
problems.

If I try to add a new project "my_cvs_project" it says project already
exists (which is true).

It might only be one line or variable that I need to adjust, but I don't
know what... :(

I'd be glad if someone could give me a hint here!

Thank you very much, regards,

Eckart
<ems@gmx.net>
Re: Error Accessing Compilation Unit [message #114097 is a reply to message #111761] Thu, 21 August 2003 16:25 Go to previous messageGo to next message
Jerome Lanneluc is currently offline Jerome LannelucFriend
Messages: 572
Registered: July 2009
Senior Member
You cannot do much if the project is not a Java project.
You need to Check Out As.... and choose Java project in the wizard.

Jerome

"Eckart M. Schaper" <ems@gmx.net> wrote in message
news:bhqobd$vqu$1@eclipse.org...
> Dear all,
>
> [Sorry for the long posting, but I want to give as much relevant info as
> possible.]
>
> when creating a new project in Eclipse 2.1.1, everything works fine. When
> creating a method and typing, e.g., "System.", a window pops up and lets
me
> select, e.g., "out". There's also immediate underscoring of errors etc.
>
> Now for the problem: I am working on a team project that I am accessing on
a
> remote server via CVS. Checking in and out works fine, also compiling with
> an ANT build.xml file.
>
> I chose "Check out as Project" in the CVS Repository Exploring
Perspective.
>
> -- Is it normal that this project (let's call it "my_cvs_project") doesn't
> show up in the Java Browsing Perspective?
>
> What's worse: When I am typing in a method, e.g., "System.", NO friendly
> window pops up but an error message saying "Error Accessing Compilation
> Unit" and "Cannot access compilation unit. Reason: my_cvs_project does not
> exist."
>
> Of course, the Project my_cvs_project exists in the workspace; I checked
it
> out as described above, and I can synchronize (update, commit) without
> problems.
>
> If I try to add a new project "my_cvs_project" it says project already
> exists (which is true).
>
> It might only be one line or variable that I need to adjust, but I don't
> know what... :(
>
> I'd be glad if someone could give me a hint here!
>
> Thank you very much, regards,
>
> Eckart
> <ems@gmx.net>
>
>
Re: Error Accessing Compilation Unit [message #114121 is a reply to message #114097] Thu, 21 August 2003 16:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

That is why it is usually best to check the .classpath and .project
files into CVS. IF you do that you don't need to figure out how to check
it out. You don't need to do Check out as... It can figure out exactly
the type of project for you and also have the class path all setup.

Rich
Re: Error Accessing Compilation Unit [message #123691 is a reply to message #114097] Sun, 07 September 2003 11:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ems.gmx.net

Hi Jerome,

thank you very much for your hint; after some experimenting, it now works
for me!

"Jerome Lanneluc" <jerome_lanneluc@fr.ibm.com> wrote in
news:bi2rof$6ef$1@eclipse.org:
> You cannot do much if the project is not a Java project.
> You need to Check Out As.... and choose Java project in the wizard.

You should NOT check out the project from the CVS repository using "check
out as project" (as stated in the online help as a general rule) BUT using
"check out as..." and then choose "Java Project", then adjust your source
and output paths if necessary.

Thanks again and best regards,

Eckart
Re: Error Accessing Compilation Unit [message #123705 is a reply to message #114121] Sun, 07 September 2003 11:50 Go to previous message
Eclipse UserFriend
Originally posted by: ems.gmx.net

Hi Richard,

"Richard L. Kulp" <richkulp@NOSPAM.us.ibm.com> wrote in
news:bi2t2f$6mo$2@eclipse.org:

> That is why it is usually best to check the .classpath and .project
> files into CVS. [...]

Unfortunately, this was not the case here with our project.

Thank you very much,

Eckart
Previous Topic:Exporting help plugins
Next Topic:[ANN]: eclipse-games 2.0 released
Goto Forum:
  


Current Time: Fri Apr 26 18:40:35 GMT 2024

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

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

Back to the top