Results 1 to 3 of 3
  1. #1
    Emy
    Emy is offline Member
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    0

    Angry eclipse database plugin problem(urgent plz)

    HI everyone:
    My problem with eclipse and plugins needed to design and create database
    first I use eclipse v-3.5.1
    download :
    mysql-connector-java-5.1.10
    emf-sdo-xsd-SDK-2.4.2.zip
    GEF-ALL-3.5.1.zip
    dtp-sdk_1.7.0.zip

    there's no Database Development perspective in my eclipse ????

    I do these steps but that doesn't help
    in data source explorer :
    r-click on Database connections >> new ... >>> Generic JDBC then next and
    when try to add new driver definition it show in Name\Type tab
    Database and under it Generic JDBC diver and when I try the Jar list tab to add mysql connector it doesn't work

    WHAT'S THE PROBLEM ???????????

    pleasssssssssssssssssssse hellllllllllllllllp me :
    whats requirments needed to make my first db in eclipse

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    5

    Default

    Quote Originally Posted by Emy View Post
    pleasssssssssssssssssssse hellllllllllllllllp me
    Here is the code i generally use for a connection to mysql-db.

    Java Code:
    		if (connection == null) {
    			try {
    				Class.forName("com.mysql.jdbc.Driver");
    			} catch (ClassNotFoundException e) {
    				System.out.println("Couldn't find the driver!");
    				e.printStackTrace();
    				System.exit(1);
    			}
    
    			try {
    				connection = DriverManager.getConnection(
    						"jdbc:mysql://localhost:yourPortNumber/mydb", Parameter.userID , Parameter.password);
    			} catch (Throwable e) {
    				System.out.println("Couldn't get connection to localhost!");
    				e.printStackTrace();
    				System.exit(1);
    			}
    		}
    You have to add your mysql-connector-java-version.jar as external jar in order that eclipse can find the driver. you will find an indroduction to database connection Java Tutorials - Java Forums good luck.

  3. #3
    amitabh is offline Member
    Join Date
    Apr 2010
    Posts
    51
    Rep Power
    0

    Default

    first you have to put your connector in jdk>jre>ext>folder
    then go to database connection then select your driver ignor the red mark add the connector by browsing to the connector place then add proper info about your connection like databasename user password and test connection good luck

Similar Threads

  1. Eclipse plugin problem
    By javarooster in forum Eclipse
    Replies: 2
    Last Post: 12-17-2009, 02:45 AM
  2. Replies: 0
    Last Post: 04-20-2009, 06:26 PM
  3. Problem of Classloader in Eclipse Plugin Developemt.
    By Ashish Naidu in forum Eclipse
    Replies: 0
    Last Post: 09-12-2008, 10:16 AM
  4. AnyEdit Plugin For Eclipse Plugin
    By JavaForums in forum Eclipse
    Replies: 0
    Last Post: 05-18-2007, 12:28 PM
  5. plugin for eclipse
    By sin in forum Eclipse
    Replies: 1
    Last Post: 05-10-2007, 07:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •