Re: issues with jcc and com.sun.tools.doclets.Taglet

2009-08-18 Thread Andi Vajda


On Tue, 18 Aug 2009, Andi Vajda wrote:



On Tue, 18 Aug 2009, Christian Kofler wrote:


I am new to JCC - but I alread like it!
Well, I did not yet manage to wrap the Java library I want to,
but I appreciate the project in general...

I am stuck at the moment with the following problem:
The Java code seems to use com.sun.tools.doclets.Taglet and JCC does not
like to find that class. I looked around and it resides in tools.jar of
the sun java installation on my 64 bit linux
(/usr/lib/jvm/java-6-sun/lib). Yes, I added an --include for that jar
but JCC still does not find it.

Is this a known issue? Does anybody have some suggestions?


Did you try --classpath ?
http://lucene.apache.org/pylucene/jcc/documentation/readme.html#classpath


Maybe the JVM is depending on some native code that can't be found for this 
class. In that case you'd need to use -Djava.library.path= with 
vmargs. If that resolves the problem, adding another command line flag to 
jcc for setting the library path should be considered.


Andi..


Re: passing vmargs in JCC

2009-08-18 Thread Andi Vajda


On Tue, 18 Aug 2009, Christian Kofler wrote:


would it be possible to pass additional vmargs to JCC?


Adding support for a --vmargs command line argument to JCC could be done.
Out of curiosity, what extra VM parameter were you thinking of using ?

Andi..


Re: issues with jcc and com.sun.tools.doclets.Taglet

2009-08-18 Thread Andi Vajda


On Tue, 18 Aug 2009, Christian Kofler wrote:


I am new to JCC - but I alread like it!
Well, I did not yet manage to wrap the Java library I want to,
but I appreciate the project in general...

I am stuck at the moment with the following problem:
The Java code seems to use com.sun.tools.doclets.Taglet and JCC does not
like to find that class. I looked around and it resides in tools.jar of
the sun java installation on my 64 bit linux
(/usr/lib/jvm/java-6-sun/lib). Yes, I added an --include for that jar
but JCC still does not find it.

Is this a known issue? Does anybody have some suggestions?


Did you try --classpath ?
http://lucene.apache.org/pylucene/jcc/documentation/readme.html#classpath

Andi..



Re: passing vmargs in JCC

2009-08-18 Thread Bill Janssen
You can do this with the "vmargs" keyword argument to initVM.

Bill

Christian Kofler  wrote:

> Hi,
> 
> would it be possible to pass additional vmargs to JCC?
> 
> Bill discovered this issue with "-Djava.awt.headless=true" and Andi
> added this to cpp.py.
> 
> Wouldn't it be nice to extend that to a list of vmargs that can be
> passed via something like:
>   python -m jcc --vmarg -Dfoo --vmarg -Dbar
> or
>   python -m jcc --vmargs "-Dfoo -Dbar"
> ?
> 
> The code I want to wrap at the moment needs some stuff set as vmargs.
> 
> 
> Cheers
> 
> Christian
> 


passing vmargs in JCC

2009-08-18 Thread Christian Kofler

Hi,

would it be possible to pass additional vmargs to JCC?

Bill discovered this issue with "-Djava.awt.headless=true" and Andi 
added this to cpp.py.


Wouldn't it be nice to extend that to a list of vmargs that can be 
passed via something like:

  python -m jcc --vmarg -Dfoo --vmarg -Dbar
or
  python -m jcc --vmargs "-Dfoo -Dbar"
?

The code I want to wrap at the moment needs some stuff set as vmargs.


Cheers

Christian



issues with jcc and com.sun.tools.doclets.Taglet

2009-08-18 Thread Christian Kofler

Hi,

I am new to JCC - but I alread like it!
Well, I did not yet manage to wrap the Java library I want to,
but I appreciate the project in general...

I am stuck at the moment with the following problem:
The Java code seems to use com.sun.tools.doclets.Taglet and JCC does not
like to find that class. I looked around and it resides in tools.jar of
the sun java installation on my 64 bit linux
(/usr/lib/jvm/java-6-sun/lib). Yes, I added an --include for that jar
but JCC still does not find it.

Is this a known issue? Does anybody have some suggestions?

Thank you very much in advance.


Cheers

Christian