Eclipse Not Seeing com.mysql Package

I'm trying to get through the Lynda.com tutorial on java applications.  I'm running Eclipse Luna on OSX.  I've completed  the same tutorial  successfully on Windows platform, but on the Mac, i'm getting 'package com.mysql does not exist' when trying to run a little jsp that does nothing except connect to database.  When I look in the downloaded folder, i see that package along with some other files.
How do I get past that error?
xoxomosAsked:
Who is Participating?
 
CEHJCommented:
So it looks like it's everywhere but added to your project
0
 
CEHJCommented:
You need to add the driver jar to the project
0
 
xoxomosAuthor Commented:
I have it in the WEB-INF/lib as msql-connector-java-5.1.35-bin.jar.  Just looking at Project Explorer in the Windows that work and the Mac that gives the error, they are both the same.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
CEHJCommented:
Can you open Terminal, change to your Projects directory and post the output of the following please?
find -name  '*connector*'

Open in new window

0
 
xoxomosAuthor Commented:
ThanksA206394:~ root# find -name '*connector*'
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
       find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
A206394:~ root# find / -name '*connector*' -print
/Applications/apache-tomcat-7.0.61/webapps/docs/connectors.html
/Applications/Aptana Studio 3/plugins/com.aptana.terminal_3.0.0.1397622810/com/aptana/terminal/connector
/Applications/eclipse/plugins/org.eclipse.m2e.maven.runtime_1.5.1.20150109-1819/jars/aether-connector-okhttp-0.12.0.jar
/Applications/eclipse/plugins/org.eclipse.m2e.maven.runtime_1.5.1.20150109-1819/jars/aether-connector-wagon-0.9.0.M2.jar
/Applications/MAMP/Library/lib/python2.7/site-packages/mysql/connector
/Applications/MAMP/Library/lib/python2.7/site-packages/mysql_connector_python-1.1.6-py2.7.egg-info
/Applications/Microsoft Office 2011/Office/OfficeArt.framework/Versions/14/Resources/SelectionHandles/connector.png
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Users/ctaylor/.Trash/mysql-connector-java-5.1.35 (1).tar.gz
/Users/ctaylor/.Trash/mysql-connector-java-5.1.35 2
/Users/ctaylor/.Trash/mysql-connector-java-5.1.35 2/docs/connector-j.html
/Users/ctaylor/.Trash/mysql-connector-java-5.1.35 2/docs/connector-j.pdf
/Users/ctaylor/.Trash/mysql-connector-java-5.1.35 2/mysql-connector-java-5.1.35-bin.jar
/Users/ctaylor/.Trash/mysql-connector-java-5.1.35 3
/Users/ctaylor/.Trash/mysql-connector-java-5.1.35 3/docs/connector-j.html
/Users/ctaylor/.Trash/mysql-connector-java-5.1.35 3/docs/connector-j.pdf
/Users/ctaylor/.Trash/mysql-connector-java-5.1.35 3/mysql-connector-java-5.1.35-bin.jar
/Users/ctaylor/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/using_drivers/WEB-INF/lib/mysql-connector-java-5.1.35-bin.jar
/Users/ctaylor/Documents/workspace/using_drivers/WebContent/WEB-INF/lib/mysql-connector-java-5.1.35-bin.jar
/Users/ctaylor/Downloads/Ex_Files_UaR_Java_Apps/Exercise Files/Chapter 2/connecting_to_database/final/connecting_to_database/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar
/Users/ctaylor/Downloads/Ex_Files_UaR_Java_Apps/Exercise Files/Chapter 2/connecting_to_database/start/connecting_to_database/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar
/Users/ctaylor/Downloads/Ex_Files_UaR_Java_Apps/Exercise Files/Chapter 2/displaying_data/final/displaying_data/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar
/Users/ctaylor/Downloads/Ex_Files_UaR_Java_Apps/Exercise Files/Chapter 2/displaying_data/start/displaying_data/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar
/Users/ctaylor/Downloads/Ex_Files_UaR_Java_Apps/Exercise Files/Chapter 2/using_drivers/final/using_drivers/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar
/Users/ctaylor/Downloads/Ex_Files_UaR_Java_Apps/Exercise Files/Chapter 2/using_drivers/start/using_drivers/WebContent/WEB-INF/lib/mysql-connector-java-5.1.35-bin.jar
/Users/ctaylor/Downloads/Ex_Files_UaR_Java_Apps/Exercise Files/Chapter 3/assets/jsp_final/WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar
/Users/ctaylor/Downloads/mysql-connector-java-5.1.35
/Users/ctaylor/Downloads/mysql-connector-java-5.1.35/docs/connector-j.html
/Users/ctaylor/Downloads/mysql-connector-java-5.1.35/docs/connector-j.pdf
/Users/ctaylor/Downloads/mysql-connector-java-5.1.35/mysql-connector-java-5.1.35-bin.jar
/Users/ctaylor/Downloads/mysql-connector-java-5.1.35.tar.gz
/Users/ctaylor/Downloads/mysql-connector-java-5.1.35.zip
/Users/ctaylor/Library/Application Support/Google/Chrome/Default/Extensions/gbchcmhmhahfdphkhkmpfmihenigjmpp/42.0.2311.37_0/session_connector.js
/Users/ctaylor/Library/Application Support/Google/Chrome/Default/Extensions/gbchcmhmhahfdphkhkmpfmihenigjmpp/42.0.2311.37_0/session_connector_impl.js
/Users/ctaylor/Library/Application Support/Google/Chrome/Default/Extensions/gbchcmhmhahfdphkhkmpfmihenigjmpp/42.0.2311.37_0/smart_reconnector.js
/usr/local/mysql-5.6.24-osx10.8-x86_64/mysql-test/suite/ndb/include/have_connectorj.inc
0
 
CEHJCommented:
Sorry, not familiar with the OSX find command

Anyway, not a single found jar there (and there are masses of the driver jar) seems to be in the right place, which is in one of your project paths. You ARE using Eclipse?
0
 
xoxomosAuthor Commented:
Yes, it's  Eclipse Luna version.
0
 
xoxomosAuthor Commented:
Yes, I guess i'll have to delete the project and start from scratch.  Hate doing that and never knowing what the problem is.
0
 
CEHJCommented:
Just adding it to the project should do it ;)
0
 
xoxomosAuthor Commented:
I agree, but still haven't figured out why.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.