Getting started with jdb support - getting the main prog from gideonprj
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Thu Apr 19 16:57:06 UTC 2001
On Thu, 19 Apr 2001, you wrote:
> On Wed, 18 Apr 2001, Richard Dale wrote:
>
> > The jdbcontroller uses the the mainprogram attribute to get the name of the main
> > java class. I had to hand code a suitable 'gideonprj' file to define that,
> > see below.
>
> Without relative path? It surprises me that it works, as you probably
> have the .class file in a subdirectory?
Yes, you're right - it didn't have 'src' in the path. Should it - is that a bug
- can we assume that an automake project will always have a src directory? You
can't put 'src/ScribbleWindow' in the gideonprj file, it didn't get parsed. In
jdbcontroller, I stripped off the path and and just ran a 'jdb ScribbleWindow'
command, relying on the $CLASSPATH to be set up for the 'src' directory. I
think it should strip off the directory path and add that to the contents of
$CLASSPATH, then pass that as a '-classpath' parameter to jdb.
> I don't know about this whole classpath business, so you as the
> java expert should make any necessary modifications :-)
Hmm... I wouldn't say that, I've been trying to do Objective-C for about the
last year, I've only got sidetracked into doing Java stuff. The language does
appear to have potential though :-) And I think Oliver is on the case now...
> > I don't think KDevelop changes its current directory, when you open a
> > project, so I had problems with classes in '.' not being picked up by jdb from
> > the class path correctly.
>
> I think we should have a configurable 'current directory' for the
> running application so that subprocesses don't depend on the working
> directory of kdevelop itself. Support for builddir != srcdir would
> also be nice.
Yes, I agree you have the same problem with '.' in both $PATH and $CLASSPATH.
.class files could be built into the .libs directory - there is a JAVAROOT make
variable (currently '.') - would that be a good idea? I don't know if there is a
standard KDE install directory hierarchy for installing java .class files, but
that would also be useful.
-- Richard
-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop-devel
mailing list