Mysql driver and Jbuilder 2005 foundation

I am trying to connect to a mysql server using jdbc and the mysql drivers. Specifically version 3.1.7. I will post my code here although I believe the code is correct and that I have a classpath issue with jbuilder. The error I am receiving on both build and run time is:
Exception in thread "main" java.sql.SQLException: No suitable driver
     at java.sql.DriverManager.getConnection(Unknown Source)
     at java.sql.DriverManager.getConnection(Unknown Source)
     at methodclassespkg.DummyTester.main(DummyTester.java:39)
I installed the mysql .jar driver file in the jdk1.5/lib/ext as the read me file that came with the drivers stated. I have changed the default jdk to the jdk1.5 update 2 that I installed. I imoprted the .jar driver file into the project and even added the file under tools/configure/libraries. But I still receive this error witht his code
package methodclassespkg;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.io.*;
Class Name: Dummy Tester Class
Description: A dummy class with a main to test the other classes functionality.
Company: Team SSJ (7)
Copyright (c) 2005
Version 1.0
public class DummyTester {
public DummyTester() {
try {
jbInit();
} catch (Exception ex) {
ex.printStackTrace();
public static void main(String[] args) throws SQLException, IOException{
try{
Class.forName("com.mysql.jdbc.Driver");
catch(ClassNotFoundException e){
System.out.println("Could not load the driver");
Connection conn = DriverManager.getConnection("ServerName", "user", "password");
System.out.println("test");
private void jbInit() throws Exception {
Again I am running the free version which does not allow me to access the enterprise tab, I mention this because I saw a solution to this issue that allowed for importing the database driver using tools/enterprisesetup/database drivers. but I do not have access to this functionalitity.
Jeremy Reed

Thank you for the fast response from everyone. WIth you assistance I did reach a solution. I turns out I wasnt calling the driver correctly, syntactlically.
For anyone googling a similar issue as mine, for j connect, your statement must be in the form of jdbc:mysql://yourhost/database?user=name&password=password
that was my mistake

Similar Messages

  • How to import MySQL Driver in Jbuilder

    I am creating a GUI application using swing with the help of JBuilder. I have used MySQL as Database. For connection it to java I've used MySQL J-Connector Driver. But I am not being able to import that driver(classes) in jbuilder.
    When i run the application at the cmd prompt it works fine (got connected), but when i try to run it under jbuilder it gives error like
    java.com.mysql.Driver class not found.
    I think it is classpath problem
    Please help me, setting this problem

    No, you need not import class as you give qualified
    class name in Class.forName(). Better post your code
    here. Somebody will help you out.Below is the code of CLASS CreateConnection, I'm using to create connection to MySQL. I instantiate this class and use the connection. This class is being called when a connection to database is required. I am creating a desktop application using swing.
    package project1;
    import java.sql.*;
    public class CreateConnection {
         private String host,database,username,password;
         String db_string;
         Connection conn;
         Statement smt;
         ResultSet rs;
    //Parameterized constructor
         CreateConnection(String host, String database, String username, String password){
              this.host=host;
              this.database=database;
              this.username=username;
              this.password=password;
    db_string="jdbc:mysql://"+host+"/"+database+"?user="+username+"&password="+password ;
    create();
    //Parameterized constructor 2
    CreateConnection(String db_string){
    this.db_string=db_string;
    create();
    public void create(){
              System.out.println("using: " +db_string);
              try{
                   System.out.println("Loading drivers........");
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
                   System.out.println("Driver loaded !");
                   conn = DriverManager.getConnection(db_string);
                   smt = conn.createStatement();
                   System.out.println("testing database .........");
                   smt.execute("create table test(no varchar(22))");
              catch(Exception e){
                   System.out.println(e);
                   System.exit(0);
         System.out.println("Successfull");
    public ResultSet execute_q(String query){
              try{
                   System.out.println("Executing "+query);
                   rs=smt.executeQuery(query);
              catch(SQLException sqle){
                   System.out.println("Execption thrown" +sqle);
                   return null;
              return rs;
    }

  • Problem with a  web service with Jbuilder 2005 and Weblogic 8.1

    Hi,
    i�m trying to create a web-service using Jbuilder 2005 Enterprise and Weblogic 8.1. It is a very simple web-service, come kinda "Hello World".
    In the last step, after deploying my "ApplicatioModule1", i get this error:
    "Unable to connect to server t3://localhost:7001 as user weblogic.
    Reason: javax.naming.CommunicationException. Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:199)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:125)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:291)
         at weblogic.jndi.Environment.getContext(Environment.java:164)
         at weblogic.jndi.Environment.getInitialContext(Environment.java:143)
         at weblogic.management.deploy.utils.MBeanHomeTool.getMBeanHome(MBeanHomeTool.java:157)
         at weblogic.Deployer.runBody(Deployer.java:555)
         at weblogic.utils.compiler.Tool.run(Tool.java:146)
         at weblogic.utils.compiler.Tool.run(Tool.java:103)
         at weblogic.Deployer.main(Deployer.java:399)
    Check option -adminurl, -username and -password. "
    I dont know why i get this error. I think the weblogic server is properly configured and running.
    Anybody can help me?? Thx.

    i have found the solution to the problem myself. I only had to execute this command file startWebLogic.cmd which is placed in this default installation directory C:\bea\user_projects\domains\mydomain in order to put the server listening to ports.
    i hope anybody with the same problem could fix it by reading this post.

  • Problem with a j2se program and mysql driver

    Hi,
    We are developing an application which needs accessing to a mysql database. I have packed the application in a .jar. and inside the jar I have created a folder lib. And inside that folder I have put mysql driver.
    As the same way, I have been reading in SDN forum, I have edited manifiest file and I have writen this:
    Manifest-Version: 1.0
    Sealed: true
    Class-Path: lib/mysql-connector-java-5.0.4-bin.jar
    Main-Class: package1.Main
    When I introduce this command java -jar program1.jar, the jvm says this:
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    I know when I use java -jar, classpath system variable doesn't mind. But even this variable is set up properly. If you could help me it would be great. I'm getting stuck with this.
    Thanks in advance.

    @CiMaBuE wrote:
    Hi,
    We are developing an application which needs accessing to a mysql database. I have packed the application in a .jar. and inside the jar I have created a folder lib. And inside that folder I have put mysql driver.That's the problem. JARs don't look inside themselves for 3rd party JARs. That /lib directory needs to be relative to the program1.jar that you created.
    I believe modules or OSGi are supposed to address this, but executable JARs do not today.
    %

  • BatchUpdate and MySQL driver

    Hi All,
    I am using MySQL server and Connector/J driver (an official JDBC driver from MySQL.org).
    I am trying to use BatchUpdate operation.
    In my batch of operations say, containing 10 operations, if any of the operation fails, all the remaining rows in the batch will be ignored/rejected. There is no way to get the remaining list back. How to handle this kind of situations ?
    Thanks in adavance,
    Rohit
    Omnesys Technologies

    I think the problem is not clear to you.
    I want perform series of operations (Insert and Update). I want to use Batch Update feature to get better performance. While doing the batch operation, I might get a request (Operation) which fails. This is causing all the remaining requests in the batch to get rejected. I actually want to continue with the remaining operation even if there is an error and from the returned int array I would like to take the action for failed operations.
    Is this type of operation possible in Statement ? (On MySQL for PreparedStatement this feature is available but I need it for Statement.)
    Thanks a lot,
    Rohit

  • I downloaded mySQL and mySQL driver NOW  WHAT ?

    I downloaded the mySQL and the mySQL driver. What do I do now ?
    I saw a book "mySQL and PHP for Dummies" . What is PHP ?
    Can you give me direction ?
    (without the "go read the archives" type of non-helpful help ?)
    Thank you in advance
    Stan

    If it's PHP and MySQL you're interested in, why are you posting to a Java forum?
    PHP is a Web scripting language:
    http://www.php.net/
    If you want to use MySQL with Java, you'll have to learn enough about SQL and relational databases to be able to get into MySQL, create some tables and users, and add some data. Then you'll use the MySQL JDBC driver to let your Java app access those database tables and do CRUD operations on them (Create/Read/Update/Delete).
    There's a JDBC tutorial under the Tutorials link to the left on this page.
    Here's a Java app that will let you run any valid SQL statement you wish against any database:
    import java.sql.*;
    import java.util.*;
    public class DataConnection
        public static final String DEFAULT_DRIVER   = "sun.jdbc.odbc.JdbcOdbcDriver";
        public static final String DEFAULT_URL      = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Edu\\Java\\Forum\\DataConnection.mdb";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        /** Database connection */
        private Connection connection;
         * Driver for the DataConnection
         * @param command line arguments
         * <ol start='0'>
         * <li>SQL query string</li>
         * <li>JDBC driver class</li>
         * <li>database URL</li>
         * <li>username</li>
         * <li>password</li>
         * </ol>
        public static void main(String [] args)
            DataConnection db = null;
            try
                if (args.length > 0)
                    String sql      = args[0];
                    String driver   = ((args.length > 1) ? args[1] : DEFAULT_DRIVER);
                    String url      = ((args.length > 2) ? args[2] : DEFAULT_URL);
                    String username = ((args.length > 3) ? args[3] : DEFAULT_USERNAME);
                    String password = ((args.length > 4) ? args[4] : DEFAULT_PASSWORD);
                    db = new DataConnection(driver, url, username, password);
                    Object result = db.executeSQL(sql);
                    System.out.println(result);
                else
                    System.out.println("Usage: db.DataConnection <sql> <driver> <url> <username> <password>");
            catch (SQLException e)
                System.err.println("SQL error: " + e.getErrorCode());
                System.err.println("SQL state: " + e.getSQLState());
                e.printStackTrace(System.err);
            catch (Exception e)
                e.printStackTrace(System.err);
            finally
                if (db != null)
                    db.close();
                db = null;
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection() throws SQLException,ClassNotFoundException
            this(DEFAULT_DRIVER, DEFAULT_URL, DEFAULT_USERNAME, DEFAULT_PASSWORD);
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection(final String driver,
                              final String url,
                              final String username,
                              final String password)
            throws SQLException,ClassNotFoundException
            Class.forName(driver);
            this.connection = DriverManager.getConnection(url, username, password);
         * Clean up the connection
        public void close()
            try
                this.connection.close();
            catch (Exception e)
                ; // do nothing; you've done your best
         * Execute ANY SQL statement
         * @param SQL statement to execute
         * @returns list of row values if a ResultSet is returned,
         * OR an altered row count object if not
         * @throws SQLException if the query fails
        public Object executeSQL(final String sql) throws SQLException
            Object returnValue      = null;
            Statement statement     = this.connection.createStatement();
            boolean hasResultSet    = statement.execute(sql);
            if (hasResultSet)
                ResultSet rs            = statement.getResultSet();
                ResultSetMetaData meta  = rs.getMetaData();
                int numColumns          = meta.getColumnCount();
                List rows               = new ArrayList();
                while (rs.next())
                    Map thisRow = new LinkedHashMap();
                    for (int i = 1; i <= numColumns; ++i)
                        String columnName   = meta.getColumnName(i);
                        Object value        = rs.getObject(columnName);
                        thisRow.put(columnName, value);
                    rows.add(thisRow);
                rs.close();
                statement.close();
                returnValue = rows;
            else
                int updateCount = statement.getUpdateCount();
                returnValue     = new Integer(updateCount);
            return returnValue;
    }Maybe it'll help get you started with Java and JDBC. You're on your own with PHP. - MOD

  • JBuilder 2005 Trial Installation problem

    Just if someone else stumbles over the same problem after downloading jbuilder 2005 trial version (or upcomming foundation too I guess), installation might be a problem. The message:
    "Cannot find .... Install.exe on the CD" pops up!
    That is due to spaces in path to the install file! Just move the files to a path without spaces, and all will be fine.
    Gil

    Ain't Google great? It would have taken me eons to figure out what was going wrong!
    Another note: the installation says to remove JDK 5.0 and use the JDK 1.4.2 contained in the installation. However, you need an installed JRE to perform the install.

  • Mysql, transactions and connections

    Hi,
    I have two problems:
    1. I am using mysql 3.23 and JBuilder 6 and I would like to use transactions.
    I created a database and a table InnoDb and when I try from my application to setautocommit(false) I get the following error:
    See com.borland.dx.dataset.DataSetException error code: BASE+66
    com.borland.dx.dataset.DataSetException: Cannot disable AUTO_COMMIT
    I tried lots of things in the mysql server and in my application and I don't know wether it's a configuration of the server, something I need to set first in the WinMySqlAdmin or something I have to do in my application.
    I would really use some help.. If anyone could also provide a small example please..
    2. It's also related to Mysql
    I have a server that opens a connection to the database. I want to know what I have to set in the mysql server so that the connection is not lost if the server is not active a long time.. I thought that if I set the interactive_timeout and the wait_timeout at a high level the problems would be solved but when I did some testing by setting the values to 30 seconds the connection persisted. Does anyone know why?
    Please help
    Thanks

    "MySql does not support transactions" is correct.
    Basically there are no commit or rollback statements
    available in MySql. This is I am talking about
    version 3.2.3 I believe. I have used it long back.incorrect.
    if you use the default myISAM tables than there is no transaction support. however, if you use INNODB then there is transaction support available in versions of 3 etc. for sure.
    however, you need a driver that knows this and supports this. i believe the newer versions of the mysql driver support them i know the older org.gjt.mm driver does NOT.
    what driver are you using? some borland one? look at the support there.

  • Java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver...the same old pr

    Hi,
    I am a new user in this forum..
    I have just installed tomcat and mysql and jdbc fresh on my new system..
    first of all here is what i have done...
    i have installed mysql integrated in xampp at c:\xampp\mysql
    i have installed my tomcat at C:\Programme\Apache Software Foundation\Tomcat 5.5
    i have put jdbc <dirver>.jar file copied in all sorts of directories like ....
    <tomcat_home>\common\lib
    <tomcat_home>\webapps\axis\WEB-INF\lib\ext
    <java_home>\lib
    <java_home>\jre\lib\ext
    my calsspath looks something like this
    .;C:\Programme\QuickTime\QTSystem\QTJava.zip;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\common\lib\mysql-connector-java-5.0.6-bin.jar;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\webapps\axis\WEB-INF\lib\mysql-connector-java-5.0.6-bin.jar;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\common\lib\servlet-api.jar;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\common\lib\jsp-api.jar;C:\Programme\Java\jdk1.5.0_05\jre\lib\ext\mysql-connector-java-5.0.6-bin.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\activation.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\axis.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\axis-ant.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\jaxrpc.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\mail.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\saaj.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\mysql-connector-java-5.0.6-bin.jar
    which is basically all the jar files in the web-inf\lib folder and references to all the copies of driver as mentioned before
    these are results of a lot of desperatio but still the code which i run....
    package mypackage;
    import java.sql.*;
    public class JDBCConnector
    public static void main(String[] arg) throws Exception
         System.out.println("Initiating Database Mysql Connection");
         //try {
                   Statement stmt;
                        //     Register the JDBC driver for MySQL.
                   Class.forName("org.gjt.mm.mysql.Driver ").newInstance();
                        //     Define URL of database server for
                        // database named mysql on the localhost
                        //      with the default port number 3306.
                   String url = "jdbc:mysql://wifh-1.fhso.ch:3306/";
                        //          Get a connection to the database for a
                        // user named root with a blank password.
                        // This user is the default administrator
                        // having full privileges to do anything.
                   Connection con = DriverManager.getConnection(url,"root", "birnExy");
                        //Display URL and connection information
                   System.out.println("URL: " + url);
                   System.out.println("Connection: " + con);
                        //Get a Statement object
                   stmt = con.createStatement();
                        //     Create the new database
                   stmt.executeUpdate("CREATE DATABASE JunkDB3");
                        //Register a new user named auser on the
                        // database named JunkDB with a password
                        // drowssap enabling several different
                        // privileges.
                   stmt.executeUpdate("GRANT SELECT,INSERT,UPDATE,DELETE," +"CREATE,DROP " +"ON JunkDB3.* TO 'nishant'@'localhost' " +"IDENTIFIED BY 'nishant';");
                   con.close();
         //}catch( Exception e ) {
              //     e.printStackTrace();
         //}//end catch
              //return hook;
         }//end main
    }//end class JDBCConnector
    gives the following error.....
    <soapenv:Envelope>
    &#8722;
         <soapenv:Body>
    &#8722;
         <soapenv:Fault>
    <faultcode>soapenv:Server.userException</faultcode>
    &#8722;
         <faultstring>
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    </faultstring>
    &#8722;
         <detail>
    <ns1:hostname>SADMC0087</ns1:hostname>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    please help me

    20.05.2007 22:43:26 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Programme\Java\jdk1.5.0_05\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\QuickTime\QTSystem\;C:\Programme\ATI Technologies\ATI Control Panel;C:\Programme\Java\jdk1.5.0_05\bin;C:\Programme\Apache Software Foundation\Tomcat 5.5\common\lib;
    20.05.2007 22:43:27 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    20.05.2007 22:43:27 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1203 ms
    20.05.2007 22:43:27 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    20.05.2007 22:43:27 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
    20.05.2007 22:43:27 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    20.05.2007 22:43:28 org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive SIpages.war
    20.05.2007 22:43:31 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    20.05.2007 22:43:31 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    20.05.2007 22:43:31 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/109 config=null
    20.05.2007 22:43:31 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    20.05.2007 22:43:32 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 4813 ms
    now this is when i run from eclipse where SIpages.war is my war file to be deployed...which looks something like this
    sipages/web-inf/classes
    sipages/web-inf/src
    sipages/web-inf/lib-this has the jar file as you mentioned
    and come other files...nwo where soes my .java file go in this war and how do i compile the java file

  • Unable to run XPSDrv Driver and Filter Sample

    Hello
    I'm facing to a problem with XPSDrv Driver and Filter Sample on my Windows 7 x64 machine
    I installed Visual Studio Ultimate 2013
    I installed WDK 8.1
    I installed WDK 8.1 Test Pack
    I installed everything from this
    site and I think that's all what I need for building the sample.
    Next I downloaded XPSDrv Driver and Filter Sample from
    http://code.msdn.microsoft.com/windowshardware/XPSDrv-Driver-and-Filter-980d24bc (btw. there is a step-by-step tutorial how to build the sample)
    1. Open the solution file in Visual Studio 2013 (I opened solution C++\XPSDrvSmpl.sln)
    2. Add all non-binary files (usually located in the \install directory of the sample) to the Package project
         a. In the Solution Explorer, right click
    Driver Files (HERE IS THE PROBLEM, WHAT IS DRIVER FILES ??? SEE PICTURE BELOW)
         b. Select Add, then click Existing Item
         c. Navigate to the location to which you downloaded the sample, and select all the files in the install directory, or the equivalent set of non-binary files such as INFs, INIs, GPD, PPD files, etc.
         d. Click Add
    Look at the picture how does my solution look like:
    Can anybody tell me what I'm doing wrong?
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    So after I add the InstallPackage, I added all the files in the install folder to the driver files. Than I added all the files of the install folder to the package files in the properties of the driver package. I also added all the dlls of the sample to
    the package files. Then I edited the inf file:
    Change DriverVer to a new date,because the old one is not working.
    And this under the driverver:
    CatalogFile=xdsmpl.cat
    Add this to each Microsoft.xx sections: {GUID}
    Should look like this:
    [Microsoft.NTx86]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    [Microsoft.NTia64]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    Change the location of the dlls under SourceDisksFiles to 1 or leave it to 2 if you have subfolders for architecures.
    So my inf looks like that:
    ; Copyright (c) 2005 Microsoft Corporation
    ; All rights reserved.
    ; THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
    ; ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
    ; THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
    ; PARTICULAR PURPOSE.
    ; File Name:
    ; xdsmpl.inf
    ; Abstract:
    ; XPSDrv sample driver install file
    [Version]
    Signature="$Windows NT$"
    Provider=%MS%
    ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
    Class=Printer
    DriverVer=09/19/2013,6.0.1.0
    CatalogFile=xdsmpl.cat
    [Manufacturer]
    %Microsoft%=Microsoft,NTx86,NTia64,NTamd64,NTx86.6.0,NTia64.6.0,NTamd64.6.0
    [Microsoft.NTx86]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    [Microsoft.NTia64]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    [Microsoft.NTamd64]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    [Microsoft.NTx86.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA,{GUID}
    [Microsoft.NTia64.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA,{GUID}
    [Microsoft.NTamd64.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA,{GUID}
    [INSTALL_XDSMPL_FILTERS_PRE_VISTA]
    CopyFiles=XPSDrvSample,ConfigPlugin,COLORPROFILES
    DriverFile=mxdwdrv.dll
    PrintProcessor="MS_XPS,filterpipelineprintproc.dll"
    ConfigFile=UniDrvUI.dll
    HelpFile=UniDrv.HLP
    DataFile=XDSmpl.GPD
    Include=NTPRINT.INF, MSXPSDRV.INF
    Needs=UNIDRV.OEM, XPSGPD.OEM, XPSDRV.OEM
    [INSTALL_XDSMPL_FILTERS_VISTA]
    CopyFiles=XPSDrvSample,ConfigPlugin,COLORPROFILES
    DriverFile=mxdwdrv.dll
    ConfigFile=UniDrvUI.dll
    HelpFile=UniDrv.HLP
    DataFile=XDSmpl.GPD
    ICMProfiles=xdwscRGB.icc
    CoreDriverSections="{D20EA372-DD35-4950-9ED8-A6335AFE79F0},UNIDRV.OEM", "{D20EA372-DD35-4950-9ED8-A6335AFE79F5},XPSDRV.OEM,XPSGPD.OEM"
    [PrinterPackageInstallation.x86]
    PackageAware=TRUE
    CoreDriverDependencies={D20EA372-DD35-4950-9ED8-A6335AFE79F0}, {D20EA372-DD35-4950-9ED8-A6335AFE79F5}
    [PrinterPackageInstallation.amd64]
    PackageAware=TRUE
    CoreDriverDependencies={D20EA372-DD35-4950-9ED8-A6335AFE79F0}, {D20EA372-DD35-4950-9ED8-A6335AFE79F5}
    [PrinterPackageInstallation.ia64]
    PackageAware=TRUE
    CoreDriverDependencies={D20EA372-DD35-4950-9ED8-A6335AFE79F0}, {D20EA372-DD35-4950-9ED8-A6335AFE79F5}
    [DestinationDirs]
    DefaultDestDir=66000
    COLORPROFILES=66003
    [COLORPROFILES]
    xdwscRGB.icc
    xdCMYKPrinter.icc
    [ConfigPlugin]
    XDSmpl.ini
    XDSmplUI.dll
    [XPSDrvSample]
    xdsmpl.gpd
    xdnames.gpd
    xdwmark.gpd
    xdbook.gpd
    xdcolman.gpd
    xdnup.gpd
    xdpgscl.gpd
    xdwmark.dll
    xdcolman.dll
    xdbook.dll
    xdnup.dll
    xdscale.dll
    xdsmpl-pipelineconfig.xml
    [SourceDisksNames.x86]
    1 = %Location%,,
    2 = %Location%,,,x86
    [SourceDisksNames.ia64]
    1 = %Location%,,
    2 = %Location%,,,ia64
    [SourceDisksNames.amd64]
    1 = %Location%,,
    2 = %Location%,,,amd64
    [SourceDisksFiles]
    xdsmpl.gpd = 1
    xdnames.gpd = 1
    xdwmark.gpd = 1
    xdbook.gpd = 1
    xdcolman.gpd = 1
    xdnup.gpd = 1
    xdpgscl.gpd = 1
    xdsmpl-pipelineconfig.xml = 1
    xdsmpl.ini = 1
    xdwscRGB.icc = 1
    xdCMYKPrinter.icc = 1
    xdwmark.dll = 1
    xdcolman.dll = 1
    xdbook.dll = 1
    xdnup.dll = 1
    xdsmplui.dll = 1
    xdscale.dll = 1
    [Strings]
    Location="XPSDrv Sample Driver Location"
    MS="Microsoft"
    Microsoft="Microsoft"

  • How to load mysql driver in netbeans 5.0

    I configured mysql driver(com.mysql.jdbc.Driver) in netbeans 5.0. but i got this type of errors
    (run:
    Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at gdb.gdbop.main(gdbop.java:20))
    plz help me for this...............

    IDEs such as netbeans and eclipse require you to add any external jars to the project's classpath.
    for netbeans 5.0, see here:
    http://www.netbeans.org/kb/50/using-netbeans/project_setup.html#pgfId-1157099

  • Nvidia is not working after upgrading nvidia driver and kernel

    I upgraded nvidia driver and kernel. After rebooting graphic mode is not working. Here xorg.o.log
    [ 281.180]
    This is a pre-release version of the X server from The X.Org Foundation.
    It is not supported in any way.
    Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
    Select the "xorg" product for bugs you find in this release.
    Before reporting bugs in pre-release versions please check the
    latest version in the X.Org Foundation git repository.
    See http://wiki.x.org/wiki/GitPage for git access instructions.
    [ 281.181]
    X.Org X Server 1.10.0.902 (1.10.1 RC 2)
    Release Date: 2011-04-08
    [ 281.181] X Protocol Version 11, Revision 0
    [ 281.181] Build Operating System: Linux 2.6.38-ARCH i686
    [ 281.181] Current Operating System: Linux localhost 2.6.38-ARCH #1 SMP PREEMPT Wed Mar 30 07:14:27 UTC 2011 i686
    [ 281.181] Kernel command line: BOOT_IMAGE=/boot/vmlinuz26 root=/dev/disk/by-uuid/b766e332-2aad-4047-8562-567180150189 ro quiet
    [ 281.182] Build Date: 11 April 2011 10:49:12AM
    [ 281.182]
    [ 281.182] Current version of pixman: 0.20.2
    [ 281.182] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 281.182] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 281.183] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Apr 14 17:11:37 2011
    [ 281.183] (==) Using config file: "/etc/X11/xorg.conf"
    [ 281.183] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 281.183] (==) ServerLayout "Layout0"
    [ 281.183] (**) |-->Screen "Screen0" (0)
    [ 281.183] (**) | |-->Monitor "Monitor0"
    [ 281.184] (**) | |-->Device "Videocard0"
    [ 281.184] (**) |-->Input Device "Keyboard0"
    [ 281.184] (**) |-->Input Device "Mouse0"
    [ 281.184] (**) Option "Xinerama" "0"
    [ 281.184] (==) Automatically adding devices
    [ 281.184] (==) Automatically enabling devices
    [ 281.184] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 281.184] Entry deleted from font path.
    [ 281.184] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/100dpi/,
    /usr/share/fonts/75dpi/
    [ 281.184] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 281.184] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    [ 281.184] (WW) Disabling Keyboard0
    [ 281.184] (WW) Disabling Mouse0
    [ 281.184] (II) Loader magic: 0x822e120
    [ 281.184] (II) Module ABI versions:
    [ 281.184] X.Org ANSI C Emulation: 0.4
    [ 281.184] X.Org Video Driver: 10.0
    [ 281.184] X.Org XInput driver : 12.2
    [ 281.184] X.Org Server Extension : 5.0
    [ 281.185] (--) PCI:*(0:1:0:0) 10de:0322:0000:0000 rev 161, Mem @ 0xfd000000/16777216, 0xe8000000/134217728, BIOS @ 0x????????/131072
    [ 281.185] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    [ 281.185] (II) LoadModule: "extmod"
    [ 281.185] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
    [ 281.185] (II) Module extmod: vendor="X.Org Foundation"
    [ 281.185] compiled for 1.10.0.902, module version = 1.0.0
    [ 281.185] Module class: X.Org Server Extension
    [ 281.185] ABI class: X.Org Server Extension, version 5.0
    [ 281.185] (II) Loading extension MIT-SCREEN-SAVER
    [ 281.185] (II) Loading extension XFree86-VidModeExtension
    [ 281.185] (II) Loading extension XFree86-DGA
    [ 281.185] (II) Loading extension DPMS
    [ 281.185] (II) Loading extension XVideo
    [ 281.185] (II) Loading extension XVideo-MotionCompensation
    [ 281.185] (II) Loading extension X-Resource
    [ 281.185] (II) LoadModule: "dbe"
    [ 281.185] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
    [ 281.185] (II) Module dbe: vendor="X.Org Foundation"
    [ 281.185] compiled for 1.10.0.902, module version = 1.0.0
    [ 281.185] Module class: X.Org Server Extension
    [ 281.185] ABI class: X.Org Server Extension, version 5.0
    [ 281.185] (II) Loading extension DOUBLE-BUFFER
    [ 281.185] (II) LoadModule: "glx"
    [ 281.186] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 281.216] (II) Module glx: vendor="NVIDIA Corporation"
    [ 281.217] compiled for 4.0.2, module version = 1.0.0
    [ 281.217] Module class: X.Org Server Extension
    [ 281.217] (II) NVIDIA GLX Module 173.14.28 Wed Sep 29 10:17:05 PDT 2010
    [ 281.217] (II) Loading extension GLX
    [ 281.217] (II) LoadModule: "record"
    [ 281.217] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
    [ 281.217] (II) Module record: vendor="X.Org Foundation"
    [ 281.217] compiled for 1.10.0.902, module version = 1.13.0
    [ 281.217] Module class: X.Org Server Extension
    [ 281.217] ABI class: X.Org Server Extension, version 5.0
    [ 281.217] (II) Loading extension RECORD
    [ 281.217] (II) LoadModule: "dri"
    [ 281.217] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
    [ 281.217] (II) Module dri: vendor="X.Org Foundation"
    [ 281.217] compiled for 1.10.0.902, module version = 1.0.0
    [ 281.217] ABI class: X.Org Server Extension, version 5.0
    [ 281.217] (II) Loading extension XFree86-DRI
    [ 281.217] (II) LoadModule: "dri2"
    [ 281.217] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 281.218] (II) Module dri2: vendor="X.Org Foundation"
    [ 281.218] compiled for 1.10.0.902, module version = 1.2.0
    [ 281.218] ABI class: X.Org Server Extension, version 5.0
    [ 281.218] (II) Loading extension DRI2
    [ 281.218] (II) LoadModule: "nvidia"
    [ 281.218] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 281.218] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 281.218] compiled for 4.0.2, module version = 1.0.0
    [ 281.218] Module class: X.Org Video Driver
    [ 281.218] ================ WARNING WARNING WARNING WARNING ================
    [ 281.219] This server has a video driver ABI version of 10.0 that is not
    supported by this NVIDIA driver. Please check
    http://www.nvidia.com/ for driver updates or downgrade to an X
    server with a supported driver ABI.
    [ 281.219] =================================================================
    [ 281.219] (II) NVIDIA dlloader X Driver 173.14.28 Wed Sep 29 09:55:18 PDT 2010
    [ 281.219] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 281.219] (--) using VT number 7
    [ 281.222] (II) Loading sub module "fb"
    [ 281.222] (II) LoadModule: "fb"
    [ 281.222] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 281.222] (II) Module fb: vendor="X.Org Foundation"
    [ 281.222] compiled for 1.10.0.902, module version = 1.0.0
    [ 281.222] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 281.222] (II) Loading sub module "wfb"
    [ 281.222] (II) LoadModule: "wfb"
    [ 281.222] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 281.223] (II) Module wfb: vendor="X.Org Foundation"
    [ 281.223] compiled for 1.10.0.902, module version = 1.0.0
    [ 281.223] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 281.223] (II) Loading sub module "ramdac"
    [ 281.223] (II) LoadModule: "ramdac"
    [ 281.223] (II) Module "ramdac" already built-in
    [ 281.223] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 281.226] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 281.226] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 281.226] (II) UnloadModule: "nvidia"
    [ 281.226] (II) Unloading nvidia
    [ 281.226] (II) UnloadModule: "wfb"
    [ 281.226] (II) Unloading wfb
    [ 281.226] (II) UnloadModule: "fb"
    [ 281.226] (II) Unloading fb
    [ 281.226] (EE) Screen(s) found, but none have a usable configuration.
    [ 281.226]
    Fatal server error:
    [ 281.226] no screens found
    [ 281.226]
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    [ 281.226] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [ 281.226]

    bilgee0629 wrote:
    Arjann wrote:
    I think the new xorg-server is the problem as it isn't supported by this nvidia driver yet.
    You could try to install the nouveau driver until nvidia comes with a new version of the 173 branch that supports xorg-server 1.10, see: https://wiki.archlinux.org/index.php/Nouveau for information. As lower-grade options, you might also consider xf86-video-nv and xf86-video-vesa.
    Should i uninstall nvidia driver, then install it?
    I think thats the easy way yes, else you have to blacklist the nvidia kernel module.. check the wiki link of nouveau for details.

  • HT1305 how can i turn down the fan rpm that's between the optical drive and hdd in my power mac g5 dual 2.3?

    how can i turn down the fan rpm that's between the optical drive and hdd in my power mac g5 dual 2.3?

    Ok, I saw that error in your logic. A Dual G5 2.3 or even a Dual Core 2.3 does NOT use LCS at all. Its air cooled and if anything if the OP is experiencing this problems could be due to possible heatsink paste drying up. He might have to re-apply MX 7 or Arctic Silver.
    The only G5's that use LCS are: G5 dual 2.5 from Late 2004, the G5 Dual 2.7 from Early 2005, and lastly the G5 Quad-Core from Late 2005-end of September 2006.
    Hope this helps.

  • I have an older MacBook Pro using 10.4.11 and want to use new operating system to use the latest iLife. Can i install 10.7 on an external hard drive and use the external hard drive to run new system while leaving my old system intact?

    I want to use a new version of iLife (for iMovie and iDVD) but am currently running OS 10.4.11, which won't work with the newer iLife programs. Can i install OS 10.6.3 or 10.7 on an external hard drive, boot to that hard drive and work with the new software (installed on the external hard drive) using my MacBook Pro  (circa 2005/6) as the engine while leaving my laptop running 104.11 the rest of the time?

    Yes, you can use an external drive. To upgrade, however, means:
    Purchase Snow Leopard DVD then update Snow Leopard to 10.6.8.
    Access the App Store with your Apple ID and purchase and download Lion.
    Your computer must meet system requirements:
    Snow Leopard General requirements
    Mac computer with an Intel processor
    1GB of memory
    5GB of available disk space
    DVD drive for installation
    Some features require a compatible Internet service provider; fees may apply.
    Some features require Apple’s MobileMe service; fees and terms apply.
    Lion System Requirements
    Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of memory
    OS X v10.6.6 or later (v10.6.8 recommended)
    7GB of available space
    Some features require an Apple ID; terms apply.
    Obviously, you do not have to upgrade to Lion but can stop at Snow Leopard 10.6.8 which is sufficient for the current versions of iLife apps. Note that iDVD is no longer part of the newest version of iLife. Lion 10.7.2 or later is needed should you wish to use iCloud.

  • Setting up the Mysql Driver

    Does anyone know of a good link, regarding the setup of a Mysql jdbc driver on a Unix platform. I need to setup a test page and do not know which *.jar file should be referenced in the classpath. Is it a matter of just downloading the [???] jar file or should I make use of connectors?
    Thanx in advance

    Hi,
    I have been using MySQL with Java on both windows and Linux for a while now. All I had to do was to
    1) Download the mm.mysql-2.0.11-bin.jar file from www.mysql.com
    2) Include this JAR file in the classpath.
    3) Open a connection to the database using code like this:
    String driverClass = "org.gjt.mm.mysql.Driver",
    String url = "jdbc:mysql://localhost/databaseName",
    String user = "root",
    String password = "");
    Class.forName(driverClass).newInstance();
    Connection connection = DriverManager.getConnection(url, user, password);
    This should do the job.
    If you are looking for an easy way of reading and writing objects in databases, I suggest you take a look at the Mr. Persister API that we are releasing on monday May 3rd. It is free, and it does all the tedious and boring work of JDBC for you, with only 5% overhead compared to custom JDBC code. Mr. Persister was developed on MySQL, so it will also work with your project. Check it out here:
    http://www.jenkov.dk/projects/mrpersister/mrpersister.jsp
    Kind Regards,
    Jakob Jenkov
    www.jenkov.com

Maybe you are looking for