RE: [java-gnome-hackers] Re: Generating Java files from the gener ator
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2002-08-14 13:29:45
|
> I've managed to generate .java files from gnome2.defs using the > following: > > $java -cp $CLASSPATH:/home/wyvern/src/java-gnome/src/tools > DefsProcessor --out-dir=/home/wyvern/tmp/java-gnome > defs/gnome2.defs > > ~/output.txt 2>&1 There is a script in the src directory that should do this for you. > As I work through the gnome classes, should I put them in > java-gnome/src/java/org/gnu/gnome (over-writing what's > already there)? > Do the generated .c and .h files need to replace the ones in > /src/jni? > I think I'm right here, but want to be *sure* before I start > clobbering > files. Think of it as more of a merge. You need to make sure you don't overwrite any manually code that has been added in the src/java or src/jni directory. The generator is now just a development tool that generates the binding code for us. For example, I just changed the signature of a method in the gtk2.defs file and ran the generator. Once finished I just copy/paste the method from the java and c file into the equivalent files in src/java and src/c. Hope this helps. I am still out of the office on a family issue. I will have minimal access to email until late tonight. I hope to catch up with you then. -Jeff |