Application in JAR file cant find JDBC classes

Hi,
When I run an application from the JAR file the ClassNotFound exception is throw! When I run from the application classes in the directory the program works. The JDBC classes are in the CLASSPATH, the manifest of JAR file is:
Manifest-Version: 1.0
Created-By: xxxxx
Main-Class: com.xxx.jhdesk.JHelpDesk
Class-Path: classes111.jar JdbcDomino.jar
I tried to put "class-path" parameter in the manifest but the problem continues.
I need to send only my jar file, and the JDBC classes would be anywhere at the client machine.
Any hint will be appreciated!
Thanks in advance!
Daniel Carvalho

Those two jar files in the Class-Path entry in the manifest file, are they in the same directory as the jar file? (What you put there is supposed to be relative to the jar file, and you have no directory information.) And is there a line-ending character at the end of that line?

Similar Messages

  • Help finding JAR files containing a specific class

    I Need to find the JAR file containing the java class/type com.sap.engine.frame.ServiceException
    <i><b>Frank</b></i>

    Hi Frank,
    The easiest solution will be searching for class names in Windows search like: Search for files *.jar and contains text xyz.class.
    If you find a particular jar then open it using WinZip and you can locate the class file.
    Regards,
    Ananth

  • Error in importing user-created jar file & cannot find symbol

    Hello.
    I try to import the jar file made from common classes in the previous project. by using NB 5.5.1.
    The jar file is named as 'tpslib.jar'
    The previoud package name is 'tps'.
    I added tpslib.jar in the library, and removed the class files from the orginal project, because the class files exist in the tpslib.jar.
    THe jar file has 8 class files inclduing the following class, ReservationData.
    My question is why the follwoing fuction call try to the method in the previous package, tps instead of those of tpslib.jar.
    If you have anyone to answer me, it will be very appreciated.
    Tae
    package tps;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    import tpslib.*;
    public class tpsPWSImpl implements tpsPWSSEI {
    public ReservationData reserve(ReservationData request) throws java.rmi.RemoteException {
    request.print();
    requestLocal.print();
    if (!request.equalsCoreOf(requestLocal)){
    cFlag = true;
    System.out.println("reserve: WARNING ");
    ===================
    9 Error Messages
    ====================
    cannot find symbol
    symbol : method print()
    location: class tps.ReservationData
    request.print();
    cannot find symbol
    symbol : constructor ReservationData(tps.ReservationData)
    location: class tps.ReservationData
    wr = new ReservationData(rr);
    ===========

    Does your jar include:
    /a/Main.classWith class Main defined in package, er, "a"?

  • IO Error while deploying application client jar file ???????

    Hi,
    In my .ear file, one application-client jar(which contains all helper classes which are used in whole application) file is there. While deploying .ear file, all ejb are getting deployed well, while deploying application client jar file(Global.jar file here) it is giving the following message:
    IO Error deploying Global.jar: D:\oracle9ias\oc4j_extended\j2ee\home\applications\trainiumear\Global.jar
    Here is application-client.xml of Global.jar file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application-client_1_2.dtd'>
    <application-client>
    <display-name>TrainiumClientApp</display-name>
    <description>Application description</description>
    </application-client>
    My Environment: Oracle9iAS (9.0.3.0.0), Windows-NT
    Please let me know Why i am getting 'IO Error' , where i may done wrong ?
    Thanks in Advance
    Srinivas

    Srinivas,
    Before we continue, PLEASE tell me if you've looked through the available
    documentation, code samples, "how-to" documents, etc., for OC4J. It
    seems to me that you're mixing things up a bit. I use the "deploy"
    command to deploy my EARs, example (partial):
    java -jar admin.jar ormi://<host> admin <password> -deploy ...
    And my EAR file is not in the "application-deployments" directory
    when I issue that command.
    Perhaps you could also show me the contents of your "application.xml"
    file for this application you are having trouble with.
    But I repeat, please tell me if you have already looked at the
    available documents regarding OC4J!
    Thanks,
    Avi.

  • Please help: Example how to peploy application from jar file step by step

    Please help: Example how to peploy application from jar file step by step.
    All help appreciated
    Mike

    Thanks I will try these links
    Mike
    "Slava Imeshev" <[email protected]> wrote:
    Hi Mike,
    These links could be useful:
    http://e-docs.bea.com/wls/docs61////adminguide/appman.html
    http://e-docs.bea.com/wls/docs61////quickstart/quick_start.html
    http://e-docs.bea.com/wls/docs61//////ConsoleHelp/application.html
    http://e-docs.bea.com/wls/docs61///programming/environment.html
    Regards,
    Slava Imeshev
    "Mike" <[email protected]> wrote in message
    news:3ca0e94c$[email protected]..
    Please help: Example how to peploy application from jar file step bystep.
    All help appreciated
    Mike

  • How to install a Application in *.jar file format?

    How to install a Application in *.jar file format?
    I have taken the *.jar file into the device into media folder. but device is not recognizing the file format
    could some one plz provide some suggestion to proceed with this?
    Thanks
    Mohamed Javeed

    I'm having the same problem.  I've put .jar into the 'system' folder but that doesn't seem to make the program work neverless see it on my device.  Help.

  • Cant find my classes when exporting customized MAM application

    Hi all,
    The problem i'm facing here is that the .war of my customized MAM application i deployed through WebConsole cant seem to find the classes i created.
    I've tried to export the war file with and without the source code of the project but it doesn't change anything.
    Have any of you experienced this ?
    Regards

    Hi Sivakumar,
    Thanks for your reply. The home page of the application is shown and i can display every standard menus. The onyl ones i cant manage to display are the customized ones. The error message i get is the following:
    Event handler not found ZonGoRecep in com.sap.mbs.mam.home.control.HomeManagement.
    Component: home
    Display: com.sap.mbs.mam.home.control.HomeManagement
    Event: ZonGoRecep
    Error code: E501
    Error message: com.sap.mbs.core.api.CAFException
    and
    com.sap.mbs.core.api.CAFException: Event handler not found ZonGoRecep in com.sap.mbs.mam.home.control.HomeManagement.

  • Running application from jar file in a PDE project?

    I have a jar file with a simple application:
    import javax.swing.*;
    public class MyTest {
      public void test(){
        JOptionPane jp = new JOptionPane();
        jp.showInputDialog("Bob");
      public static void main(String[] args) {
        MyTest m = new MyTest();
        m.test();   
    }I have made the Hello World PDE Project in Eclipse on Vista. From the execute function I do:
          * the command has been executed, so extract extract the needed information
          * from the application context.
         public Object execute(ExecutionEvent event) throws ExecutionException {
    //          IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
    //          MessageDialog.openInformation(window.getShell(), "MyPlugin", "Hello, Eclipse world");
           MyTest m = new MyTest();
           m.test();
              return null;
         }But nothing happens. I have added the external Jar file to the build path. Any ideas?

    I have tried running a debugger but I just get:
    "Source not found"
    when stepping over this line:
         MyTest m = new MyTest();
    I have not been able to find any pages on google that describes this problem or how to use external jars with a PDE project so any ideas are most welcome!

  • Add jar files and use those classes at the runtime

    Hi All,
    I need to add some jar files at the runtime depends on which the user selects where the jar file is located and i need to import those classes in other class for some functionalities . I could add jar files by using the URLClassLoader and Class.forName("myjar.myclassname") is also succeeded and i have no clue how to use those classes with in the jar file as i couldn't import those classes also in the source because the jar files are being added at the runtime(This leads to class not found exception at the compile time).
    I had found a complicated way of using those classes after being added at the run time as below.
       Class clazz = Class.forName(myClass);
                final Method method = clazz.getDeclaredMethod(requiredMethod, new Class[]{URL.class});
                final Object returned = method.invoke(clazz.newInstance(), new Object[]{request}); but, its really pain to use in this way in all the places.
    Does any of you have simpler suggestions on how to achieve this?
    Thanks,
    Venky.

    Thanks jschell. Yes, you are right. I had found that using reflection API is the only way to load classes at the run time. But according to our application using reflection makes the application little complex, so while start of the application or during other modifications, i am overwriting my jar file to the latest one using FileChannel class as below
          FileChannel ic = new FileInputStream("new.jar").getChannel();
          FileChannel oc = new FileOutputStream("old.jar").getChannel();
          ic.transferTo(0, ic.size(), oc);
          ic.close();
          oc.close();After this code is executed, our application totally uses the new jar file.It is little fast than using reflection. Is this a good idea?

  • Images not getting Loaded while running Java Application through jar file

    Hello Friends,
    I have a problem while starting my application.I have written my application using pure java.There is no JSP or anything just pure swings.Mine is a standalone appplication.So i used to run it using a batch file.And when i used to start my application it used to not show me the images.so what i did was i mentioned the starting directory in the properties of the batch file (ie in the start in column field).But that was when i was using weblogic server.And i have lot of people working on the same application.so i used ZAC publisher in weblogic and along with that i used to publish the batch file also.so the users dint have any problem.But now what is my problem is i m trying to use JAVA Webstart instead of weblogic ZAC.Now in webstart what happens is that i have to run the appliaction thru jar file.so where do i mention the class path so that the images get loaded.As of now the imaes are not getting loaded.i feel this is a class path problem.but where do i mention it that is my problem.It would be really helpfule if someone could help me out.
    thanx and regards,
    [email protected]

    try out this
    ImageIcon img1=new ImageIcon(this.getClass().getResource(imagename));
    for exmaple
    Imageicon img1=new ImageIcon(this.getClass().getResource("name1.jpg"));
    dont 4get to include the image files in the jar file

  • Access jar file from in-memory classes...

    I have some classes that I compile to memory and everything works fine until one class that must access some external jar files. I have been unable to access those jar files from disk after trying every suggestion using URLClassLoader. I even tried someone's example to hack the SystemClassLoader which properly adds the jar file paths, but still they can't be seen. The only way it works is if I put the files in the jdk/jre/lib/ext directory. Then everything works fine. There must be a way to load the jar files in memory as well as the class files so they can be accessible. Has anyone done anything like this? Is it possible? Even though the class files are in memory, why would the jar files not be seen even when they are added to the same URLClassLoader's URL's. Thanks.

    Sorry that wasn't clear. What I mean is that the classes are compiled to byte code directly to memory and no physical .class file is created. Yes, I'm using my own ClassLoader that extends URLClassLoader and I'm setting the parent to ClassLoader.getSystemClassLoader(). I also should mention that I'm doing this inside a Netbeans module that is part of a Netbeans Platform application. I don't know why that should matter though, since I'm trying to do everything in memory without creating the physical files. Thanks.

  • URGENT ! Forms (jar file vs directory and classes)

    Hi,
    Our java developper has made an applet that we have to integrate with Forms.
    I said that I need a jar file that I will put in the forms90/java directory.
    The java developper want's to deploy instead of a jar file the whole directory and sub directory and all classes under the forms90/java.
    My question is, are both deployement giving the same result in term of performance on the client side when downloading the classes or the jar file.
    I always tought that jar file was better in performance.
    What is the best way to deploy our applet?
    Thanks for quick answer.
    Jean-Yves

    If you choose jar file client JVM will probably cache your jar. This will increase speed of application loading.
    Another benefit is that when you use jar file there is lazy/on demand loading option available (in my experience on demand loading doesn't work out of the box - jar file and all referenced jar files must be indexed). In other words: users that don't use forms that use your applet will not download that jar file (I have used this for FormsGraph example and some custom java application) and they don't have to download all of the jars your jar file references.

  • Java application - build JAR file & include JCO library

    Hello everyone,
    I have a problem with my Java application that <i>connects to SAP system using JCO </i>library <b>(sapjco.jar)</b>.
    I would like to create a JAR file from my Java application but when I run the JAR file that I created I get an error that <b>NoClassDefinitionFoundError com/sap/mw/jco/JCO at [...]</b>
    That means that the JCO and associated DLL files <b>(sapjco.jar, librfc32.dll and sapjcorfc.dll)</b> were <u>not</u> included/packed in my JAR file.
    <b>-- How can I include the JCO lib in JAR file?
    -- If there is a problem with the DLL files, how can I include the JCO lib externally (dynamicly read the JCO whenever my JAR in run)?</b>
    I am using Eclipse 3.2 and Export to JAR option when I click right button on Project.
    THANKS IN ADVANCE FOR HELP!!!

    Hi,
    The problem is that you don't have defined the libraries in the Manifest file of your jar-file. So the jar doesn't know what to use at runtime.
    Add following entry to the MANIFEST.MF file:
    Class-Path:/<lib_folder>/<lib1_name>.jar; /<lib_folder>/<lib2_name>.jar and so on.
    Regards,
    Daniel

  • Which  is  jar file   the corresponding OCFCardAccessor Class?

    hello,
    when I complied my java file. I have following error:
    can't file the OCFCardAccessor.Class
    CardRequest cr = new CardRequest(CardRequest.NEWCARD, null,OCFCardAccessor.class);
    I already include the all jar file in the project,I find the jar file which include the OCFCardAccessor.class file,but can't file.
    if you known that please tell me.
    Regards
    deng

    Raktim,
    check this thread
    Re: How to use IUserfactory in Webdynpro?
    Thanks
    Bala Duvvuri

  • JAR: - Could not find main class

    I'm sorry, I know this issue has been posted before but I am a bit confused with my situation.
    After making a jar on my computer, I run it, and the program loads and runs perfectly.
    However, when I try the jar on someone else's computer, it doesn't work, and gives the "could not find main class" message. The other computer has JRE but not JDK, so I don't know if that makes a difference.
    Anyways, my main class file is located in a package called hw2, and the whole project is located in a folder called HW2. So my class file is located in something like C:\School\HW2\hw2\Main.class.
    My Manifest.txt file is located in the \School\HW2 directory and has the following with a new line at the end:
    Main-Class: hw2.Main
    At the command prompt, I go to my C:\School\HW2 directory and I type the following to create the jar:
    jar cvmf Manifest.txt test.jar hw2\*.class
    My jar file has the following contents:
    META-INF/
    META-INF/MANIFEST.MF
    hw2/Bank.class
    hw2/GUIInterface.class
    hw2/Main.class
    Did I write the manifest.txt file correctly? Am I in the right directory when creating the jar file? Am I executing the jar command wrong? How come it works on my computer but not on someone else's?

    Are you certain you're executing the jar in the same way on both machines?
    For example, are you sure you're not executing the unjarred class files when you run on your local machine?

Maybe you are looking for

  • Screen/Desktop Only showing one program at a time...

    My mom called me in to look at her iMac earlier today. She said she was moving her illustrator window off to the side when all of the sudden it was "sucked" away to the left side of the screen. Now when she tries to bring up more than one window for

  • What is the difference between mc947ll and MD301LL

    What is the difference between these 2 part numbers for the iPad2 Leather case MD301LL appears to be offered on Apple store while MC947LL is a 3rd party offering but I dont see a difference in specs but the MC947LL is offered for a lower price Rob

  • Error running AP Trial Balance

    This is the error log I get when running the AP Trial Balance. +---------------------------------------------------------------------------+ Payables: Version : 12.0.0 Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved. APXTRBAL module

  • Big problem with receiver

    i've been having a big issue with my receiver i just purchased a yamaha rx-v463 and i got that with the klipsch speakers and sub. the problem is that i connect my high def cable box and ps3 and when i switch to play games and watch movies on the rece

  • List view to include a column or field which would display the sequence number in a view

    I have a view for a list which displays items following any condition or sorting. Now, i would like to display the list items in such  a way that the auto incremented numbers are displayed as an arbitary field which would display the numbers such tha