Forgive any ignorance here, but I'm using jde as I learn java....
I have several example programs that start out with
package jdg.ch05;
Now using C-c C-v C-c compiles as
~/home/jdg/ch05$ javac FooBar.java
But what I really want is (at least with my current CLASSPATH)
~/home$ javac ./jdg/ch05/FooBar.java
I mean the latter works, but I need to M-x shell to do this.
Question: Would it be a good idea to parse out the package statement
so that the compile command starts out in the appropriate
subdirectory? At least if that directory exists.
If so, could anyone give some hints on the appropriate elisp to do so.
Also, while we're talking elisp, how would I paste buffer-file-name
into my source?
I did search the FAQ BTW