Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2002 23:29:03 +0200 (CEST)
From:      Ivan Voras <ivoras@geri.cc.fer.hr>
To:        Ernst de Haan <znerd@FreeBSD.org>
Cc:        freebsd-java@FreeBSD.org
Subject:   Re: jdk sources, php_java...
Message-ID:  <20020406231810.P18033-100000@geri.cc.fer.hr>
In-Reply-To: <200204062108.XAA23042@smtp.hccnet.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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")." <br>\n";
  print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
  print "OS=".$system->getProperty("os.name")." ".
              $system->getProperty("os.version")." on ".
              $system->getProperty("os.arch")." <br>\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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020406231810.P18033-100000>