Howard Abrams wrote:
>
> With a transfer in companies, I lost of lot of my saved messages that
> have been posted to this list. One of them that I stored because I knew
> I would eventually need it is how to set up automatic compiles of files
> that are part of a package.
>
> For instance, my Foo.java file contains:
>
> package com.wirex.rna;
>
> as the first non-comment line. This java file is stored in
> ~/work/src/com/wirex/rna. If I do:
>
> cd ~/work/src
> java com/wirex/rna/Foo.java
>
> everything works. But now I can't compile it using JDE, as I get errors
> like:
>
> cd /home/howard/work/wirex/src/com/wirex/rna/
> javac Foo.java
>
> Foo.java:42: Class com.wirex.rna.CmdNode not found in type declaration.
>
> Going through the documentation it seems that I should set either of the
> following in my prj.el
>
> '(jde-compile-option-directory "/home/howard/work/wirex/src")
> '(jde-run-working-directory "/home/howard/work/wirex/src")
>
> By setting the jde-run-working-directory, I can get the program to run,
> but there doesn't seem to be something like
> jde-compile-working-directory ... or something to specify the package.
> Am I just missing something here?
Yes, you are missing something. :) The variable you are looking for is:
jde-global-classpath.
You can execute 'M-x jde-set-global-classpath' and enter
/home/howard/work/wirex/src/ (the parent directory of com/wirex/rna/)
plus any other additional paths in your classpath.
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 |