all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* java project classpath in emacs
@ 2007-03-28  8:49 QinGW
  2007-03-28 13:25 ` rob wahoo
  2007-03-29  1:18 ` koocyton
  0 siblings, 2 replies; 3+ messages in thread
From: QinGW @ 2007-03-28  8:49 UTC (permalink / raw)
  To: help-gnu-emacs

hello,everybody!
        how can I get different classpath value when I load different
        java project?

        for example:
        
1)        project A
          it's classpath as following:
          /home/qingwu/source/A/src
          /home/qingwu/source/A/lib
          /home/qingwu/source/A/build/classes 
2)        project B
          it's classpath as following:
          /home/qingwu/source/B/src
          /home/qingwu/source/B/lib
          /home/qingwu/source/B/build/classes 

I have setted "jde-global-classpath" variable using different value in
prj.el and add hook to jde-mode, but I still can't find lib package when I compile one java
source file.

my env:emacs jde ant

Thanks very much, qingwu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: java project classpath in emacs
  2007-03-28  8:49 java project classpath in emacs QinGW
@ 2007-03-28 13:25 ` rob wahoo
  2007-03-29  1:18 ` koocyton
  1 sibling, 0 replies; 3+ messages in thread
From: rob wahoo @ 2007-03-28 13:25 UTC (permalink / raw)
  To: help-gnu-emacs

Are you sure the jde-global-classpath is getting set when you switch
between projects?

When you are in an open java file from project A what is the value of
jde-global-classpath? When you switch to a java file in project B what
is the value of the jde-global-classpath?

Also, are you explicitly adding each .jar in the lib directory to your
classpath?

Rob


On Mar 28, 4:49 am, QinGW <dealo...@21cn.com> wrote:
> hello,everybody!
>         how can I get different classpath value when I load different
>         java project?
>
>         for example:
>
> 1)        project A
>           it's classpath as following:
>           /home/qingwu/source/A/src
>           /home/qingwu/source/A/lib
>           /home/qingwu/source/A/build/classes
> 2)        project B
>           it's classpath as following:
>           /home/qingwu/source/B/src
>           /home/qingwu/source/B/lib
>           /home/qingwu/source/B/build/classes
>
> I have setted "jde-global-classpath" variable using different value in
> prj.el and add hook to jde-mode, but I still can't find lib package when I compile one java
> source file.
>
> my env:emacs jde ant
>
> Thanks very much, qingwu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: java project classpath in emacs
  2007-03-28  8:49 java project classpath in emacs QinGW
  2007-03-28 13:25 ` rob wahoo
@ 2007-03-29  1:18 ` koocyton
  1 sibling, 0 replies; 3+ messages in thread
From: koocyton @ 2007-03-29  1:18 UTC (permalink / raw)
  To: help-gnu-emacs


(setq jde-compile-option-classpath (quote ("./" 
	"/home/qingwu/source/A/src" "/home/qingwu/source/A/lib" "/home/qingwu/source/A/build/classes"
	"/home/qingwu/source/B/src" "/home/qingwu/source/B/lib" "/home/qingwu/source/B/build/classes"
)))

QinGW <dealover@21cn.com> writes:

> hello,everybody!
>         how can I get different classpath value when I load different
>         java project?
>
>         for example:
>         
> 1)        project A
>           it's classpath as following:
>           /home/qingwu/source/A/src
>           /home/qingwu/source/A/lib
>           /home/qingwu/source/A/build/classes 
> 2)        project B
>           it's classpath as following:
>           /home/qingwu/source/B/src
>           /home/qingwu/source/B/lib
>           /home/qingwu/source/B/build/classes 
>
> I have setted "jde-global-classpath" variable using different value in
> prj.el and add hook to jde-mode, but I still can't find lib package when I compile one java
> source file.
>
> my env:emacs jde ant
>
> Thanks very much, qingwu

-- 
Good Good Life , Day Day Study !
http://bbs.chinaunix.net/forumdisplay.php?fid=27
              -- koocyton

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-29  1:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-28  8:49 java project classpath in emacs QinGW
2007-03-28 13:25 ` rob wahoo
2007-03-29  1:18 ` koocyton

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.