JDBC - msbase.jar\Msutil.jar\Mssqlserver.jar

Hi
i get the error :
java.lang.ClassNotFoundException: /microsoft/jdbc/sqlserver/SQLServerDriver
because i dont have the msbase.jar\Msutil.jar\Mssqlserver.jar files. can someone please tell me where i can get these files. i need to add them to the classpath but i dont have them.
Cheers

Put the jar into the jdk\jre\lib\ext (e.g. C:\Program Files\Java\jdk1.6.0\jre\lib\ext) and jre\lib\ext (e.g. C:\Program Files\Java\jre1.6.0\lib\ext) directories and try again. Then you don't need to set the classpath.
#

Similar Messages

  • Location of SQL Server JDBC Driver jar files

    Hi All,
    I have a java applet connecting to SQL Server 2000 through MS SQL Server 2000 jdbc driver. It works fine on all client machines only if I copy the three jar files of the driver (msbase.jar....) into ext folder of java. If not, I get an error message saying error establishing socket. Why is it necessary to copy these 3 files on to client machines when all the other jar files can be easily accessed from the server?
    Any ideas?
    Thanks,
    Manish

    Hi All,
    I have a java applet connecting to SQL Server 2000
    through MS SQL Server 2000 jdbc driver. It works fine
    on all client machines only if I copy the three jar
    files of the driver (msbase.jar....) into ext folder
    of java. If not, I get an error message saying error
    establishing socket. Why is it necessary to copy these
    3 files on to client machines when all the other jar
    files can be easily accessed from the server?
    Any ideas?
    Thanks,
    ManishIt is necessary because the applet is running ON THE CLIENT MACHINE. So the drive must be ON THE MACHINE.

  • Is changing the name of Oracle JDBC Driver JAR legally valid?

    Hi,
    I understand that it is legally fine to bundle Oracle JDBC driver JAR along with the applications. However, is it also legally OK to change that JAR name and then bundle it with the applications? Information on any legal implications which may need to be addressed is highly appreciated. I read through the licensing information and following is some excerpt:
    You may not:
    +<...>+
    - remove or modify any program markings or any notice of our proprietary rights;*
    I'm thinking if changing the JAR name either removes or modifies any program markings...
    Thanks in advance...
    ============================================================================
    Original post said "is it also legally OK to change that JAR"; now it is edited as "is it also legally OK to change that JAR *name*"
    ============================================================================
    Edited by: arm123 on Dec 1, 2010 7:51 PM

    arm123 wrote:
    I understand that it is legally fine to bundle Oracle JDBC driver JAR along with the applications. However, is it also legally OK to change that JAR and then bundle it with the applications? Information on any legal implications which may need to be addressed is highly appreciated. 1. A real answer can only come from a lawyer.
    2. I suspect the agreement allows you to rejar the classes. Which allow you to put it in any jar that you want.
    As with the other poster I don't see the point either.

  • Separating native JDBC driver JAR from applet JAR - best way?

    Since I want to allow the customers/users of my applet to choose their own native JDBC driver to purchase at their site, I don't bundle the JDBC driver into my applet's JAR file. During my testing, here's what I've done:
    1. Deployed my applet HTML and JAR files to a web server folder.
    2. Extracted my JDBC driver JAR file's contents to that same web server folder.
    (My applet HTML contains 2 parameters that allow the applet to use the JDBC driver -- class name and connection string template.)
    This works fine, but I'm wondering if I'm using the best techniques.
    Questions:
    1. Do the contents of the JDBC driver need to be extracted from its JAR file? If not, what do I do, if anything, to allow my applet to "see/find" the driver class within the JAR?
    2. If the JDBC JAR file DOES need to have its contents extracted, is there a way to extract them to a central folder somewhere on the web server and have a variety of applets use them? If so, what do I need to do to make my applet "see/find" the file(s) in the central folder?
    Possibly looking for this stucture on the web server:
    /WebApps/JDBCfiles
    /WebApps/MyDbApplet1
    /WebApps/MyDbApplet2
    /WebApps/MyDbApplet3
    Any advice/recommendations? Thanks.

    Is it possible for a client application to access a jarred JDBC driver? I'd like to deliver a JDBC driver packed in a jar file, however, it won't work, here is what I am tring to do
    try {
         Class.forName("mfg.jdbc.myDriver").newInstance(); //--> throw an exception
    m_Connection = DriverManager.getConnection(szURL, props);
    catch(Exception e) {/...}
    Before class myDriver and other classes from package mfg.jdbc were jarred, a client application used to get the connection just fine, now I get an exception "java.lang.ClassNotFoundException: mfg.jdbc.myDriver"
    I am using Java 2 Platform, no problem in running a jarred command like java -jar jarredclass.jar
    Any tips and hints would be gratfully received!
    Simon

  • Tomcat7 + JDBC driver jar

    Context:
    According to the installation guide for bonitasoft (http://documentation.bonitasoft.com/dat … add_driver)
    Tomcat 7
    For Tomcat, simply add the JDBC driver jar file in the appropriate folder:
        Bonita BPM Tomcat bundle: in the bundle folder add the driver to the lib/bonita folder.
        Bonita BPM deploy bundle: in the Tomcat folder add the driver to the lib folder.
        Ubuntu/Debian package: add the driver to /usr/share/tomcat7/lib.
        Windows as a service: add the driver to C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib
    Problem:
    Which JDBC driver is meant ? I searched the web for an tomcat JDBC jar file for tomcat7 ?
    This confused me further, I tought archlinux is analog to ubuntu and read the section platform installation example for (Ubuntu + OpenJDK + Tomcat + MySQL):
    Add JDBC driver
    You need to include JDBC driver in Tomcat classpath:
        Change to Tomcat libraries directory: cd /usr/share/tomcat7/lib.
        Download the library mysql-connector-java from the MySQL site to this directory.
    But the mysql site (recommended by the installation guide) provides a download link for an tar.gz file and on google.code (https://code.google.com/p/find-ur-pal/d … 8-bin.jar&) I found .jar file. The installation guide clearly speaks about an .jar file. There are different version of the JDBC jar file on the web. Which one is right ?

    Do you intend on continuing to spam the boards with this issue? Read the Etiquette and the wiki: https://wiki.archlinux.org/index.php/Tomcat_and_Apache
    Moving to NC...

  • How to add a JDBC driver jar to ESB project?

    I am developing an EJB project in JDeveloper 10.1.3.1. I am trying to connect MS SQL Server DB to the ESB. I set up the JDeveloper so it can connect to the MS SQL Server, list the tables&data. I put a DB Adapter using the existing connection to the diagram. When I deploy it to the Oracle AS I am getting oracle.toplink.exceptions.DatabaseException saying that the driver com.microsoft.sqlserver.jdbc.SQLServerDriver was not found. How do I package the JAR to the project so it gets uploaded to the server with the project files? If it is not possible, where should I put the jar so the server can use it?

    To get this working copy the jdbc jar file to the following directory
    %SOA_HOME%\j2ee\home\applib (basic)
    %SOA_HOME%\j2ee\oc4j_soa\applib (advanced)
    If you don't configure your datasources and JNDI names then it will use the connect string from your project. It is always best practice to use the application server connections
    cheers
    James

  • JDBC ojdbc6.jar problem with passing parameters for PreparedStatements.

    The JDBC Driver being used in ojdbc6.jar. I am using this driver because I of its compatibility with Java 6 which is on my machine
    The database I am connecting to is 10.2 (10g) Oracle database.
    The connection works fine its the parsing of the SQL query that is giving the problem Below is the code specific to this
    // never mind the syntax this is a JavaFX module and the query syntax doesn't use the '+' concats.
    sql = "select sfrracl_pidm,\n"
    " sfrracl_term_code, \n"
    " sfrracl_source_cde, \n"
    " sfrracl_reg_access_id \n"
    "from SFRRACL \n"
    "where sfrracl_term_code=? \n"
    "and sfrracl_pidm =\n"
    " (select spriden_pidm from spriden\n"
    " where spriden_id=? \n"
    " and spriden_id like 'G%'\n"
    " and spriden_change_ind is NULL);";
    //stmt = conn.createStatement(sql);
    try{
    ps = conn.prepareStatement(sql);
    ps.setString(1, stud_id);
    ps.setString(2, term_code);
    catch(fr:SQLException)
    fr.printStackTrace();
    try{
    //ps.executeUpdate();
    System.out.print('Student ID: ');
    System.out.println(stud_id);
    System.out.print('Term Code: ');
    System.out.println(term_code);
    System.out.println(sql);
    ps.executeQuery(); // error occurs here
    The output and exception thats thrown is below
    //debug output
    Student ID: GXXXXXXXX
    Term Code: 201020
    //sql statement thats in string
    select sfrracl_pidm,
    sfrracl_term_code,
    sfrracl_source_cde,
    sfrracl_reg_access_id
    from SFRRACL
    where sfrracl_term_code=?
    and sfrracl_pidm =
    (select spriden_pidm from spriden
    where spriden_id=?
    and spriden_id like 'G%'
    and spriden_change_ind is NULL);
    // end debug output
    java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3431)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at sfrracl.Main.buttonOnMouseClicked(Main.fx:215)
    at sfrracl.Main.buttonOnMouseClicked(Main.fx:215)
    at sfrracl.Main.invoke$(Main.fx:117)
    at sfrracl.Main.invoke$(Main.fx:117)
    at com.sun.javafx.functions.Function1.invoke(Function1.java:44)
    at com.sun.javafx.functions.Function1.invoke$(Function1.java:38)
    at javafx.scene.Node.impl_processMouseEvent(Node.fx:2917)
    at javafx.scene.Node.preprocessMouseEvent(Node.fx:2946)
    at javafx.scene.Scene$MouseHandler.process(Scene.fx:1499)
    at javafx.scene.Scene$MouseHandler.process(Scene.fx:1361)
    at javafx.scene.Scene.impl_processMouseEvent(Scene.fx:679)
    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.fx:956)
    at com.sun.javafx.tk.swing.SwingScene$SwingScenePanel.doMouseEvent(SwingScene.java:446)
    at com.sun.javafx.tk.swing.SwingScene$SwingScenePanel.mouseClicked(SwingScene.java:454)
    at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    BUILD FAILED (total time: 31 seconds)
    The invalid character that this is claiming are the ? marks however that would mean my setString
    is not working I am following what the documentation says why is this?

    http://forums.oracle.com/forums/forum.jspa?forumID=99 is the JDBC forum

  • Problems with jdbc and .jar files.

    I am having a problem with connecting to my database when running my .jar file as an executable.
    It connects correctly when I use the java command in command prompt and it also runs correctly when using my IDE.
    Is there something that needs to be added to the manifest or in the code it self inorder for the program to find the JDBC driver correctly?

    This is the error message that I get:
    java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at AboutFrame2$Connect.getConnection(AboutFrame2.java:109)
    at AboutFrame2$Connect.displayDbProperties(AboutFrame2.java:127)
    at AboutFrame2.<init>(AboutFrame2.java:72)
    at MainStartFile2.main(MainStartFile2.java:7)
    Error Trace in getConnection() : net.sourceforge.jtds.jdbc.Driver
    Error: No active Connection
    I think that it is because it cannot find the driver. I am going to add the path to the manifest and see if that works thank you for all the help.

  • Connecting to JDBC with jar

    I have downloaded the MySQL JDBC from their site and have a jar file. It is called
    mysql-connector-java-3.1.13- bin.jar
    I would like to have my NetBeans IDE 4.1 recognize this so I can write java code. It does not recognize the class currently.
    I tried adding it to the IDE path
    going to the web project, right click for properties.
    Choose libraries
    Choose the tab that says "compile tests"
    Then, I click "add jar/folder" and browse to the jar file
    Then choose the tab that says "run tests"
    Then I click "add jar/folder" and browse to the jar file
    Now I would assume this would be added to my class path for startup
    but it doesnt work
    Any ideas

    I do have the database linked in to my "Databases" with a driver listed under this list. Which is why I do not comprehend why my jsp code can not find the driver itself.
    Here is the error I get:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: org.gjt.mm.mysql.Driver
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:183)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    root cause
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:150)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
         java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         java.lang.Class.forName0(Native Method)
         java.lang.Class.forName(Class.java:164)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:60)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs.When I right click on "MySql" under drivers I get the name
    org.gjt.mm.mysql.Driver
    so my code now appears as:
    <%@page import="java.sql.*" %>
    <%--
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <%
       Connection connection = null;
       Statement statement = null;
       ResultSet rs = null;
    %>
    <% Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    //org.gjt.mm.mysql.Driver
        connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/database01", "user", "password");
           statement = connection.createStatement();
           rs = statement.executeQuery("SELECT * FROM table01");
           while (rs.next()) {
            out.println(rs.getString("field01")+"<br>");
      %>Any ideas welcome.. I have been searching through this link
    http://www.netbeans.org/kb/50/using-netbeans/configuring.html
    Without a lot of luck. I am using 4.1

  • Update an AS400 file using jdbc jt400.jar

    Hi,
    Just i have created an browser application to see an AS400 file,also I have been followed the Developer book to update this file but ones I'm ready to update I'm getting this message
    Cannot commit changes: [SQL0204] OPENCUT99 in C104504M type *FILE not found
    someone can helpme with this issue

    When you said AS400 and file I assumed FileIO. Is
    this JDBC and are you taking about a Connection?
    Again is there a Java error? What is going on?As400 is my database BOX
    and I'm accessing a database in this box
    The error is a system message
    System Messages
    Cannot commit changes: [SQL0204] OPENCUT99 in C104504M type *FILE not found.
    I'm using this code to update this table
    public String up_action() {
    // TODO: Process the button click action. Return value is a navigation
    // case name where null will return to the same page.
    try {
    opencut99DataProvider.commitChanges();
    log("update: changes committed");
    info("Update committed");
    } catch(Exception e) {
    log("update: cannot commit changes ", e);
    error("Cannot commit changes: " + e.getMessage());
    return null;
    }

  • Something wrong with jar?

    Hi,
    I have the following problem when I want to execute my Jar file.
    The command I use is:
    java -cp . -jar Drain.jar
    the error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Drain
    My jar file contains 3 classes (1 public i.e. Drain.class) Drain.class has the main method. If I dont pack the files into a jar and just submit the command:
    java Drain (CLASSPATH omitted)
    Everything is cool the app works!
    I create the jar file with the following contents in the manifest file
    Main-Class: Drain
    Class-Path: C:\Program Files\jaf-1.0.2\activation.jar C:\Program Files\javamail\javamail-1.3.3\mail.jar C:\Program Files\javamail\javamail-1.3.3\lib\imap.jar C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar
    with the command:
    jar cmf Manifest.txt Drain.jar *.class
    The jar is created but on execution it raises the NoClassDefFound error.
    Any suggestions?

    three classes
    PopupAuthenticator.class
    ByteArrayDataSource.class
    Drain.class
    the contents of MANIFEST.MF after unpacking it are:
    Manifest-Version: 1.0
    Class-Path: C:\Program Files\jaf-1.0.2\activation.jar;C:\Program Files
    \javamail\javamail-1.3.3\mail.jar;C:\Program Files\javamail\javamail-
    1.3.3\lib\imap.jar;C:\Program Files\Microsoft SQL Server 2000 Driver
    for JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Dr
    iver for JDBC\lib\mssqlserver.jar;C:\Program Files\Microsoft SQL Serv
    er 2000 Driver for JDBC\lib\msutil.jar;
    Created-By: 1.5.0_04 (Sun Microsystems Inc.)
    Main-Class: Drain
    the ; as a separator is there because I tried (this time ) to define the class-path in that manner. The funny thing is that the order of the headers is different than the examples I encountered in this forum. I.e. Class-path is here before Main-Class
    Man I'm going nuts over this one.

  • Accessing SQL Server jar for EP6 SP19/EP7 SP11

    Hi,
    I have application that accesses SQL Server and used to run in old portals (SP under 13) but doesn't run under new portals.
    This is the driver I use:
    <i>com.sap.portals.jdbc.sqlserver.SQLServerDriver</i>
    I tried to include the following jars under the 'lib' folder - didn't help
    P9base.jar, P9sqlserver.jar, P9util.jar
    I get  "[SAP_Portals][SQLServer JDBC Driver]This driver is locked for use with embedded applications".
    What jar/driver do I need to use in order to run applications that access SQL server in the new portals.
    p.s
    I don't want to define connection in VA. I want to use DIRECT connection.
    Thanks,
    Omri

    Solved it on my own.
    MS SQL Server 2000
    jars: msbase.jar, msutil.jar, mssqlserver.jar 
    jdbc:sqlserver://<host_name>:<port>;DatabaseName=<db_name> 
    Driver name:  com.microsoft.jdbc.sqlserver.SQLServerDriver 
    Omri

  • Compiling with JAR files

    Hi,
    I'm trying to run a very simple jdbc testapplication that uses jdbc drivers from M$. The problem is that i don't know how to run a .class file which depends on jar files (from the commandprompt).
    This is what i get:
    javac dbtest.java -classpath msbase.jar;mssqlserver.jar;msutil.jar
    No problem!
    java -classpath msbase.jar;mssqlserver.jar;msutil.jar dbtest
    Exception in thread "main" java.lang.NoClassDefFoundError: dbtest
    Why isn't my Main method found?

    Complete source:
    import java.io.*;
    import java.net.*;
    import com.microsoft.jdbcx.sqlserver.*;
    import java.sql.*;
    public class dbtest
    static Connection conn = null;
    public static void main(String argv[])
    System.out.println("Starting Sql...");
    try{
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    try{
    conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://192.168.1.25:1433;DatabaseName=ucc;User=sa;Password=sa");
    Statement stmt = conn.createStatement();
         stmt.execute("select * from tblUser");
    ResultSet rs = stmt.getResultSet();
    while (rs.next()) {
    System.out.println(rs.getString("FName") + " - " +
    rs.getString("LName"));
    catch (SQLException e){
    System.out.println("SqlException:" + e);
    catch(ClassNotFoundException e){
    System.out.println("error connecting to database" + e);

  • Error not alloving sign my jar file - help needed

    hi guys i am getting the following error while trying to sign the jar file.
    unable to sign the jar ; jar.util.zip.zip exception: invalid entry compressed size .
    i got this while signing the msbase and msutil of MS jdbc jar files.
    what am i suppose to do.
    I am unable to understand one more thing. Do i need to have both jdbcodbc.dll library and msbase,msutil, mssqlserver jar files to connect using jdbc or its ok if i only have the jar files. I would appreciate if somebody can help me in this regard.
    thanks,
    ravi.

    hi guys i got the problem solved i unzipped the files and zipped them agian. Its working well .
    thanks,
    ravi.

  • Cant make an exeble jar of a package !

    HI,
    I have made an application declaring a package 'mypack'. My directory structure is :
    e:
    --mypack
    ----msbase.jar
    ----mssqlserver.jar
    ----msutil.jar
    ----Main.java
    ----*.java
    ----*.class
    I set my classpath as :
    SET CLASSPATH=".;E:\mypack\msbase.jar;E:\mypack\mssqlserver.jar;E:\mypack\msutil.jar;E:\;"
    My package name is 'mypack'. I include the line 'package mypack' on top of every source files. I compiled all the source files successfully. And also succeeded to run the application by "java mypack.Main" from anywhere( my main class is Main.java ).
    But i failed to build an executable jar file for this application.
    My manifest file contains :
    Manifest-Version: 1.0
    Main-Class: Main
    Created-By: 1.2 (Sun Microsystems Inc.)
    And i did from the command prompt as follows:
    e:\mypack>jar cvfm App.jar mymanifest.mf *
    It builds the jar file but when i click it, it says "Could not find the main class. Program will exit !"
    I also tried with "Main-Class: mypack.Main" in mymanifest.mf but it also didn work.
    If I dont make the package 'mypack', then i get no error. App.jar can be executed. Then whats wrong with my package ?

    I also tried with "Main-Class: mypack.Main" in mymanifest.mf
    but it also didn work.That is the way it should work; the value for Main-Class should be the fully qualified class name which includes the name of the package.
    Which error message do you get in this case, "could not find the main class?" If so, the jar file probably doesn't contain the class file in the right place: jar files have an internal directory structure and a class can't be found if it's in the wrong directory. The directory structure should be the same as the package structure of the source code.
    This internal directory structure is defined by the command you use to create the jar file; if the command you posted works when you don't use the "package" declaration this should work now:
    e:\>jar cvfm App.jar mymanifest.mf mypack/*
    You can "peek" inside a jar file and check the directory structure with any file compression program (like winzip) or by using the "t" switch with the jar tool:
    e:\>jar tf App.jar

Maybe you are looking for

  • Why am I not able to donate via text message?

    After I sent a code to donate, I get a message asking what my billing zip code is. I reply with that and get a response saying, "Your wireless account is not eligible to donate. Your donation cannot be processed. You can still donate at redcross.org.

  • Acrobat 8 Pro fails to Save As or Create PDF or otherwise save new PDFs

    I am running 8.1.2 on a MacBook Pro with 10.5.4 and the whole Master Collection installed. So, here's what's going on: If I open a PDF in Acrobat and make changes to it, I can save it, but I cannot "Save As." It will go through the normal routine of

  • Using JetDirect 175x with LJ 3200 and getting offline after a short time

    I have a HP LJ 3200 connecting to my home network via a JetDirect 175x print server, using a D-Link router. All was good until I updated the firmware on the D-Link router. This changed the network IP scheme from 192.168.15.x to 192.168.0.x. I decided

  • HELP!  how to eliminate leading silence added when saving in mp3 format

    Everytime I save my sound files in .mp3 format, Soundbooth seems to add a little bit of leading and a little bit of trailing silence.  How do I prevent this from happening.  I am trying to use my sounds inside a Flash application and I want to have 2

  • Cannot connect 3G, Argentina

    Hello, I live in Mendoza, Argentina. I have just bought 3 iPhones. One is 3Gs 32GB, and the other two are 3G 8Gb. The problem is that the iPhones 3G (8Gb) work perfect with the 3G network, but the iPhone 3Gs (32Gb) only can be used by disabling 3G. I