Niels Olof Bouvin writes: > Hi > > I have happily used JDEE for a few years. On the occasion of a new machine > I have just upgraded to Emacs 21.1 running on W2K. I use jdk1.4.0-rc and > the latest cygwin, speedbar, semantic, elib and eieio, all properly compiled > through make. I originally tried installing JDEE 2.2.9beta8 with little > success - jde-db.el would not compile,
Why not and so what? jde-db runs fine uncompiled. > and I could not get the compile > server to work. Why not? There are a lot of people, including myself, running essentially the same configuration without any problem. > Thus, I resolved to use the JDEE 2.2.8 instead, where I > have encountered a puzzling error. I do not believe that the problem is > with my .emacs, as I experimentally have interchanged with the minimal > .emacs at jdee.sunsite.dk (with the necessary modifications to global > classpath etc.) with no change. > > Whenever I try to compile a file, the compiler is unable to locate the file. > If I repeat the statements from the *compilation* buffer in a *shell* > buffer, there is no problem. > > As the problem seemed to be directory related, I have tried to add a couple > of commands (pwd ; printenv) to see where the compiler was at. This revealed > the following [cut from the *compilation* buffer]: > > cd d:/java/arakne/dk/coconut/arakne/browser/ <-- this is indeed the correct dir. > pwd ; printenv ; javac -classpath >"d:/java/arakne;d:/java/backend;c:/cygwin/jdk1.4.0/src" -sourcepath >"d:/java/arakne;d:/java/backend;c:/cygwin/jdk1.4.0/src" -d d:/java/arakne -target 1.3 >Browser.java > /home/bouvin <-- how did it end up here? > > [...] > > PWD=/home/bouvin > > [...] > > OLDPWD=/cygdrive/d/java/arakne/dk/coconut/arakne/browser > > error: cannot read: Browser.java <-- small wonder in /home/bouvin! > 1 error > > Compilation exited abnormally with code 1 at Wed Feb 06 13:41:47 > > So... it would seem that between cd'ing to the correct directory, and > compiling the designated file, something happens. I do not know whether > this mischief is caused by Emacs 21.1, JDEE, or some misconfiguration on my > part. > JDE 2.2.8 uses the implicit shell to run javac. Pehaps there is something in your .bshrc that changes the directory. > Any suggestions? > Use JDE 2.2.9 beta. It launches javac directly and is much more robust than 2.2.8. - Paul
