Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » New user - Please help
New user - Please help [message #157020] Fri, 14 November 2003 13:29 Go to next message
Eclipse UserFriend
Hi,

I just started using eclipse. I am having some difficulties in creating
a java project. Please help.

Here is my problem. I am using eclipse 3.0. I want to create a java
project, but the source files and the output files should be in a file
system outside the project's resource hierarchy. I thought I should
create the source folder as a "Linked resource". I did that by creating
a new folder under the root resource. I did that from the projects
properties dialog, "Java Build Path", "Source" tab, I clicked on "Add
Folder" -> "Create New Folder". I specified the folder name and in the
advanced tab, I checked "Link to folder in file system" and specified
the actual path to where the source reside. Now in the "Package
Explorere" view, I see the various java packages. If I double click on
any of the java sources in the package, I get an error
"Cannot open default editor on <filename>. Editor could not be initialized.

But if I open the file using "open with" -> "text editor", I am able to
open the file. But I don't see any syntax highlighting etc. So my
questions are:

1. How can I create a java project where the source files and the class
files reside in a file system outside the project's resource hierarchy.

2. If "Linked resources" are the way the to do this, why am I not able
to open any files using Java editor.

Thanks
Anand
Re: New user - Please help [message #157318 is a reply to message #157020] Sat, 15 November 2003 12:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Anand Narasimhan wrote:

> Hi,
>
> I just started using eclipse. I am having some difficulties in
> creating a java project. Please help.
>
> Here is my problem. I am using eclipse 3.0. I want to create a java
> project, but the source files and the output files should be in a file
> system outside the project's resource hierarchy. I thought I should
> create the source folder as a "Linked resource". I did that by
> creating a new folder under the root resource. I did that from the
> projects properties dialog, "Java Build Path", "Source" tab, I clicked
> on "Add Folder" -> "Create New Folder". I specified the folder name
> and in the advanced tab, I checked "Link to folder in file system" and
> specified the actual path to where the source reside. Now in the
> "Package Explorere" view, I see the various java packages. If I double
> click on any of the java sources in the package, I get an error
> "Cannot open default editor on <filename>. Editor could not be
> initialized.
>
> But if I open the file using "open with" -> "text editor", I am able
> to open the file. But I don't see any syntax highlighting etc. So my
> questions are:
>
> 1. How can I create a java project where the source files and the
> class files reside in a file system outside the project's resource
> hierarchy.
>
> 2. If "Linked resources" are the way the to do this, why am I not able
> to open any files using Java editor.
>
Everything you did is correct. I assume you are using 3.0 M4. This is a
known problem which has been fixed in the current stream.

Dani

> Thanks
> Anand
>
Re: New user - Please help [message #157511 is a reply to message #157318] Sun, 16 November 2003 16:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi Dani,

Thanks for the reply. yes, I am using 3.0M4. What is the current stream?

Thanks
Anand

Daniel Megert wrote:
> Anand Narasimhan wrote:
>
>> Hi,
>>
>> I just started using eclipse. I am having some difficulties in
>> creating a java project. Please help.
>>
>> Here is my problem. I am using eclipse 3.0. I want to create a java
>> project, but the source files and the output files should be in a file
>> system outside the project's resource hierarchy. I thought I should
>> create the source folder as a "Linked resource". I did that by
>> creating a new folder under the root resource. I did that from the
>> projects properties dialog, "Java Build Path", "Source" tab, I clicked
>> on "Add Folder" -> "Create New Folder". I specified the folder name
>> and in the advanced tab, I checked "Link to folder in file system" and
>> specified the actual path to where the source reside. Now in the
>> "Package Explorere" view, I see the various java packages. If I double
>> click on any of the java sources in the package, I get an error
>> "Cannot open default editor on <filename>. Editor could not be
>> initialized.
>>
>> But if I open the file using "open with" -> "text editor", I am able
>> to open the file. But I don't see any syntax highlighting etc. So my
>> questions are:
>>
>> 1. How can I create a java project where the source files and the
>> class files reside in a file system outside the project's resource
>> hierarchy.
>>
>> 2. If "Linked resources" are the way the to do this, why am I not able
>> to open any files using Java editor.
>>
> Everything you did is correct. I assume you are using 3.0 M4. This is a
> known problem which has been fixed in the current stream.
>
> Dani
>
>> Thanks
>> Anand
>>
>
Re: New user - Please help [message #157528 is a reply to message #157511] Sun, 16 November 2003 17:22 Go to previous message
Eclipse UserFriend
Builds newer than 3.0M4 (integration builds that occur weekly).
3.0M5 will come out next week.

Darins

"Anand Narasimhan" <anandn@cisco.com> wrote in message
news:3FB7E675.1090604@cisco.com...
> Hi Dani,
>
> Thanks for the reply. yes, I am using 3.0M4. What is the current stream?
>
> Thanks
> Anand
Previous Topic:Replace Three Grey Bars with Nice Image (Wizard)?
Next Topic:Does Rich Client Platform available now?
Goto Forum:
  


Current Time: Thu May 08 21:48:27 EDT 2025

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

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

Back to the top