Problem with jar file please help!!

Hi everybody
I make a jar file using Jbuilder;my application interact with oracle and when i try to run it ,I get the following message:
"no driver was found "
however i add the oracle driver in my jar file as a library dependencies.
could some one help

I don't know whether this will help you or not.
You have mentioned that drivers are added into jar file which you have created. Similar situation I faced. In my case I added classes12.zip for ORACLE thin drivers. For this to work I had to set classpath for this zip file. Once I set the classpath for this zip file my application started working fine.
So if you are using any zip or jar file for your driver you will have to define it in your classpath.
Mushy

Similar Messages

  • I am new with JAR files please help me

    Hi Dear All,
    I am new with JAR files, I know concept, but dont know how to careate JAR, and how do i use it?
    Please help me.
    Thanks

    This tutorial covers that:
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • URLClassLoader - with JAR Files- - - Please Help

    Hi all,
    I have two seperate JAR files which contain same files but different progressive versions.JAR 1 is version V1 and JAR 2 is Version V1.1
    I have a program which loads classes from these two JARS and runs certain comparsions on them.CODE IS SHOWN and SO is ERROR.PLEASE HELP and ADVISE.Im on a UNix box using JDK 1.3.
    CODE:
    ====
    1.In my main i define the TWO JARS PATHS and the item to compare called ENTITYNAME as:
    String jarFile1 = "/xenv/GFINet_Java/6.2_Z1/1.3.X/gfinet_entities.jar";
    String jarFile2 = "/xenv/GFINet_Java/6.1_Y1/1.3.X/gfinet_entities.jar";
    String entityName = "gfinet.entities.GFIBasketEntity";
    2.Then i call the function
    EntityVersionComparator evc = new EntityVersionComparator();
    evc.test(jarFile1, jarFile2, entityName);
    3.Test function loads the JARS
    private void test(String jarFile1, String jarFile2, String entityName) throws Exception {
    URLClassLoader jar1 =
    (URLClassLoader)newClassLoader(jarFile1);
    URLClassLoader jar2 =
    (URLClassLoader)newClassLoader(jarFile2);
    4. Load that item ENTITYNAME FROM JAR.
    // load GFIBasketEntity from Jar1
    GFIBaseEntity ent1 =
         (GFIBaseEntity)loadClass(jar1, entityName).newInstance();
    PROBLEM ERRORS:
    ==============
    Exception in thread "main" java.net.MalformedURLException : no
    protocol :/xenv/GFINet_Java/sun4/6.2.Z2/Solaris8/3.3.2/1.3.X/lib/gfinet_entities.jar
    at java.net.URL.<init>(URL.java:473)
    at java.net.URL.<init>(URL.java:376)
    at java.net.URL.<init>(URL.java:330)
    at EntityVersionComparator.newClassLoader(EntityVersionComparator.java:143)
    at EntityVersionComparator.test(EntityVersionComparator.java:88)
    at EntityVersionComparator.main(EntityVersionComparator.java:74)
    WHATS GOING ON..Is there something wrong with the path?Pls advise
    jason

    I also in my CODE have:
    private ClassLoader newClassLoader(String path)
    throws MalformedURLException
    { URL url = new URL(path);
    return new URLClassLoader(new URL[]url);

  • Executabe Jar File: Please Help

    Here is the problem. I had no problem before creating and running executable jar files at work or at home. I write the manifest file and then run "jar cmf mymanifestfile jarfile.jar *.class" and everything is fine. Both my work and home computer were set up to execute jar files, so all I had to do was click on the option.
    Now here is the problem. At work, they just installed PKZIP and now that is default for opening jar files. I still want it to execute the jar file though, so last night, when I went home, I right clicked on a jar file I had, clicked on properties, and saw that where it said "Open With" I had javaw. Sooo.. today, I come back to work, right click on a jar file here, and then where it says "Open With" I change it to "javaw" but now when I click on the file, it gives me a Java Virtual Machine error saying it can not find the main file. I am positive that this jar file was created correctly. Furthermore, if I go to the DOS prompt and run it using "java -jar jarFile.jar" it runs just fine (If I do "javaw jarFile.jar", it does NOT work).
    So my question is this: what do I need to set the "Open With" program to for executing jar files. Is there a way to do command line parameters so I can open with "java -jar". Please help.
    Any help would be very appreciated.

    Also, another thing that is weird is this.
    The old jar files that I created at home, run fine at home (execute when I double click them), and if you look at the properties they are run with "javaw", but, the new jar files I create, that I create exactly the same way as the ones I created before, dont work when I double click them.

  • Weirdest problem with ipod!PLEASE HELP ME!!!

    Okay, i tried to load a playlist that had about 100 songs on it. While its loading, the update just stops. My ipod starts going crazy.The apple logo keeps lighting up and then the light doesnt come on but the logo is still there. You can hear the inside of it like trying to come on but then it just keeps doing the same thing til the battery life runs out! I really need help on this! I've tried to reset but everytime I do it it just keeps doing the same thing. I dont know if i should wipe all my songs off of itunes or what but im so confused and so aggravated with it. PLEASE HELP ME! I'D REALLY APPRECIATE IT!
      Windows XP  

    Welcome to Apple Discussions!
    See if any of these help...
    iPod Only Shows An Apple Logo and Will Not Start Up
    iPod Only Shows An Apple Logo
    btabz

  • PROBLEM WITH JAR FILES!!! QUICK HELP NEEDED!

    Hi guys
    What problem could I have if I can run a program with java.exe (I use JDK 1.5) but not in a JAR-File (I added the Main-Class-key to MANIFEST.MF)???
    Please answer fast!!!
    Thanks

    What problem could I haveThat depends a lot on what you did wrong. What did you do to run the Jar file, and what error message(s) did you then get?

  • .jar files Please help

    Good day all.
    I am very new to java and admittedly not a very technologically savvy person. However, I play the card game "Magic: The Gathering"? and wish to play online because not any of my friends play. I use a macintosh computer. I researched Magic Online and found you could download a free trial from Wizards of the Coast Website, but it was not for Macs. I continued to research and found something called "WebWizard" a program allowing Mac users to play Magic Online. I downloaded the necessary files and attempted to install them. The two files were named 'ww.jar' and 'cards.jar'. When I opened 'ww.jar' it said "Jar Launcher: The jar file "ww.jar" couldn't be launched. Check the Console for possible error messages". I opened 'cards.jar' and received the same message. Using what little intelligence I have in regard to Java, I opened a search for anything related to it, and found the Java Web Start application. I started up the application and followed the instructions, and was asked to locate the files I wanted to view. I located the first, 'ww.jar', and it opened a page full of what I assume was programming language that had been translated into what the symbols would be on my computer - Total gibberish. I opened the 'ww.jar' once again and the error message did not appear. Instead, the WebWizard window started up!
    However, I needed to get the 'cards.jar' file to work so I could start playing Magic Online. I tried to do the same thing with Java Web Start, but 'cards.jar' failed to open when I located it. I tried opening the file anyways, but nothing happened.
    I have worked for about an hour on trying to get this to work, and have not found any way. Please help me out!

    If you just want to play casually, you can use Magic Workstation. It's free, but it won't let you play with other people on Magic Online, but I think it does have some tournaments of its own (but not for prizes). Another older piece of software that isn't used as much anymore is Apprentice. I don't know if either of these run on a Mac.
    Depending on what version of Mac you're using (and if you have a PowerPC processor), you might be able to use Virtual PC (which costs money) to install a Windows image on your computer, and then virtually run Magic Online (if you obtain the Windows image from a file sharing network instead of purchasing Windows legitimately, this is illegal).
    You could also try using VMware Player (which is free software) to run Windows virtually on your computer and play Magic Online that way. I'm not sure if VMware runs on a Mac though.
    Please don't try all of these things until something works; this will be very time consuming. Give us some more background on where the Jar files came from and, if you can, the error messages printed to the Java console. Also, how much do you know about computers? If you know how to compile source code that will probably increase your options since I believe the source code for VMWare Player is available.

  • Images in jar file, Please help!!

    Hello,
    This is my code, I am trying to add images to buttons in ToolBar. The code along with images works if I say "java ABC", but dont work(images dont appear) when I jar the files. I have tried all the possible methods, Please help me.
              new2 = new JButton(new ImageIcon("images/new.gif"));
              /*try{
              ClassLoader loader=getClass().getClassLoader();
              URL fileLocation=loader.getResource("./images/new.gif");
              Image img=Toolkit.getDefaultToolkit().getImage(fileLocation);
              new2 = new JButton(new ImageIcon(img));
              }catch(Exception e) { e.printStackTrace(); }*/
              //new2 = new JButton(new ImageIcon(ClassLoader.getSystemResource("images/new.gif")));
              //new2 = new JButton(new ImageIcon(Toolkit.getDefaultToolkit().getImage(getClass().getResource("./images/new.gif"))));
              //ImageIcon oo = new ImageIcon();
              //new2 = new JButton(oo.setImage(getClass().getResource("images/new.gif")));
                   new2.setToolTipText("New");
    Thanks
    James

    Hello,
    The code is too big to post, I am adding the code that is required to get changed, please see it
              open2 = new JButton(new ImageIcon("images/open.gif"));
                   open2.setToolTipText("Open");
                   open2.addActionListener(this);
                   open2.addMouseListener(new MouseAdapter()
                        public void mouseEntered(MouseEvent me)
                             status.setText("Opens a file");
                        public void mouseExited(MouseEvent me)
                             status.setText("open");
    Thanks
    James

  • Having problems with Frontrow. Please help!

    Hi,
    i've been trying to figure this out all day today but i haven't found any solution. hopefully you Mac Geniuses can help. now, my problem isn't that my videos won't play, because they do. they all play perfectly. okay, so when i launch Frontrow, all my video files appear under their respective folders; my TV Shows appear under the TV Shows folder and my Music Videos appear under the Music Videos folder. however, for some strange reason, these files also want to appear under the Movies folder. That means they're showing up twice! -under the Movies folder and TV Shows/Music Videos. is there anyway to fix this, because it's really cluttering my Movies folder and i admit i'm a really anal neat-freak.
    Also, i have correctly labeled the video files as Movie, TV Show or Music Video under iTunes. Everything is organized well under iTunes, so i doubt it's that.
    please help!!
    Message was edited by: ec84

    It might be because with the new update, it seems as though anything stored in the MOVIES folder , shows up under movies in Front Row. I have a folder of Transformers AVI'S in my movie folder, now it shows up in the movie directory of front row

  • Problem with long report - please help

    We are using crystal report with ASP.NET/C# (Visual Studio 2005).
    Using Crystal report viewer control on the web page to have previews.
    A particular report is for say 6000 pages. I can not preview the report on the web page.
    I have the following questions:
    1. Does it make sense to think of previewing such a huge report on web page?
    2. What should be the alternate?
    3. I tried "Export to PDF" technique, but it failed.
    Thanks in advance for your help.
    Regards,
    Kangkan

    I tried to use exportToPDF technique. It works when the number of page is less. But just hangs up when the number of pages is high. I am working on finding the breaking number.
    There is no problem with HD space as well.
    I also tried to print the report to a printer on the server directly. I used the printer as "Adobe PDF" to use Acrobat Distiller to create the PDF. It starts up and asks for the destination for the PDF file also. Once it starts the system shown an error and the Microsoft Feedback Assistant for failed application comes up.
    I am now trying to print the pages to a network printer connected to the server. Shall get back with latest update after sometime.
    Please do look into other possibilities or points where I might have committed an mistake.
    Thanks and regards,
    Kangkan

  • Problem with my OC4J, please help

    Hi
    i have one big problem with my OC4J Application Server: i create an instance, then i deployed my appliation with the .ear file. i have 15 page uix. my problem is when i want to see my application from the browser, some of the page run correctly ans some other no; in other world the one that don't run, in reality it run but it display the last one that run correctly.
    i hope that i m celar.
    can you help me.
    Thank you

    Islem,
    Please post your log file content as well as server version, OS etc. (see:
    http://forums.oracle.com/forums/ann.jspa?annID=818-Michael

  • Problem with PWM signal, Please Help!

    Hi all,
    I am designing a PWM signal where its output is going to connect 4 optocouplers to drive a H-bridge MOSFETs. However, I am now having a problem of getting an output signal strong enough to drive the optocoupler. 
    I have attached the Multi-Sim file along with this post. Please feel free to help me to solve this problem thank you.
    The version of Multi-Sim I am using is 10.0.144
    Attachments:
    PWM_HCPL0631.ms10 ‏72 KB

    Hi Justin,
    I am slightly confused as to whether this is a problem with Multisim or the design of your circuit.  Are the components in Multisim behaving in an unexpected manner in comparison to their real-world counterparts?
    Regards,
    Thomas Clark
    Applications Engineer
    National Instruments UK & Ireland

  • Activation problems with Cingular. Please help very frustrated

    Ok, here is the deal, I live in Orlando, FL most of the time, but I am in Michigan and I bougt 2 iphones today, that was 1000 bucks, plus 200 in security deposits. I went to cingular, payed the deposit, and now that im at home, i cant register the product. I have been on the phone with cingular suppost getting different reasons why i cant answer but i still want to check it out here. Im getting an address verification problem. The guy is saying that when we payed the sucurity deposit, we put our florida market address on file with the Pre Approved Credit Check Number. THere saying our sim cards are michigan sim cards, and its not letting me register because of the sim cards are not in the same market as the credit check number. I tunes keeps giving me an error of address though. Is anyone receiving this same problem? The error is saying that they cannot verify the address on file, as the address that im typing in, even though it is the same address. We tried changing everything to michigan, and still got the same problem. We changed the address on the credit check number, and the address that im trying to register in michigan.
    Please Help
    Rodd,
    Thanks guys
    You can only imagine that im upset not being able to even power the thing up. It wont let you go past the emergency call feature since its not activated.
    *****

    Heres what you have to do Rodd...I used to be a RSM for Cingular.
    First you need to cancel your first activation because your sim cards have been set up with activation in Michigan you will get a Michigan area code, prefix, etc. If you did not set it up with the exact are that you paid the deposit in, then you will not be able to activate it.
    Ex: if I live in Texas, but want a California number, I have to go to Cali and set up my account, and then come back to Texas and I will have my Cali number while living in Texas.
    If you tried to set it up wrong to many times it flags your account.
    Either go back to the store you got them in and pay the security deposit again, or go to the closest ATT store in the area you would like to have your area code, prefix, etc. in.
    Example: if you want a Michigan number, then go to Michigan..and set up your account all in the same place that you want your number....Billing addresses can be different but the activation address will be where the iPhone number is given from.
    Hope this helps..God bless

  • .jar File please help

    Hello,
    suppose I have three .jar files: file1.jar, file2.jar and file3.jar.
    these file are in the folder c:\folder.
    how can i specify all this files in my classpath without specifying them one by one. now i'm doing it like:
    classpath=c\folder\file1.jar;c:\folder\file2.jar;c:\folder\file3.jar
    I will like to do this at once
    can someone help me please?
    thanks.

    If u mean that u want only one jar file must be added to classpath, then extract file1.jar, file2.jar and file3.jar to some path (say myFolder). Then, zip the contents of myFolder (don't zip myfolder as well!) into one jar file (zip creates a .zip file - rename it as a .jar file). So, u have one jar file with the contents of 3 jar files. But I seriously don't see why u want to do this. The semicolon terminated way of adding jars would work just as well right?

  • I suppose it is the problem with socket connection,Please help

    Hi,
    I'm trying to build a chat server in Java on Linux OS.I've created basically 2 classes in the client program.The first one shows the login window.When we enter the Login ID & password & click on the ok button,the data is sent to the server for verification.If the login is true,the second class is invoked,which displays the messenger window.This class again access the server
    for collecting the IDs of the online persons.But this statement which reads from the server causes an exception in the program.If we invoke the second class independently(ie not from 1st class) then there is no problem & the required data is read from the server.Can anyone please help me in getting this program right.I'm working on a p4 machine with JDK1.4.
    The Exceptions caused are given below
    java.net.SocketException: Connection reset by peer: Connection reset by peer
    at java.net.SocketInputStream.SocketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:119)
         at java.io.InputStreamReader$CharsetFiller.readBytes(InputStreanReader.java :339)
         at java.io.InputStreamReader$CharsetFiller.fill(InputStreamReader.java:374)
         at java.io.InputStreamReader.read(InputStreamReader.java:511)
         at java.io.BufferedReader.fill(BufferedReader.java:139)
         at java.io.BufferedReader.readLine(BufferedReader.java:299)
         at java.io.BufferedReader.readLine(BufferedReader.java:362)
         at Login.LoginData(Login.java:330)
         at Login.test(Login.java:155)
         at Login$Buttonhandler.actionPerformed(Login.java:138)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1722)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:17775)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4141)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:253)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:261)
         at java.awt.Component.processMouseEvent(Component.java:4906)
         at java.awt.Component.processEvent(component.java:4732)
         at java.awt.Container.processEvent(Container.java:1337)
         at java.awt.component.dispatchEventImpl(Component.java:3476)
         at java.awt.Container.dispatchEventImpl(Container.java:1399)
         at java.awt.Component.dispatchEvent(Component.java:3343)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3302)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3014)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2967)
         at java.awt.Container.dispatchEventImpl(Container.java:1373)
         at java.awt.window.dispatchEventImpl(Window.java:1459)
         at java.awt.Component.dispatchEvent(Component.java:3343)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
         at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
         My program looks somewhat like this :
    1st class definition:
    public class Login extends Jframe// Login is the name of the first class;
    Socket connection;
    DataOutputStream outStream;
    BufferedReader inStream;
    Frame is set up here
    public class Buttonhandler implements ActionListener
    public void actionPerformed(ActionEvent e) {
    String comm = e.getActionCommand();
    if(comm.equals("ok")) {
    check=LoginCheck(ID,paswd);
    test();
    public void test() //checks whether the login is true
    if(check)
    new Messenger(ID);// the second class is invoked
    public boolean LoginCheck(String user,String passwd)
    //Enter the Server's IP & port below
    String destination="localhost";
    int port=1234;
    try
    connection=new Socket(destination,port);
    }catch (UnknownHostException ex){
    error("Unknown host");
    catch (IOException ex){
    ex.printStackTrace ();
    error("IO error creating socket ");
    try{
    inStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
    outStream=new DataOutputStream(connection.getOutputStream());
    }catch (IOException ex){
    error("IO error getting streams");
    ex.printStackTrace();
    System.out.println("connected to "+destination+" at port "+port+".");
    BufferedReader keyboardInput=new BufferedReader(new InputStreamReader(System.in));
    String receive=new String();
    try{
    receive=inStream.readLine();
    }catch(IOException ex){ error("Error reading from server");}
    if(receive.equals("Logintrue"))
    check=true;
    else
    check=false;
    try{
    inStream.close();
    outStream.close();
    connection.close();
    }catch (IOException ex){
    error("IO error closing socket");
    return(check);
    // second class is defined below
    public class Messenger
    Socket connect;
    DataOutputStream outStr;
    BufferedReader inStr;
    public static void main(String args[])
    { Messenger mes = new Messenger(args[0]);}
    Messenger(String strg)
    CreateWindow();
    setupEvents();
    LoginData(strg);
    fram.show();
    void setupEvents()
    fram.addWindowListener(new WindowHandler());
    login.addActionListener(new MenuItemHandler());
    quit.addActionListener(new MenuItemHandler());
    button.addActionListener(new Buttonhandle());
    public void LoginData(String name)
    //Enter the Server's IP & port below
    String dest="localhost";
    int port=1234;
    int r=0;
    String str[]=new String[40];
    try
    connect=new Socket(dest,port);
    }catch (UnknownHostException ex){
    error("Unknown host");
    catch (IOException ex){
    ex.printStackTrace ();
    error("IO error creating socket ");
    try{
    inStr = new BufferedReader(new InputStreamReader(connect.getInputStream()));
    outStr=new DataOutputStream(connect.getOutputStream());
    }catch (IOException ex){
    error("IO error getting streams");
    ex.printStackTrace();
    String codeln=new String("\n");
    try{
    outStr.flush();
    outStr.writeBytes("!@*&!@#$%^");//code for sending logged in users
    outStr.writeBytes(codeln);
    outStr.write(13);
    outStr.flush();
    String check="qkpltx";
    String receive=new String();
    try{
    while((receive=inStr.readLine())!=null) //the statement that causes the exception
    if(receive.equals(check))
    break;
    else
         str[r]=receive;
         r++;
    }catch(IOException ex){ex.printStackTrace();error("Error reading from socket");}
    catch(NullPointerException ex){ex.printStackTrace();}
    } catch (IOException ex){ex.printStackTrace();
    error("Error reading from keyboard or socket ");
    try{
    inStr.close();
    outStr.close();
    connect.close();
    }catch (IOException ex){
    error("IO error closing socket");
    for(int l=0,k=1;l<r;l=l+2,k++)
    if(!(str[l].equals(name)))
    stud[k]=" "+str[l];
    else
    k--;
    public class Buttonhandle implements ActionListener
    public void actionPerformed(ActionEvent e) {
    //chat with the selected user;
    public class MenuItemHandler implements ActionListener
    public void actionPerformed(ActionEvent e)
    String cmd=e.getActionCommand();
    if(cmd.equals("Disconnect"))
    //Disconnect from the server
    else if(cmd.equals("Change User"))
         //Disconnect from the server & call the login window
    else if(cmd.equals("View Connection Details"))
    //show connection details;
    public class WindowHandler extends WindowAdapter
    public void windowClosing(WindowEvent e){
    //Disconnect from server & then exit;
    System.exit(0);}
    I�ll be very thankful if anyone corrects the mistake for me.Please help.

    You're connecting to the server twice. After you've successfully logged in, pass the Socket to the Messenger class.
    public class Messenger {
        Socket connect;
        public static void main(String args[]) {
            Messenger mes = new Messenger(args[0]);
        Messenger(Socket s, String strg) {
            this.connect = s;
            CreateWindow();
            setupEvents();
            LoginData(strg);
            fram.show();
    }

Maybe you are looking for

  • How to load init for non cumulative values?

    Hi folks, anyone here, who can tell me how to load initial amounts from DSO to non cumulative values in InfoCubes? I found only poor documentation about this. Thanks!

  • How / where to download CCP 1.2???

    I see now the CCP 1.2 is available, yet when I login to our enterprise licensing site, I only see version 1.1.  How and where can I download 1.2???

  • Updating cs4 to have camera raw 5.7

    updating cs4 to have camera raw 5.7 "installation encounters problem, please close adobe bridge", but adobe bridge is not open what should I do?

  • Sorry, There was a technical problem. Please try a...

    Here's the thing. 1. Goto ANY nokia regional website, and navigate to: Device software update \ Can I update? 2. Enter ANY legitimate Product code 3. Get the following message: "Sorry, There was a technical problem. Please try again soon." There are

  • Get a little USB in my life - classic BB USB failures?

    Being the owner of a second hand PB that arrived without a working micro usb port, I am constantly curious how it feels to have use of it. We get by just great otherwise. The hdmi port has also tested broke, dysfunctional.  Several lead tests, and co