I have eclipse plug-in that was written under windows and uses "C:\" a lot. is there any way to map "C:\" to any chosen dir?
P.S. I do know I can run it under wine, but that is not what I want.
Assuming that Eclipse has a knowable current directory (maybe where it was launched?), you can just create a directory/soft-link/bind-mount there that is named "C:", and that will solve the first problem.
The next problem is that '\' is not a directory separator on Linux. If you're very lucky there may be translation layer somewhere in Eclipse that fixes that for you, but otherwise, you can just create files with very long file names that look like Windows pathnames. (e.g.
Really though, the best thing would be to give the author of the plugin a good beating with a clue bat (ok, submit a bug) - I mean, this won't even work nice on all Windows machines.
If all else fails, edit the plugin with a binary editor, just remember to leave the strings the same length (and hope that nothing does a check-sum).
You may create a file like "C:\boot.ini" on linux in the root directory with root permission, which is not recommendet, but maybe fine on a single user machine.
However, to use the plugin, a file "C:\boot.ini" is searched in the local directory, so you would need symbolic link or copy in every directory from where you try to use the file, since "C:\" is not recognized as a partition.
If there is a directory with multiple files, there is no practical way to use it - get the source of the plugin, if possible, or inform the author.
Absolute paths are a no go for compatible, transferable software. A typical mistake from windows-only-guys.