Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2002 10:13:47 -0500
From:      Dave Glowacki <dglo@hyde.ssec.wisc.edu>
To:        wtp@mud.pl
Cc:        "Weston M. Price" <wmprice@direcway.com>, freebsd-java@FreeBSD.ORG
Subject:   Re: building mysql-jdbc-mm 
Message-ID:  <200210151513.g9FFDlK09448@hyde.ssec.wisc.edu>
In-Reply-To: Your message of "Tue, 15 Oct 2002 13:31:41 %2B0200." <20021015132812.S53209-100000@kryptos.mud.pl> 

next in thread | previous in thread | raw e-mail | index | archive | help
Krzysztof Stryjek wrote:
> Hello,
> 
> On Tue, 15 Oct 2002, Weston M. Price wrote:
> OK, so I'm writing more info
> 
> [wtp]$ grep ports/Mk/bsd /usr/ports/Mk/bsd.java.mk
> # $FreeBSD: ports/Mk/bsd.java.mk,v 1.27 2002/10/14 19:16:40 znerd Exp $
> 
> [wtp]$ l /var/db/pkg/ | egrep '(j[asd]k|jfc)'
> jakarta-ant-1.5.1_1/
> jakarta-tomcat-3.3.1_16/
> jdk-1.1.8/
> jfc-1.1.1/
> linux-sun-jdk-1.2.2.013/
> jsdk-2.0/
> 
> Welle, I also tried to compile with
> JAVA_HOME=/usr/local/linux-sun-jdk1.2.2 make all, but results are the
> same. Any further suggestions?

It looks like neither linux-sun-jdk1.2.2 or linux-blackdown-jdk1.2.2
includes the javax.naming.* classes.

I know the native JDK includes those classes, so one alternative
might be to build /usr/ports/java/jdk13 and use the native JDK
to do your DB work.

If you absolutely must have a MySQL JDBC jar file right now, you
can do the following:

  cd /usr/ports/databases/mysql-jdbc-mm
  make extract
  cp work/mm.mysql-2.0.14/mm.mysql-2.0.14-bin.jar \
     /usr/local/share/java/classes/mm.mysql-2.0.14.jar

This will install the distributed jar file into the standard
place.  This is done outside the ports system, though, so
you'll have to remember to delete this file if you ever upgrade
to a newer version of the MySQL JDBC code.

Otherwise, if you don't mind waiting a day or two, I'll look
into patching the MySQL ant file to check for javax.naming and
deactivate those parts of the build if it's not found.


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?200210151513.g9FFDlK09448>