From owner-freebsd-java Sat Apr 6 13:29:31 2002 Delivered-To: freebsd-java@freebsd.org Received: from geri.cc.fer.hr (geri.cc.fer.hr [161.53.72.107]) by hub.freebsd.org (Postfix) with ESMTP id 61F3D37B41D; Sat, 6 Apr 2002 13:29:19 -0800 (PST) Received: from localhost (ivoras@localhost) by geri.cc.fer.hr (8.11.6/8.11.6) with ESMTP id g36LT4N18055; Sat, 6 Apr 2002 23:29:05 +0200 (CEST) (envelope-from ivoras@geri.cc.fer.hr) Date: Sat, 6 Apr 2002 23:29:03 +0200 (CEST) From: Ivan Voras To: Ernst de Haan Cc: freebsd-java@FreeBSD.org Subject: Re: jdk sources, php_java... In-Reply-To: <200204062108.XAA23042@smtp.hccnet.nl> Message-ID: <20020406231810.P18033-100000@geri.cc.fer.hr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, 6 Apr 2002, Ernst de Haan wrote: > Hi Ivan, > > > Are there any binaries of jdk (>= 1.1) available? Sun does not allow > > downloading the sources from certain countries (mine included :( ), so I > > cannot setup any jdk except the jdk1.1 . > > What country is that? .hr does not ring a bell. Croatia (=Hrvatska) > I know that a binary JDK was the goal for FreeBSD 4.5. But it wasn't made. I Yes, I know that :( > Are you referring to a port that integrates PHP and Java ? Please do mail the There is a (standard...) php extension that allowes Java objects/methods to be called directly from PHP. > description of the problem and any error messages you had. Or if it's a lot here it goes: I compiled apache with -pthread option (to be able to run Java), properly configured php.ini (and phpinfo() agrees), but I cannot overcome this: Fatal error: Unable to load Java Library /usr/local/jdk1.1.8/lib/i386/green_threads/libjava.so, error: /usr/local/jdk1.1.8/lib/i386/green_threads/libjava.so: Undefined symbol "fmod" in /usr/home/ivoras/public_html/jver.php on line 4 The error appears when trying to start the php-java example: $system = new Java("java.lang.System"); print "Java version=".$system->getProperty("java.version")."
\n"; print "Java vendor=".$system->getProperty("java.vendor")."

\n\n"; print "OS=".$system->getProperty("os.name")." ". $system->getProperty("os.version")." on ". $system->getProperty("os.arch")."
\n"; (the example fails on the first line quotetd above, whan trying to create the Java bridge object) apparently, libjava.so needs a symbol 'fmod', which is in libm.so (a floating-point function), but it is not linked to use libm.so. (?) (all jdk1.1.8 binaries are actually using compat3x libraries) (I have no preference in JDK, I just need the stuff working.) -- Ashes to ashes, DOS to DOS ivoras @ fer.hr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message