From owner-freebsd-java@FreeBSD.ORG Tue Feb 3 00:28:25 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E75C106566C for ; Tue, 3 Feb 2009 00:28:25 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from mx.utwente.nl (mx1.utsp.utwente.nl [130.89.2.12]) by mx1.freebsd.org (Postfix) with ESMTP id E85CF8FC0A for ; Tue, 3 Feb 2009 00:28:24 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id n130SHV8032222 for ; Tue, 3 Feb 2009 01:28:17 +0100 From: Pieter de Goeje To: freebsd-java@freebsd.org Date: Tue, 3 Feb 2009 01:28:17 +0100 User-Agent: KMail/1.9.10 References: <49875AE9.6070100@telenix.org> In-Reply-To: <49875AE9.6070100@telenix.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902030128.17571.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Subject: Re: about installing jsee 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: Tue, 03 Feb 2009 00:28:25 -0000 On Monday 02 February 2009 21:43:21 Chuck Robey wrote: > I need to find a writeup on how to get the Java tools empowering a web > database to all installed and configured. The writeups I found, they all > assume a several year old set of FreeBSD ports, which means using Linux > tools. I'm totally knocked out by the java/jdk16 native java port, it's so > reliable and complete, so if it's at all possible, I don't want to back up > and use the Linux tools, so please don't make me do that. > > What I've read so far tells me I need the www/tomcat6, the > java/jakarta-struts and the Hibernate tools. Where those tools are, I > don't know the portname. I sure could use help in verifying what the ports > are. I have a 4 cpu Intel box with 4 cpus, and my java is the java/jdk16 > (native Java, I'm iompressed beyond words with that). I'm also showing > doglike devotion to eclipse (what a tool!) > > Thanks for any help, folks. The beauty of Java is that it's (in most cases) platform independent. This means that you don't need a FreeBSD port for Hibernate, Struts, Tomcat etc, just download and run it. As for a DB connection, you need a JDBC driver for your database. For MySQL this is MySQL Connector/J (http://www.mysql.com/products/connector/j/), for PostgreSQL the PostgreSQL JDBC Driver (http://jdbc.postgresql.org/). Also there are a number of embedded databases which you might find useful for prototyping applications, like Derby and HSQLDB. Instead of Hibernate you might want to look at the Java Persistence API (which Hibernate is an implementation of). For web development you basically need to install the Web Developer Tools plugin in eclipse, which allows you to create dynamic web applications in no time. Hope this helps. Pieter de Goeje