From owner-freebsd-java@FreeBSD.ORG Tue Mar 23 09:26:34 2004 Return-Path: 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 70C6416A4CE for ; Tue, 23 Mar 2004 09:26:34 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DDB043D49 for ; Tue, 23 Mar 2004 09:26:33 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i2NHQK4s002823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Mar 2004 17:26:21 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i2NHQK6p002822; Tue, 23 Mar 2004 17:26:20 GMT (envelope-from matthew) Date: Tue, 23 Mar 2004 17:26:20 +0000 From: Matthew Seaman To: Lukman Jaji Message-ID: <20040323172620.GB973@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Lukman Jaji , freebsd-java@freebsd.org References: <20040323164204.392DA2ABCA@ws1-6.us4.outblaze.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0eh6TmSyL6TZE2Uz" Content-Disposition: inline In-Reply-To: <20040323164204.392DA2ABCA@ws1-6.us4.outblaze.com> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040316, clamav-milter version 0.67l cc: freebsd-java@freebsd.org Subject: Re: deploying java programs (applications) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 17:26:34 -0000 --0eh6TmSyL6TZE2Uz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 23, 2004 at 11:42:04AM -0500, Lukman Jaji wrote: > there is this problem i'm having.......it may not be a problem to u, my = club members > is it possible to deploy java programs and turn them into an icon wher= e all you have to do is double click the icon and the icon and the program = executes. is it also possible to turn it into an icon of your own, not the = java tea cup. is it possible to bind an sql database with a java front end = and deploy it e.g installing an application you have designed on the system= you of the owner, must sql be installed.......are these stupid questions? It is certainly possible to do something like what you want, but the details depend very much on the system you're running the java application on, and such things as what window manager you're using. Under Unix, java applications are often started up from small shell-script wrappers, which do such things as setup the class path and then invoke java on the applications' entry point class. Look at /usr/local/bin/ant (from the devel/apache-ant port) as an example. Exactly how an icon might be assigned to that script is OS and window manager dependent. Alternatively, look into Java WebStart -- http://java.sun.com/products/javawebstart/ -- which lets you install Java appications by clicking on a link on a web page. JavaWS lets you associate whatever image you want with the application through an XML configuration file. It's standard with any J2EE JDK or JRE. For the connectivity to the SQL database, look at JDBC (Java DataBase Connector) This is a standard database-independent connector architecture and API (http://java.sun.com/docs/books/jdbc/) You need to add an appropriate driver module to let it communicate with the particular variety of database you're using. eg. see the databases/mysql-connector-java port (http://www.mysql.com/products/connector-j/index.html). Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --0eh6TmSyL6TZE2Uz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAYHM8dtESqEQa7a0RAkV8AKCVhAMHwqM6syUjud0CPI0zhjNSpwCeO8tF A7mdg7Mvz4YvjaLo/Ed7SVM= =hqzP -----END PGP SIGNATURE----- --0eh6TmSyL6TZE2Uz--