From owner-freebsd-java@FreeBSD.ORG Sun Jul 24 13:50:19 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A51816A447 for ; Sun, 24 Jul 2005 13:50:19 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7545943D45 for ; Sun, 24 Jul 2005 13:50:17 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id j6ODnrKU058903; Sun, 24 Jul 2005 16:49:53 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.200] (pptp.ebs.gr [10.1.1.200]) by ebs.gr (8.13.3/8.12.11) with ESMTP id j6ODnhPb068893; Sun, 24 Jul 2005 16:49:47 +0300 (EEST) (envelope-from past@ebs.gr) Received: from 127.0.0.1 (AVG SMTP 7.0.338 [267.9.4]); Sun, 24 Jul 2005 16:49:40 +0300 Message-ID: <42E39C74.5010800@ebs.gr> Date: Sun, 24 Jul 2005 16:49:40 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jonathan Chen References: <4275.10.249.7.57.1122193228.squirrel@webmail.bobcpp.co.id> <20050724113150.GA42544@osiris.chen.org.nz> In-Reply-To: <20050724113150.GA42544@osiris.chen.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: madrus@bobcpp.co.id, freebsd-java@freebsd.org Subject: Re: How to install JDK 1.4 on FreeBSD 5.4 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2005 13:50:19 -0000 Jonathan Chen wrote: > [ Please don't top-post] > On Sun, Jul 24, 2005 at 03:20:28PM +0700, madrus@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