At 12:57 PM 11/15/00 -0500, D'Elia, Kevin wrote:
>Hello,
>
> I am working on two separate projects and need different setting for
>things like global classpath, etc. For this purpose, I have created two
>prj.el files residing within the directory structure of the source code for
>both applications. When I open File1.java, the settings from the prj.el
>which JDE finds for that file are applied. Next I open File2.java, from the
>other project, with its specific settings being loaded. As I return to
>File1.java and try to compile, the settings for File2.java are in effect,
>resulting in compilation or other undesirable results. Must I remember to
>explicitly load the project file (using the Project-> Load menu item)
>everytime I want to work with files from different projects or is there some
>customization variable that I can set which will do this for me? Or, am I
>doing something completely wrong altogether. Note that I have no
>customizations in my .emacs, only the code needed by JDE to get things
>running...
>
> Thanks in advance to all who help...
When you execute JDE->Project->Project Files->Save, the minibuffer prompts
you to
enter a project name, e.g.,
Enter project name (foo):
The name you enter must be UNIQUE for each prj.el file that you create or
save with this command. If you do not enter a unique name, the JDE will
have no way of knowing when you have switch projects and thus will not
reload a project file. So the solution is for you to open a java file from
Project 1 and then immediately, with that source buffer still selected, do
a Save and enter a unique name. Repeat this step for Project 2.
Note that the Save command prompts you with the current project name (in
parentheses). If the name is unique, you can simply accept the name by
pressing the Enter key.
This is a FAQ. Unfortunately, the importance of specifying a project name
when saving a project file for the first time is not yet documented in the
JDE User's guide.
- Paul