Kay Schulz wrote:
>
> Dear all
> I use packages with Java and JDE and Emacs
> Now: How can I compile the sources?
> When I open the file I open it in the directory but compilation
> doesn't work, because I need to compile it from the top of the structure
You need to set your CLASSPATH to point to the top of the structure.
For example, I have classes in a package called com.wsicorp.wps located
in the directory /usr/people/ivan/classes/com/wsicorp/wps.
My CLASSPATH is set to
".:/usr/java/lib/rt.jar:/usr/people/ivan/classes/com/wsicorp/wps"
You can change the classpath by executing:
M-x jde-set-global-classpath
It would be nice if JDE (or emacs?) would not change directory before
attempting to compile. Perhaps this could be an option? This would
eliminate the need to set the CLASSPATH when using packages.
Instead of:
cd com/wsicorp/wps
javac myClass.java
this would be nice:
javac com/wsicorp/wps/myClass.java (or even javac
com.wsicorp.wps.myClass)
Hope this helps,
Ivan
--
Ivan Brusic | "Computers are nothing but a perfect
E-mail: [EMAIL PROTECTED] | illusion of order" - Iggy Pop
Phone: (978) 262-0758 |