Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2004 17:26:20 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Lukman Jaji <myloveforyou@loveable.com>
Cc:        freebsd-java@freebsd.org
Subject:   Re: deploying java programs (applications)
Message-ID:  <20040323172620.GB973@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040323164204.392DA2ABCA@ws1-6.us4.outblaze.com>
References:  <20040323164204.392DA2ABCA@ws1-6.us4.outblaze.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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