>I don't think this is a valid argumentation. The C compiler does not
>even know about java. But java was most likely built using a C compiler
>(and therefore knows about it) and knows where it has put its include
>files. So I think it is reasonable to ask java for the path.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
> It appears that under Linux there is some extra problem you don't
> have with windows.
There is no difference between operating systems or compilers in this
regard.
> I assumed your problem was wanting an automatic way to inform a
> C/C++ compiler of where the include files were -- how to add that
> info to the Borland/MS/Gnu ... C++ project file used to compile the
> JNI.
The C or C++ compiler needs to know the location of the JNI header
files that are shipped with the JDK. The problem is common to all
platforms, including windows.
The files will be in different locations depending the location of the
JDK, the platform the JDK is intended to run on, and perhaps even the
JDK vendor.
The JDK knows best about its own file layout, and ideally it should be
able to answer questions about it too.
Of course the JDK should not be expected to know how to configure a
Makefile or project file for any number of different compilers, but
that wasn't the issue here. It should be able to *provide* information
about its own file layout in a generic format that can be imported by
other tools.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Raymond DeCampo - 13 Sep 2005 18:50 GMT
>>It appears that under Linux there is some extra problem you don't
>>have with windows.
[quoted text clipped - 23 lines]
> about its own file layout in a generic format that can be imported by
> other tools.
I think such a claim would be bolstered by an example of a library that
does do this.
Ray

Signature
XML is the programmer's duct tape.
Torsten Landschoff - 13 Sep 2005 19:06 GMT
Raymond DeCampo schrieb:
> I think such a claim would be bolstered by an example of a library that
> does do this.
He already mentioned kaffe, didn't he? The first library I knew which
does this was the Gimp Toolkit, which provides gtk-config:
torsten@pulsar:~$ gtk-config --cflags
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
torsten@pulsar:~$ gtk-config --libs
-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl
-lXi -lXext -lX11 -lm
etc.
Greetings
Torsten
Gordon Beaton - 13 Sep 2005 19:30 GMT
> I think such a claim would be bolstered by an example of a library that
> does do this.
I can't see that I made any claims in the post you quoted. I expressed
an opinion about information I think a JDK component should be able to
provide.
Regardless, this thread started with a reference to gtk-config, and I
responded with a reference to a Blackdown-specific tool
(j2sdk-config).
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Raymond DeCampo - 13 Sep 2005 20:48 GMT
>>I think such a claim would be bolstered by an example of a library that
>>does do this.
>
> I can't see that I made any claims in the post you quoted. I expressed
> an opinion about information I think a JDK component should be able to
> provide.
I was referring to your statement that "[the JDK] should be able to
*provide* information about its own file layout in a generic format that
can be imported by other tools." If you would rather classify that as
an opinion than a claim, fine. This was a genuine inquiry on my part,
not an attempt to disparage you or your ideas or to play language lawyer
or other forms of "gotcha".
> Regardless, this thread started with a reference to gtk-config, and I
> responded with a reference to a Blackdown-specific tool
> (j2sdk-config).
Thanks, I saw those.
Ray

Signature
XML is the programmer's duct tape.
Gordon Beaton - 14 Sep 2005 07:51 GMT
>I think such a claim would be bolstered by an example of a library that
>does do this.
> I was referring to your statement that "[the JDK] should be able to
> *provide* information about its own file layout in a generic format
> that can be imported by other tools."
In that case, I'm confused. Isn't that exactly what the examples
already provided do?
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Raymond DeCampo - 14 Sep 2005 13:42 GMT
>>I think such a claim would be bolstered by an example of a library that
>>does do this.
[quoted text clipped - 5 lines]
> In that case, I'm confused. Isn't that exactly what the examples
> already provided do?
You are reading too much into this. :-)
In the second quote above, I was clarifying which statement I
interpreted as a "claim", since you stated that you were unaware of any
claims made in your post.
I wasn't implying that the examples given elsewhere were invalid.
Ray

Signature
XML is the programmer's duct tape.