Hi

It is a bit difficult to advise you on this as it depends on your setup.

However, as a first step you need to find out how <file_name> and <file_name(2)> are loaded.

To do this look into the buffer list from the xemacs menu and see what the paths for each of these files are.

You may find that they are <:/dir1/dir2/dir3/dir4/file_name> and </dir1/dir4/<file_name2>

this implies that you have set up a soft link (ln -s in linux ) or ("shortcut" in windows) from dir 1 to dir 4.

This link may be important for other purposes - you need to check this.

There are various remedies:

1) Use emacs - I can't see what extra xemacs gives for developing with JDE - and performance is much better with emacs.

2) Do your development from a directory which has no soft links

2) Start xemacs from a shell(bat) loading a java source file with the path as in that loaded by JDE - usually the "long" path

3) Be very consistent about how you load source file - for example always from the speedbar.

I found that only (1) was a really satisfactory solution.

Bye R.
 
 

Shashank wrote:

Hi !

What is this Soft link.
How to break this or there is no solution to it.?

thanks in advance,

take care
Shashank

Ralph Jorre wrote:

Hi there

Yes - I had exactly the same problem.

I think you may have a soft link to the directory where the java source code is.

Hence when you load a file it can load through 2 paths and think that it is a file with the same name in 2 different directories and hence two different files.

The best solution is to use emacs instead of xemacs as emacs seems to know it is the same file.

Failing this you need to make sure you always load through the same path as xemacs - this is difficult as the debugger also loads files.

Or shift you source code to a directory not on a softlink.

Bye R.

Shashank wrote:

Hi !

If I am editing a  java source file.  and then try to compile it
Control( c v c)

the modeline shows File with same name but number 2 . meaning it opens
up second buffer with same name and all changes are affected in this new
buffer.

How to stop this creation of new buffer file.

take care,
Shashank

-- 
Dr R Jorre
C/Ramon Matias 24
La Corujera
38390 Santa Ursula
Tenerife, Islas Canarias
SPAIN

Tel:    0034 922 337035
EMAIL:  [EMAIL PROTECTED]
 
-- 
Dr R Jorre
C/Ramon Matias 24
La Corujera
38390 Santa Ursula
Tenerife, Islas Canarias
SPAIN

Tel:    0034 922 337035
EMAIL:  [EMAIL PROTECTED]
 

Reply via email to