Hello, again
./configure on my debian machine will succeed only if I do:
export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.13/"
These are the last line of the configure out put.
But like I said before it fails on make .
__java__.cc: In member function ‘octave_value octave_java::do_java_set(JNIEnv*, const std::string&, const octave_value&)’:
__java__.cc:1812: warning: deprecated conversion from string constant to ‘char*’
__java__.cc: In static member function ‘static octave_value octave_java::do_java_set(JNIEnv*, const std::string&, const std::string&, const octave_value&)’:
__java__.cc:1834: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [__java__.oct] Error 1
make[1]: Leaving directory `/home/ozdeb/Desktop/java-1.2.6/src'
make: *** [build] Error 2
Are these the header files you mean ?
/usr/lib/jvm/java-6-sun-1.6.0.13/include
/usr/lib/jvm/java-6-sun-1.6.0.13/include/linux
/usr/lib/jvm/java-6-sun-1.6.0.13/include/linux/jni_md.h
/usr/lib/jvm/java-6-sun-1.6.0.13/include/linux/jawt_md.h
/usr/lib/jvm/java-6-sun-1.6.0.13/include/jni.h
/usr/lib/jvm/java-6-sun-1.6.0.13/include/jdwpTransport.h
/usr/lib/jvm/java-6-sun-1.6.0.13/include/jawt.h
/usr/lib/jvm/java-6-sun-1.6.0.13/include/classfile_constants.h
/usr/lib/jvm/java-6-sun-1.6.0.13/include/jvmti.h
Because if so, they are already under java home.
I even tried copying them to the working directory of java/src/ where make is working. But it still fails.
Any idea ?
B.T.W the silence about the subject means nobody is using jhandles on linux ? Someone ?
Thanks, Oz
On Thu, May 21, 2009 at 5:02 PM, Michael Goffioul
<address@hidden> wrote:
On Thu, May 21, 2009 at 3:56 PM, Oz Nahum <
address@hidden> wrote:
>>JDK include directory is not in the standard include path, so it
>>seems you have to add it manually, through some environment
>>variable. Under MSVC, I use INCLUDE variable.
>
> Ok, could someone translate this to noobs simple language ?
> I understand you develop this software under microsoft windows [:-(], and I
> don't understand
> what is the include variable. You mean I have to change manually the
> configure or make files ?
What it means is that the headers provided by JDK are not installed
in some standard location, so the compiler cannot find them automatically.
The configure script expects them in $JAVA_HOME/include. If this is not
the case, then you'll have to fix your system, or let the compiler know about
the non standard location, usually by using some well-known environment
variable. Under MSVC, this is achieved through the variable called "INCLUDE".
I don't know the equivalent for GCC, but I guess using CPPFLAGS and the
-I compiler flag could do it.
Michael.
--
----
Imagine there's no countries
It isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace