Putting anything in default Java installation directory is bad idea. If you creating just simple application you can keep JAR file in same directory as your source code for easy compiling. However while working on something larger you should set up special folder for any external resources ('lib') and either manage linking to your project through IDE or with Ant or Maven configuration files (which IDE basically does for you on background).Your mistake as already pointed was in use of incorrect connection string that should be //Pseudo codejdbc:mysql://:///Example codejdbc:mysql://localhost/danijsptutorial//or with port number if database uses other then default portjdbc:mysql://localhost:3306/danijsptutorialExamples of connection string for other databases can be found. In your project create create new package 'lib'. Right click on the project and select Properties. In the pop-up window, in CATEGORIES (left side listing) select Libraries & Resources on the right press Add JAR/Folder and navigate to place where is the driver or any other library you wish to add highlight file/s you want to include and press OK.However if the projects are just learning (no-production) you may want to just create a directory somewhere on the disk that you can re-use for attaching Connector/J.
![]() ![]()
Jar file to your system and ensure OS X's Java installation can find it. Downloading the JDBC Driver. To download the Vertica JDBC driver on Mac OS X: On your.
In this scenario just skip the section for package creation and go directly for adding resources. Yes peter, you are absolutely right, its not good practice to alter default editors folders. So, i also undo the option to save jar file in C:Program FilesJavajdk1.6.014jrelibext to enable DRIVER in my application. Now the jar file in library folder of my project's folder.
I didn't see the all threads thats y i adopt only the first one solution but now its clear to me.Well for some back end processing i am using JAVA( NetBeans ) and PHP to create WEB UI in my project.Thanks bddy for correcting!:cool:Putting anything in default Java installation directory is bad idea. If you creating just simple application you can keep JAR file in same directory as your source code for easy compiling. However while working on something larger you should set up special folder for any external resources ('lib') and either manage linking to your project through IDE or with Ant or Maven configuration files (which IDE basically does for you on background).Your mistake as already pointed was in use of incorrect connection string that should be //Pseudo codejdbc:mysql://:///Example codejdbc:mysql://localhost/danijsptutorial//or with port number if database uses other then default portjdbc:mysql://localhost:3306/danijsptutorialExamples of connection string for other databases can be found.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |