Re: Problem report
Wolfgang Pausch <[email protected]>
| Newsgroups | gmane.emacs.jdee |
|---|---|
| Message-ID | <[email protected]> |
Hello Suraj, > >From the report file it looks like you are setting > > jde-ant-use-global-classpath to t and expecting JDE to start the ant > process with the contents of jde-global-classpath in the CLASSPATH > environment variable. Well, originally this variable was set to nil. Then I found it some days ago, was happy about having found a reason why it doesn't find that jar file, but it didn't help... > I didn't know about this option until I looked at your problem report so I > might be wrong, but from the source and some testing it appears that > jde-ant-use-global-classpath only works if you use the > jde-ant-invocation-method of "Java", ie you run ant by running a java class > instead of using the ant start scipts in your ANT_HOME. The script method > is the default and it doesn't look like you've changed it. Yes, I use the script-method. > Perhaps others can chime in with their opinions but I'd recommend putting > in your classpath in your build.xml instead of relying on it being set > externally. Ok, I did it that way and it works. However, I think what jde does here is confusing. There should at least be a warning in the doc-strings in what circumstances it transmits jde-global-classpath to ant and in what not. I started trying to solve this problem with the expectation "I tell jde what the classpath is and don't have to worry about how it handles the rest". Thanks for your help, Wolfgang