Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th December 2008, 02:26 PM
darkblue Offline
Registered User
 
Join Date: Dec 2008
Posts: 5
Question mysql connector for Java

Hello folks,

I am working on an epos system using java and mysql as database backend. It has been more than 3 weeks since I am stuck, googling a lot did not help then my friend told me, issue is with my fedora. I am using fedora 9 and in no mood to upgrade as I have more than 90gb of data that I cannot risk. ok coming back to my topic.
I have done this:

Code:
export set classpath =/path/to/mysql/jar/file:$CLASSPATH
I have checked my Java code thousand times yet... no go!!
Code:
su -
service mysqld status
Shows that mysql is started and working.

My friend who is also using fedora has the same issue with fedora 10 but his issue is after he reboots the classpath is reset but for classpath gets reset immediately after I close the terminal.
I can say this by doing this
Code:
echo $CLASSPATH
Sorry for poor english and bad technical knowledge about operating system.
Please help, very urgent, project deadline in 1week. Please help.

Thank you very much.
Reply With Quote
  #2  
Old 6th December 2008, 12:07 AM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
Quote:
Originally Posted by darkblue View Post
I have done this:

Code:
export set classpath =/path/to/mysql/jar/file:$CLASSPATH
Your syntax is wrong. Use the following to set the CLASSPATH environment variable:
Code:
export CLASSPATH=/path/to/mysql/jar/file:$CLASSPATH
Quote:
Originally Posted by darkblue View Post
My friend who is also using fedora has the same issue with fedora 10 but his issue is after he reboots the classpath is reset but for classpath gets reset immediately after I close the terminal.
I can say this by doing this
Environment variables are local to the shell where they were defined and any processes started from that shell. Set the variable in a shell startup file like ~/.bashrc if you want to have it permanently defined.
Reply With Quote
  #3  
Old 6th December 2008, 01:30 AM
darkblue Offline
Registered User
 
Join Date: Dec 2008
Posts: 5
Quote:
Originally Posted by markkuk View Post
Environment variables are local to the shell where they were defined and any processes started from that shell. Set the variable in a shell startup file like ~/.bashrc if you want to have it permanently defined.
oh!!! Thanks... I see it happening now ....
Can you tell me how can I do that? I mean I am really new to Fedora, my friend insisted me to install fedora and get out of windows 2000. I am really new, please be patient.
Please solve...
Thanks.
Reply With Quote
Reply

Tags
connector, java, mysql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
location of mysql-connector-java 1jackjack Using Fedora 2 5th July 2007 08:53 AM
mysql-connector-java amd64 Using Fedora 7 21st January 2007 05:36 PM
mysql-connector-java amd64 Using Fedora 1 17th January 2007 12:36 PM
mysql-connector-java install problems himnbandit Servers & Networking 2 25th February 2006 03:32 PM
How to connector/J mySQL by java 1.4.2_08 for FC3 thuan1975 Programming & Packaging 1 25th August 2005 09:08 PM


Current GMT-time: 06:55 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat