How to install JDK 1.4 on FreeBSD 5.4

Panagiotis Astithas past at ebs.gr
Sun Jul 24 13:50:19 GMT 2005


Jonathan Chen wrote:
> [ Please don't top-post]
> On Sun, Jul 24, 2005 at 03:20:28PM +0700, madrus at bobcpp.co.id wrote:
> 
>>Dear miliser,
>>I still get problem when installing java port on FreeBSD.
>>The Error message like this:
>>------------------
>>/usr/local/jdk1.4.2/include/jni.h:27:20: jni_md.h: No such file or
>>directory
>>In file included from src/org/freebsd/io/comm/libSerial.c:32:
>>/usr/local/jdk1.4.2/include/jni.h:45: error: syntax error before "jsize"
>>------------------
>>
>>when i try to use jni.h in linux directory then the installation
>>is OK but when running the serial programe appear same error as
>>i told you before.
>>
>>where can i find jni.h for FreeBSD ???
> 
> 
> jni.h comes with the java/jdk14 . You have *NOT* given us enough
> information about what you are doing. Have you installed java/jdk14?
> What did you do? Please provide us with all the details of:
> 
>     1. what you're trying to achieve.
>     2. what you did to achieve this.
> 
> Cheers.

I would guess that this error is coming from compiling libSerial.c with 
insufficient arguments, i.e. with "-I/usr/local/jdk1.4.2/include" but 
without "-I/usr/local/jdk1.4.2/include/freebsd".

Of course one cannot be sure without more detailed information.

Cheers,

Panagiotis


More information about the freebsd-java mailing list