Skip to main content



      Home
Home » Newcomers » Newcomers » Error when creating a Java project: 'Must specify a URI scheme'
Error when creating a Java project: 'Must specify a URI scheme' [message #214447] Thu, 07 June 2007 13:19 Go to next message
Eclipse UserFriend
Originally posted by: stefan_._sss-smart_._com

Hello.

I'm working with Eclipse SDK version 3.2.2 doing my first steps in Java
development.

I want my projects to be independent from the actual drive and folder
location of my workspace. The projects are not stored in the workspace
folder but in parallel folders at the same level, eg. like this

P:\Development\Java\
P:\Development\Java\Eclipse # workspace
P:\Development\Java\Project1 # 1st project
P:\Development\Java\Project2 # 2nd project

My goal is that if I give my whole Java folder to anyone who stores it
for example in c:\ it should compile with as less changes as possible.

What I've done so far:

I created a linked resource in
'Window->Preferences-General-Workspace-Linked Resources' and of course
enabled linked resources in the same dialog:
Defined path variables: PROGRAMAS_JAVA - P:\Development\Java

My idea is that this variable should be the only thing to adapt for
other developers in order to get my projects compiled.

Then I created the folder Project1 and tried to create a new Java
project. In the upcoming dialog I gave the project name 'Project1' and
used 'Create project from existing source'. As the directory name I used
'PROGRAMAS_JAVA\Project1' and what I got was the following error:

'Must specify a URI scheme:PROGRAMAS_JAVA/Project1'

I also tried using $PROGRAMAS_JAVA and some other notations all with the
same result.

I suppose it's just a matter of syntax but I haven't found the right one
for this dialog.

Thanks for any help.

Stefan

--
Email: _._ = .
_@_ = @
Re: Error when creating a Java project: 'Must specify a URI scheme' [message #214471 is a reply to message #214447] Thu, 07 June 2007 18:55 Go to previous messageGo to next message
Eclipse UserFriend
Stefan wrote:
> Hello.
>
> I'm working with Eclipse SDK version 3.2.2 doing my first steps in Java
> development.
>
> I want my projects to be independent from the actual drive and folder
> location of my workspace. The projects are not stored in the workspace
> folder but in parallel folders at the same level, eg. like this
>
> P:\Development\Java\
> P:\Development\Java\Eclipse # workspace
> P:\Development\Java\Project1 # 1st project
> P:\Development\Java\Project2 # 2nd project
>
> My goal is that if I give my whole Java folder to anyone who stores it
> for example in c:\ it should compile with as less changes as possible.
>
> What I've done so far:
>
> I created a linked resource in
> 'Window->Preferences-General-Workspace-Linked Resources' and of course
> enabled linked resources in the same dialog:
> Defined path variables: PROGRAMAS_JAVA - P:\Development\Java
>
> My idea is that this variable should be the only thing to adapt for
> other developers in order to get my projects compiled.
>
> Then I created the folder Project1 and tried to create a new Java
> project. In the upcoming dialog I gave the project name 'Project1' and
> used 'Create project from existing source'. As the directory name I used
> 'PROGRAMAS_JAVA\Project1' and what I got was the following error:
>
> 'Must specify a URI scheme:PROGRAMAS_JAVA/Project1'
>
> I also tried using $PROGRAMAS_JAVA and some other notations all with the
> same result.
>
> I suppose it's just a matter of syntax but I haven't found the right one
> for this dialog.
>
> Thanks for any help.
>
> Stefan
>
Hi Stefan. I just tried this and it worked for me (WinXP/Eclipse3.2.2).
I did one thing differently, perhaps. I started with a valid Eclipse
project. Then I created a new project and added a folder that linked
back to the first project's top-level folder. I created a variable
called MyPath = "C:\eclipse\workspaces" and then created the linked
folder as "MyPath\testproject", where testproject was the subfolder for
the linked project.

Anyway, hope this helps. Mark Dexter
Re: Error when creating a Java project: 'Must specify a URI scheme' [message #214523 is a reply to message #214471] Fri, 08 June 2007 05:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stefan_._sss-smart_._com

Mark Dexter escribió:
> Stefan wrote:
>> Hello.
>>
>> I'm working with Eclipse SDK version 3.2.2 doing my first steps in
>> Java development.
>>
>> I want my projects to be independent from the actual drive and folder
>> location of my workspace. The projects are not stored in the workspace
>> folder but in parallel folders at the same level, eg. like this
>>
>> P:\Development\Java\
>> P:\Development\Java\Eclipse # workspace
>> P:\Development\Java\Project1 # 1st project
>> P:\Development\Java\Project2 # 2nd project
>>
>> My goal is that if I give my whole Java folder to anyone who stores it
>> for example in c:\ it should compile with as less changes as possible.
>>
>> What I've done so far:
>>
>> I created a linked resource in
>> 'Window->Preferences-General-Workspace-Linked Resources' and of course
>> enabled linked resources in the same dialog:
>> Defined path variables: PROGRAMAS_JAVA - P:\Development\Java
>>
>> My idea is that this variable should be the only thing to adapt for
>> other developers in order to get my projects compiled.
>>
>> Then I created the folder Project1 and tried to create a new Java
>> project. In the upcoming dialog I gave the project name 'Project1' and
>> used 'Create project from existing source'. As the directory name I
>> used 'PROGRAMAS_JAVA\Project1' and what I got was the following error:
>>
>> 'Must specify a URI scheme:PROGRAMAS_JAVA/Project1'
>>
>> I also tried using $PROGRAMAS_JAVA and some other notations all with
>> the same result.
>>
>> I suppose it's just a matter of syntax but I haven't found the right
>> one for this dialog.
>>
>> Thanks for any help.
>>
>> Stefan
>>
> Hi Stefan. I just tried this and it worked for me (WinXP/Eclipse3.2.2).
> I did one thing differently, perhaps. I started with a valid Eclipse
> project. Then I created a new project and added a folder that linked
> back to the first project's top-level folder. I created a variable
> called MyPath = "C:\eclipse\workspaces" and then created the linked
> folder as "MyPath\testproject", where testproject was the subfolder for
> the linked project.
>
> Anyway, hope this helps. Mark Dexter

Thanks Mark for your answer.

Let me see if I can follow your steps in my environment:

(Workspace is p:\Development\Java\Eclipse)
(My desired project folder is p:\Development\Java\Project1)
(All references to p:\Development\Java should be substituted by the
variable PROGRAMAS_JAVA)

First I create a new Project in my workspace:
p:\Development\Java\Eclipse\Project1

Then, in the second step of the new project wizard I use a linked source
to PROGRAMAS_JAVA\Project1\src where my sources will be located.

This works but then all the output-files go to the Eclipse folder
(p:\Development\Java\Eclipse\Project1\bin) and I would like to have all
project files in one folder (they should go to
p:\Development\Java\Project1\bin).

What I finally want to achieve is some structure of the projects in my
workspace, for example all ide-projects in one subfolder
(p:\Development\Java\Ide\Project_1..n) and the console projects into
another one (p:\Development\Java\Console\Project_1..n).
There seems no way to get this structure into one workspace, the only
idea I have is to create two workspaces, one for the ide-project in
p:\Development\Java\Ide and another one for the console projects in
p:\Development\Java\Console.

Since I am new to Eclipse probably I'm missing something.

Thanks again for your help.

Stefan

--
Email: _._ = .
_@_ = @
Re: Error when creating a Java project: 'Must specify a URI scheme' [message #214598 is a reply to message #214523] Fri, 08 June 2007 08:40 Go to previous messageGo to next message
Eclipse UserFriend
Stefan wrote:
> Mark Dexter escribió:
>> Stefan wrote:
>>> Hello.
>>>
>>> I'm working with Eclipse SDK version 3.2.2 doing my first steps in
>>> Java development.
>>>
>>> I want my projects to be independent from the actual drive and folder
>>> location of my workspace. The projects are not stored in the
>>> workspace folder but in parallel folders at the same level, eg. like
>>> this
>>>
>>> P:\Development\Java\
>>> P:\Development\Java\Eclipse # workspace
>>> P:\Development\Java\Project1 # 1st project
>>> P:\Development\Java\Project2 # 2nd project
>>>
>>> My goal is that if I give my whole Java folder to anyone who stores
>>> it for example in c:\ it should compile with as less changes as
>>> possible.
>>>
>>> What I've done so far:
>>>
>>> I created a linked resource in
>>> 'Window->Preferences-General-Workspace-Linked Resources' and of
>>> course enabled linked resources in the same dialog:
>>> Defined path variables: PROGRAMAS_JAVA - P:\Development\Java
>>>
>>> My idea is that this variable should be the only thing to adapt for
>>> other developers in order to get my projects compiled.
>>>
>>> Then I created the folder Project1 and tried to create a new Java
>>> project. In the upcoming dialog I gave the project name 'Project1'
>>> and used 'Create project from existing source'. As the directory name
>>> I used 'PROGRAMAS_JAVA\Project1' and what I got was the following
>>> error:
>>>
>>> 'Must specify a URI scheme:PROGRAMAS_JAVA/Project1'
>>>
>>> I also tried using $PROGRAMAS_JAVA and some other notations all with
>>> the same result.
>>>
>>> I suppose it's just a matter of syntax but I haven't found the right
>>> one for this dialog.
>>>
>>> Thanks for any help.
>>>
>>> Stefan
>>>
>> Hi Stefan. I just tried this and it worked for me
>> (WinXP/Eclipse3.2.2). I did one thing differently, perhaps. I started
>> with a valid Eclipse project. Then I created a new project and added a
>> folder that linked back to the first project's top-level folder. I
>> created a variable called MyPath = "C:\eclipse\workspaces" and then
>> created the linked folder as "MyPath\testproject", where testproject
>> was the subfolder for the linked project.
>>
>> Anyway, hope this helps. Mark Dexter
>
> Thanks Mark for your answer.
>
> Let me see if I can follow your steps in my environment:
>
> (Workspace is p:\Development\Java\Eclipse)
> (My desired project folder is p:\Development\Java\Project1)
> (All references to p:\Development\Java should be substituted by the
> variable PROGRAMAS_JAVA)
>
> First I create a new Project in my workspace:
> p:\Development\Java\Eclipse\Project1
>
> Then, in the second step of the new project wizard I use a linked source
> to PROGRAMAS_JAVA\Project1\src where my sources will be located.
>
> This works but then all the output-files go to the Eclipse folder
> (p:\Development\Java\Eclipse\Project1\bin) and I would like to have all
> project files in one folder (they should go to
> p:\Development\Java\Project1\bin).
>
> What I finally want to achieve is some structure of the projects in my
> workspace, for example all ide-projects in one subfolder
> (p:\Development\Java\Ide\Project_1..n) and the console projects into
> another one (p:\Development\Java\Console\Project_1..n).
> There seems no way to get this structure into one workspace, the only
> idea I have is to create two workspaces, one for the ide-project in
> p:\Development\Java\Ide and another one for the console projects in
> p:\Development\Java\Console.
>
> Since I am new to Eclipse probably I'm missing something.
>
> Thanks again for your help.
>
> Stefan
>
Hi Stefan. I'm somewhat new to Eclipse as well, but I think the idea of
keeping those in separate projects makes sense. There is no disadvantage
that I can see to having a lot of projects. There are some good articles
in Eclipse Magazine about organizing your workspaces and projects. I
don't have time now to get the links, but you can google on Eclipse
magazine. Hope this helps. Mark
Re: Error when creating a Java project: 'Must specify a URI scheme' [message #214633 is a reply to message #214447] Fri, 08 June 2007 08:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Stefan wrote:
> Hello.
>
> I'm working with Eclipse SDK version 3.2.2 doing my first steps in Java
> development.
>
> I want my projects to be independent from the actual drive and folder
> location of my workspace. The projects are not stored in the workspace
> folder but in parallel folders at the same level, eg. like this
>
> P:\Development\Java\
> P:\Development\Java\Eclipse # workspace
> P:\Development\Java\Project1 # 1st project
> P:\Development\Java\Project2 # 2nd project
>
> My goal is that if I give my whole Java folder to anyone who stores it
> for example in c:\ it should compile with as less changes as possible.

The best answer would be to use an SCM tool like CVS or Subversion -
that is BY FAR the best approach to sharing a code base among multiple
developers.

If that is not an option, then I think a simpler approach than what you
are trying would be to export your projects as an Archive file (ZIP) and
send that to whomever needs your projects. I'd recommend excluding the
build output directories when exporting.
On the other end, someone can choose File > Import > Existing Projects
into workspace... and select the ZIP file you sent.

This process is dead-simple and uses features designed into Eclipse. The
approach you're trying is a bit of a hack and not really supported.

Hope this helps,
Eric
Re: Error when creating a Java project: 'Must specify a URI scheme' [message #215040 is a reply to message #214598] Mon, 11 June 2007 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

One point you need to understand. The workspace is not designed to be
shared with other developers. Only projects are expected to be shared.
Projects don't need to reside in your workspace, so the folder layout you
discuss is supported. The project files (.classpath and .project) maintain
references relative to the project itself, so it shouldn't be a problem to
give you projects to someone else. They would need to perform an import
into their workspace, but they could place them any where in the file
system.

The ide and console structures that you reference are possible. You can
have as many projects as you want in the ide or console folder. This may be
the way you want to go. All projects can exist in your workspace at the
same time. When creating the projects, you don't need to worry about linked
resources. On the New Project wizard, select Create new project from
existing source. Don't worry if you don't have any existing source. You
can create the project in an empty directory. Browse to your ide or console
folder. Create a new sub folder for the project. Finish the wizard.
Repeat for each additional project you want to create in your workspace.

You can share these projects by either copying the ide/console folders or
using the File-Export option on the Eclipse menu. The person you share the
project will will need to use the File->Import menu to import them into
their workspace.


"Mark Dexter" <dextercowley@gmail.com> wrote in message
news:f4bipa$l14$1@build.eclipse.org...
> Stefan wrote:
> > Mark Dexter escribi
Re: Error when creating a Java project: 'Must specify a URI scheme' [message #215584 is a reply to message #215040] Wed, 13 June 2007 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stefan_._sss-smart_._com

Thanks a lot for your explanations Dave. In fact I am impressed
by the 'responsiveness' of this newsgroup.

You are right: my idea was to share the workspace itself in order
to have all developers use a unique structure over all projects.

So far we used CVS for our (Delphi and C++) projects and I
barely new about the integrated CVS features of Eclipse.

In the Eclipse projects that I created so far I am referring to
some linked sources/folders where I put my common classes.
In the definition of this linked sources I used a variable that
I defined in the preferences of my Eclipse workspace.
So I suppose that if the other developers define the same variable
in their workspace everything should compile without problems when
they checkout my projects. (Of course they have to checkout as well
the sources with my common classes)

I will make some tests to see how this works.

Thanks again for all your help.

Stefan

Dave Wegener escribió:
> One point you need to understand. The workspace is not designed to be
> shared with other developers. Only projects are expected to be shared.
> Projects don't need to reside in your workspace, so the folder layout you
> discuss is supported. The project files (.classpath and .project) maintain
> references relative to the project itself, so it shouldn't be a problem to
> give you projects to someone else. They would need to perform an import
> into their workspace, but they could place them any where in the file
> system.
>
> The ide and console structures that you reference are possible. You can
> have as many projects as you want in the ide or console folder. This may be
> the way you want to go. All projects can exist in your workspace at the
> same time. When creating the projects, you don't need to worry about linked
> resources. On the New Project wizard, select Create new project from
> existing source. Don't worry if you don't have any existing source. You
> can create the project in an empty directory. Browse to your ide or console
> folder. Create a new sub folder for the project. Finish the wizard.
> Repeat for each additional project you want to create in your workspace.
>
> You can share these projects by either copying the ide/console folders or
> using the File-Export option on the Eclipse menu. The person you share the
> project will will need to use the File->Import menu to import them into
> their workspace.
>
>
> "Mark Dexter" <dextercowley@gmail.com> wrote in message
> news:f4bipa$l14$1@build.eclipse.org...
>> Stefan wrote:
>>> Mark Dexter escribió:
>>>> Stefan wrote:
>>>>> Hello.
>>>>>
>>>>> I'm working with Eclipse SDK version 3.2.2 doing my first steps in
>>>>> Java development.
>>>>>
>>>>> I want my projects to be independent from the actual drive and folder
>>>>> location of my workspace. The projects are not stored in the
>>>>> workspace folder but in parallel folders at the same level, eg. like
>>>>> this
>>>>>
>>>>> P:\Development\Java\
>>>>> P:\Development\Java\Eclipse # workspace
>>>>> P:\Development\Java\Project1 # 1st project
>>>>> P:\Development\Java\Project2 # 2nd project
>>>>>
>>>>> My goal is that if I give my whole Java folder to anyone who stores
>>>>> it for example in c:\ it should compile with as less changes as
>>>>> possible.
>>>>>
>>>>> What I've done so far:
>>>>>
>>>>> I created a linked resource in
>>>>> 'Window->Preferences-General-Workspace-Linked Resources' and of
>>>>> course enabled linked resources in the same dialog:
>>>>> Defined path variables: PROGRAMAS_JAVA - P:\Development\Java
>>>>>
>>>>> My idea is that this variable should be the only thing to adapt for
>>>>> other developers in order to get my projects compiled.
>>>>>
>>>>> Then I created the folder Project1 and tried to create a new Java
>>>>> project. In the upcoming dialog I gave the project name 'Project1'
>>>>> and used 'Create project from existing source'. As the directory name
>>>>> I used 'PROGRAMAS_JAVA\Project1' and what I got was the following
>>>>> error:
>>>>>
>>>>> 'Must specify a URI scheme:PROGRAMAS_JAVA/Project1'
>>>>>
>>>>> I also tried using $PROGRAMAS_JAVA and some other notations all with
>>>>> the same result.
>>>>>
>>>>> I suppose it's just a matter of syntax but I haven't found the right
>>>>> one for this dialog.
>>>>>
>>>>> Thanks for any help.
>>>>>
>>>>> Stefan
>>>>>
>>>> Hi Stefan. I just tried this and it worked for me
>>>> (WinXP/Eclipse3.2.2). I did one thing differently, perhaps. I started
>>>> with a valid Eclipse project. Then I created a new project and added a
>>>> folder that linked back to the first project's top-level folder. I
>>>> created a variable called MyPath = "C:\eclipse\workspaces" and then
>>>> created the linked folder as "MyPath\testproject", where testproject
>>>> was the subfolder for the linked project.
>>>>
>>>> Anyway, hope this helps. Mark Dexter
>>> Thanks Mark for your answer.
>>>
>>> Let me see if I can follow your steps in my environment:
>>>
>>> (Workspace is p:\Development\Java\Eclipse)
>>> (My desired project folder is p:\Development\Java\Project1)
>>> (All references to p:\Development\Java should be substituted by the
>>> variable PROGRAMAS_JAVA)
>>>
>>> First I create a new Project in my workspace:
>>> p:\Development\Java\Eclipse\Project1
>>>
>>> Then, in the second step of the new project wizard I use a linked source
>>> to PROGRAMAS_JAVA\Project1\src where my sources will be located.
>>>
>>> This works but then all the output-files go to the Eclipse folder
>>> (p:\Development\Java\Eclipse\Project1\bin) and I would like to have all
>>> project files in one folder (they should go to
>>> p:\Development\Java\Project1\bin).
>>>
>>> What I finally want to achieve is some structure of the projects in my
>>> workspace, for example all ide-projects in one subfolder
>>> (p:\Development\Java\Ide\Project_1..n) and the console projects into
>>> another one (p:\Development\Java\Console\Project_1..n).
>>> There seems no way to get this structure into one workspace, the only
>>> idea I have is to create two workspaces, one for the ide-project in
>>> p:\Development\Java\Ide and another one for the console projects in
>>> p:\Development\Java\Console.
>>>
>>> Since I am new to Eclipse probably I'm missing something.
>>>
>>> Thanks again for your help.
>>>
>>> Stefan
>>>
>> Hi Stefan. I'm somewhat new to Eclipse as well, but I think the idea of
>> keeping those in separate projects makes sense. There is no disadvantage
>> that I can see to having a lot of projects. There are some good articles
>> in Eclipse Magazine about organizing your workspaces and projects. I
>> don't have time now to get the links, but you can google on Eclipse
>> magazine. Hope this helps. Mark
>
>


--
Email: _DT_ = .
_@_ = @
Re: Error when creating a Java project: 'Must specify a URI scheme' [message #216251 is a reply to message #215584] Fri, 15 June 2007 22:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Stefan wrote:
> Thanks a lot for your explanations Dave. In fact I am impressed
> by the 'responsiveness' of this newsgroup.
>
> You are right: my idea was to share the workspace itself in order
> to have all developers use a unique structure over all projects.
>
> So far we used CVS for our (Delphi and C++) projects and I
> barely new about the integrated CVS features of Eclipse.
>
> In the Eclipse projects that I created so far I am referring to
> some linked sources/folders where I put my common classes.
> In the definition of this linked sources I used a variable that
> I defined in the preferences of my Eclipse workspace.
> So I suppose that if the other developers define the same variable
> in their workspace everything should compile without problems when
> they checkout my projects. (Of course they have to checkout as well
> the sources with my common classes)

Why not make an Eclipse project (or projects) out of that "common" code,
too? If everything is an Eclipse project, you can export a Team Project
Set and send it to others to import into their workspaces; that way they
don't even have to do the check-out manually, the Team Project Set
inherently knows to get the projects from CVS.

Hope this helps,
Eric
Re: Error when creating a Java project: 'Must specify a URI scheme' [message #216645 is a reply to message #216251] Tue, 19 June 2007 03:47 Go to previous message
Eclipse UserFriend
Originally posted by: stefan_._sss-smart_._com

Eric, thank you for your suggestions.

I will search for some documentation about Team Project Sets
and then make some tests with our CVS.
After this I will document my experiences in this NG thread.

Stefan

Eric Rizzo escribió:
> Stefan wrote:
>> Thanks a lot for your explanations Dave. In fact I am impressed
>> by the 'responsiveness' of this newsgroup.
>>
>> You are right: my idea was to share the workspace itself in order
>> to have all developers use a unique structure over all projects.
>>
>> So far we used CVS for our (Delphi and C++) projects and I
>> barely new about the integrated CVS features of Eclipse.
>>
>> In the Eclipse projects that I created so far I am referring to
>> some linked sources/folders where I put my common classes.
>> In the definition of this linked sources I used a variable that
>> I defined in the preferences of my Eclipse workspace.
>> So I suppose that if the other developers define the same variable
>> in their workspace everything should compile without problems when
>> they checkout my projects. (Of course they have to checkout as well
>> the sources with my common classes)
>
> Why not make an Eclipse project (or projects) out of that "common" code,
> too? If everything is an Eclipse project, you can export a Team Project
> Set and send it to others to import into their workspaces; that way they
> don't even have to do the check-out manually, the Team Project Set
> inherently knows to get the projects from CVS.
>
> Hope this helps,
> Eric


--
Email: _DT_ = .
_@_ = @
Previous Topic:undefined reference to `main'
Next Topic:Eclipse InfoCenter - Polish interface
Goto Forum:
  


Current Time: Sun Oct 26 04:27:51 EDT 2025

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

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

Back to the top