LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-09-2006, 11:55 PM   #1
linuxfriend
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Rep: Reputation: 0
Java connector


i want to connect to mysql from java to work Advance java
from servlet and jsp on fedora 3

i have these softwares which one should i install and what will be the path settings?

which of these should i install

j2sdk-1_4_2_10-linux-i586.bin
j2sdk-1_4_2_10-linux-i586-rpm.bin
jdk-1_5_0_06-linux-i586.bin
jdk-1_5_0_06-linux-i586-rpm.bin
jre-1_5_0_06-linux-i586.bin

with

mysql-standard-4.0.24-pc-linux-gnu-i686.tar.gz
mysql-standard-4.1.13-pc-linux-gnu-i686.tar.gz
mysql-standard-5.0.15-linux-i686-glibc23.tar.gz

with

mysql-connector-java-3.0.17-ga.tar.gz
mysql-connector-java-3.1.11.tar.gz
mysql-connector-java-3.1.12.tar.gz
 
Old 02-10-2006, 02:33 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
As for Java, j2sdk contains jdk and some other stuff. jdk in turn contains jre (runtime environment) and some other stuff.
Since you're going to develop some Java apps, I recommend using the jdk, unless you absolutely need some J2EE/J2SE features. Check out java.com for info.

As to what you want to download - the .bin or the .rpm.bin -, that depends on your distro. Your distro must support the use/installation of rpm packages.
But, rpm is short for "red hat package manager" and Fedora supports those.
So, you can actually choose if you download the .bin or the .rpm.bin. Both should work. The only difference will be that, whereas the .bin will simply extracted and installed, the .rpm.bin would actually be extracted and then installed via the rpm mechanism. This implies that the package will be registered in rpm's package database, so that you can get updates later on and stuff like that. So, I suggest you use the .rpm.bin, unless you're going to install it on other Linux machines too.

As to install MySql, I propose that you download both a server (there are many flavors, including the standard one that you mention) - check out the site of MySql to know which version is for you.

I have a similar setup as you (FC3, Tomcat webserver, JSP, MySql database for user authentication and stuff like that). But I haven't downloaded the "connector-java" stuff you mention. I think those are a specific set of JDBC drivers. MySql installation already includes some drivers. Depends mostly on the driver you want to use.

I have also installed some additional Java commons packages:
commons-collections
commons-pool
commons-dbcp
(use Google to find them).
They were required for database connection pooling.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql and mysql java connector, connection refused arubin Slackware 3 03-29-2008 01:41 AM
jk connector nasht Linux - Software 2 08-18-2005 07:33 PM
Where to put mysql-connector-java folder dukehazord Linux - General 1 09-10-2004 11:30 AM
Connector on Debian gvaught Linux - Software 1 08-26-2004 04:18 PM
broadband connector vadirajcs Linux User Groups (LUG) 2 06-17-2004 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration