How to add a library (libSomeRandomlib.so) to a project....??

Ok, so I've been trying to get CERN's ROOT program/libraries to work in an xcode project for a while, but I'm running into one really weird error, and I think I may just not know how to add a library to a project correctly.
Suppose I create a new Xcode C++ command line tool project. I hit Build and go, and it gives me a nice little Hello World! in the console, just as it should. If I then click on the project in Groups & Files, go to Project>Add to Project..., and choose, say, libCint.so, from my root/lib directory, and click ok, then click Build & Go, I get an error in the console:
dyld: Library not loaded: @rpath/libCint.so
Referenced from: /Users/paulthompson/Documents/Programming/Build Products/Debug/LibraryIncludeTest
Reason: image not found
sharedlibrary apply-load-rules all
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Cannot call into the loader at present, it is locked.)
My assumption is that either I'm missing a step in the process of adding a library, or else there is something jacked up with the libraries themselves. Anyone have any advice?
Thanks,
Paul
EDIT* Oh, I should mention that the actuall binary that gets built after adding the library WILL execute properly in the Finder, or from terminal, just not with the Build & Go, or Go commands from within xcode.
Message was edited by: TraxusIV

TraxusIV wrote:
Results of otool:
LibraryIncludeTest:
@rpath/libCint.so (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 123.0.0)
Macintosh-9:Debug paulthompson$ otool -L /Applications/CERNRoot/root/lib/libCint.so
/Applications/CERNRoot/root/lib/libCint.so:
@rpath/libCint.so (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
I honestly don't know much about @rpath. I found this page that explains it a bit more: http://blogs.sun.com/dipol/entry/dynamiclibraries_rpath_andmac
So, since I don't want to deploy with the environment variable set, I should ask, what IS the correct, MacOS X way to do it?
The best way to find that is to look at how Apple does it. They put frameworks in /System/Library/Frameworks and regular shared libraries in the standard places. You can do the same. Put your frameworks into /Library/Frameworks and your shared libraries into /usr/local-based paths.
If you want to create stand-alone executables that can be installed via drag-n-drop, you can put shared libraries inside the application bundle. If your shared libraries/frameworks are elsewhere, you will need some sort of installer to get them installed.
I've been sifting through Apple's developer documentation but I have yet to find a concise, straightforward explanation of how to add shared libraries. I'm horribly confused at this point. Is there a good tutorial available anywhere for both the general unix case of linking to dylibs and .so's, and the Mac specific case?
Hopefully someone else knows an answer for this one.
*EDIT* I do already have the variable defined both in ~/.MacOS/environment.plist and also in Xcode as an additional user variable.
I'm not sure about the whole RPATH thing. Setting environment.plist will define environment variables for use in the Finder, but that is really a hack. There are better ways to do it, but if you are porting some open-source programs, that may be the only way. You should be able to define those variables in Xcode. You have to selected the debug executable under "Exectuables"

Similar Messages

  • How to add the library of linphone into existing project ?

    How to add the library of linphone into existing project ?

    How to add the library of linphone into existing project ?

  • How I add a LIBRARY ITEM to a page layout, top/bottom ?

    how I add a LIBRARY ITEM to a page layout, top/bottom ? in
    dwmr mx 2004 and cs4 ?

    Have you looked at the DW help file - it will explain all
    about library items :-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    CSS Tutorials for Dreamweaver |
    http://www.adobe.com/devnet/dreamweaver/css.html
    Book: Ultimate CSS Reference (aff link) |
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap
    "lse987" <[email protected]> wrote in
    message news:gpsvtt$t5q$[email protected]..
    > how I add a LIBRARY ITEM to a page layout, top/bottom ?
    in dwmr mx 2004 and cs4 ?

  • Help:  How to add a library item to hide the default Window menu

    Hi,
    In this post: Help: How to add a library item to hide the default Window menu, it described how to create an menu that will hide the default window menu.
    I'd like to know if there a way to put this component into library so that others can directly inherit this menu in other FORMS and how to implement it.
    Jimmy

    Hi,
    I found the solution and the post was not properly phrased. There is no need to add menu into library. All we need is to put the compiled menu into Oracle AS and add the menu name the menu module of the given form.
    Thanks.
    Jimmy

  • How to add dll library to application?

    I start programmed the CVI a few weeks ago and I have a little problem. I must make an application layer for profibus master device. However I total do not know how to add dynamic library to program, because in another way I get the error: undefined symbol. I know that it very trivial, but I cannot find solution. I have a lib file and also I include file about device, but I still get the error – undefined symbol – can you help me?
    Thanks very much for any advice or help

    Dear laszku,
    Are you looking for solutions to connect your CVI application with PLC? Because there are also solutions for that which are easy to use, and to implement with CVI.
    If you want to use your DLLs, there are some on-line help, how to import them in CVI.
    Basicaly there are two different method to import DLLs:
    - static import, when you import the library in your CVI project. The dll will be loaded when the exe starts running. If there is an issue to load the library, you'll be able to get the error at compilation time.
    - dynamic dll import, when you load the library at run-time. With this, you get the flexibility to control, when will be the dll linked to your exe in the memory, while running. The disadvantage is, you'll get errors only at run-time.
    I recommend you some of our on-line tutorial, how to load DLL into your application in CVI:
    CVI Help: Loading Dlls - This says: You cannot import DLLs directly into your project. You need to create DLL Import Library, which can be imported into your project.
    To do so, look at this knowledge base: Creating Import Libraries for a DLL in LabWindows/CVI
    You might get answers for your following questions at this FAQ page:
    FAQ: Using Dynamic Link Libraries with LabWindows/CVI
    Some help sites:
    Rules for Using DLL Files
    Linking to Functions Defined in a DLL From LabWindows/CVI
    If you need dynamic linkink, you can get example code with this site:
    How Can I Access DLL Functions in a LabWindows/CVI Program Without Including the Import Library in t...
    I hope, I could help you to find the way how to import DLL libraries.
    If you still couldn't solve the error after studying the links, please provide me more information, where, which symbol is missing, and also the full error message.
    The error you get, can be caused by the linker or pre-compiler also, which doesn't find the symbol you requested. Please check the path of your library and dll also.
    Best Regards,
    Tamas Szekely
    Applications Engineer
    National Instruments

  • How to add a library dynamically in xcode

    Hi friends,
    How do I add a library in xcode project?
    Thanks

    Hello,
    You might get better help in the Developer Forums...
    https://discussions.apple.com/community/developer_forums?view=overview
    Good luck!

  • How to add a library jar to a EJB module?

    Hi All,
    in J2EE the normal procedure to a library jar to a module, is to add the library in the Class-Path header of the manifest of the module, and then include the actual jar in the root structure of the ear file. Unfortunately it is not clear to me how S1S5 update 1 supports this. The only option Studio I found so far, is to add the jar as a 'file to include', but then the contents is added to the module jar and not to the ear file itself, resulting in duplication of classes across modules. Is there an option to add the library jar in the Class-Path of the module?
    Thanks in advance,
    Stijn

    I believe that better support for this was added in the Sun Java Studio 6 EA release. It was added to the Extra Files property on an EJB Module.

  • How to add packed library on palette set

    Hi,
    I am unable to add packed library to pallete set. Can someone provide information on how to do that?
    Thanks,
    Andrej 
    Solved!
    Go to Solution.

    Andrej,
    starting with LV 2010, you can use packed libraries to encapsulate functions and supply them on the palettes. The way to get there is somehow a little tricky, so here a short description on how to do that:
    1. Build your LV library (lvlib) as used, please remember to set prudent item settings (private vs. public). Public items will be "exported" in the packed library whereas private are not.
    2. Open the palette edit tool via Tools >> Advanced >> Edit Palette Set
    3. Go to the subpalette you want to include your custom palette (exported items) and right click on the parent palette. Select Insert >> Subpalette.
    4. In the dialog, select Create a new palette file (.mnu). Select a path contained in your lvlib.
    5. Customize your subpalette as desired. Please place only public items on the palette.
    6. Save the changes and add the new .mnu file to your lvlib.
    7. Build the packed library. Make sure, that the .mnu file is part of the lvlibp (by default it is already selected).
    8. Copy the lvlibp to the target system.
    9. Select Tools >> Advanced >> Edit Palette Set in the target. Browse to the palette you want to have as parent for your lvlibp.
    10. Right click and select Insert >> Subpalette. On the dialog, select Link to a palette file in a project library. Select your lvlibp file and acknowledge the following dialog.
    11. Save changes and use your lvlibp on the target.
    That should be a comprehensive step-by-step list for this request.
    Hope this helps,
    Norbert
    [EDIT] Corrected some typos.
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How To add a library to an adapter

    Hello!
    I'm trying to build a custom adapter and do my first steps:
    I want to add some libraries to the sample_ra.sda but don't know where or how to add the jars...
    If I place them here I get a NoClassDefFoundException:
    - sample_ra.sda
    | - META-INF
    | - sample_ra.rar
    | | - META-INF
    | | - sample_ra.jar
    | | - lib_1.jar
    | | - lib_2.jar
    | | - ...
    Any hints??
    THANK YOU!
    Regards,
    Christian

    Hi Chris,
    Check these links below, for creation of custom adapters & Modules
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
    https://websmp201.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
    https://media.sdn.sap.com/public/eclasses/teched04/XI301_files/Default.htm#nopreload=1
    Regards
    Vishnu

  • How to add external library in class path folder for use in Java call-out?

    Hi,
    I am working with Java callout component in OSB 12c using Jdeveloper.
    Thing is Jar what i am using to perform conversion of json to xml that using external libraries.
    When i have give reference of my project jar to java callout it doen't found external libraries.
    Could you please tell me how to add external libraries in class path folder or How to use to add it through web-logic server ?
    Thanks,
    Pavan

    Hi,
    Thanks, I have solved issue.
    We can add on following path in windows pc:
    C:\Users\your_usename\AppData\Roaming\JDeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\lib
    One you add your external lib here then do restart weblogic server instance.
    Now, you have that external lib or jar in use.
    Cool!

  • How to add document library which is common for All Project Site Under All Project in pwa.

    Hi,
    I want  to add Document Library under project site which should be common for all project site in all project.
    is there any out of box solution for this ?

    Hello. Yes this possible. See a post I created below that covers creating custom project site templates. The first part of the post is for project plan templates but then the bulk of this post is for project site templates. http://pwmather.wordpress.com/2014/02/02/getting-started-with-projectonline-part-6-ps2013-office365-project-ppm-sharepointonline-pm-sp2013/.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • How to add static resource file into the NetBean project

    I have several static data files(such as icons, images and etc.) need to be loaded by the program. How to add them into the NetBean project?
    Thanks

    Try a NetBeans forum. This is the Java Compiler forum.

  • How to add jar library in java?

    Hi,
    I am Anil,
    Could it possible to add library in Java library?
    like java.io.DataInputStream is library in Java (JDK), so I want to add my own library in Java JDK.
    I have created a package net.jini.j2space and one interface in it J2Space, I have created jar of this.
    and now I want to this jar to Java library so I can import it in my projects.
    Please help me.
    Thanks in advance.

    Hi, I am Zander Smith and I want to share my story with you. I am a sport star in my community, I am known for my football skills. I had a very healthy physique because I used to do almost 4 hours of daily workout. One day it was raining heavily and I was busy playing football with a nearly club who challenged our team. While playing I hit my leg on the goal post and broke my leg. I came out of hospital after three months. Since I was on complete bed rest I gained 35 pound. I had lost my athletic shape. I was very upset with my bulky body and I wanted to have my old shape back at any cost.
    I started to work out. As I was restricted by doctor to do rigorous work out, it did not help me the way I wanted. After a month one of my friends suggested me [Acai berry|http://ezinearticles.com/?Acai-Berry---How-I-Lost-30-Pounds-in-Under-30-Days-Using-The-Acai-Berry&id=1998407] . I thought that my workouts are enough for losing my weight, but I was impatient. I took all the information about this product and I found it useful. I purchased Acai Berry Supplement and used it. Now it is like a dream come true, I have come back to my earlier shape. Thanks to Acai Berry now I am living my life as I lived before. [Acai berry|http://www.goarticles.com/cgi-bin/showa.cgi?C=1829429]

  • How to add my library to home sharing

    How do I add more music or my entire library to home sharing?

    Enable home sharing in iTunes preferences and make sure the systems you want to home share with have all been linked to your Apple ID you use for the iTunes store. Without authenticating the systems, they don't see each other.
    Even though I shared a library in the past between macs, I had to turn on the itunes store, sign in with my Apple ID, then removed the store again from my host system that I dedicate to having all the music ... in order for its music to show up on iOS devices via Home Sharing. 
    Once they're linked they should see the shared library on the host iTunes system. Any additional music etc you add will be shared as well, depending on your home sharing preferences.

  • How to add requaired library to your programe

    I have a problem with a program Im developing. This program connects to all databases that has a JDBC Driver then you can browse tables and its contents and shows relation between tables and procedures.....etc
    The problem is:
    When a user wants to connect to a database he will need to setup a required library ( JDBC Driver JAR file location and the Driver Class ), then the program updates the classpath to include the new path and adds the Driver Class to the Driver Class list.
    When using the following:
    Class.forName (CurrentDriver); where CurrentDriver is one of the Driver class listed in the program the following exception thrown. "ClassNotFoundException".
    But, when using the following:
    URL[] pathes = new URL[count];
    Pathes[0] = new URL("file", null, "D:/hdkjashdk.jar");
    Pathes[1] = new URL("file", null, "A:/gdhsga/hdg/sadj.jar");
    Pathes[2] = new URL("file", null, "C:/hksffs/fhsj.jar");.
    URLClassLoader loader= new URLClassLoader(pathes);
    Class.forName(currentDriver,true,loader);No "ClassNotFoundException" was thrown.
    And after that, when using
    DriverManager.getConnection (url, user, password); An SQLException : No Suitable Driver thrown.
    Why, and how can I fix this problem.

    opps. the prevous code is the old one sorry, here is the new one.
    package betasniper;
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.net.*;
    /* When you want to use one or all of this methods you have to setup the "theParentFrame"
    or "theParentDialog" so the class know how is the parent window to throw the exception dialog*/
    public class PickupDriversAndSettingClasspath
      public static Properties allDriver;
      public static Vector allPathes;
      public static Frame theParentFrame;
      public static Dialog theParentDialog;
    // Method to set up all Valide Drivers.
      public static void settingDriver()
        allDriver= new Properties();
        String record= "";
        try
          RandomAccessFile random = new RandomAccessFile("jdc.srs", "r");
          while(random.getFilePointer() < random.length() )
            record= random.readUTF();
            if( record.startsWith("#") )
              String[] kv= stringTokenDriver(record);
              allDriver.setProperty(kv[0],kv[1]);
        catch( FileNotFoundException fnfe )
          if( theParentFrame != null )
            theParentFrame.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
            ew.erroMessage(
               "PickUpAndSetting-100 Error, File were JDBC Drivers are stored could not be found.");
            ew.stackTrace(fnfe.toString());
            fnfe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentFrame.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentFrame=null;
            ew.pack();
            ew.show();
          if( theParentDialog != null )
            theParentDialog.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
            ew.erroMessage(
                "PickUpAndSetting-100 Error, File were JDBC Drivers are stored could not be found.");
            ew.stackTrace(fnfe.toString());
            fnfe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentDialog.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentDialog=null;
            ew.pack();
            ew.show();
        catch( IOException ioe )
          if( theParentFrame != null )
            theParentFrame.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
            ew.erroMessage(
               "PickUpAndSetting-101 Error, I/O Error please try again.");
            ew.stackTrace(ioe.toString());
            ioe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentFrame.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentFrame=null;
            ew.pack();
            ew.show();
          if( theParentDialog != null )
            theParentDialog.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
            ew.erroMessage(
                "PickUpAndSetting-101 Error, I/O Error please try again.");
            ew.stackTrace(ioe.toString());
            ioe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentDialog.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentDialog=null;
            ew.pack();
            ew.show();
    // Method to set up ClassPath.
      public static void settingClasspath()
        allPathes= new Vector();
        String record= "";
        try
          RandomAccessFile random = new RandomAccessFile("jdc.srs", "r");
          while(random.getFilePointer() < random.length() )
            record= random.readUTF();
            if( record.startsWith("#") )
              if( !allPathes.contains(stringTokenPath(record)) )
                allPathes.addElement(stringTokenPath(record));
          StringBuffer sb= new StringBuffer(System.getProperty("java.class.path"));
          int num= allPathes.size();
          for( int i=0; i < num; i++ )
            sb.append(";");
            sb.append((String)allPathes.elementAt(i));
          System.setProperty("java.class.path", new String(sb));
        catch( FileNotFoundException fnfe )
          if( theParentFrame != null )
            theParentFrame.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
            ew.erroMessage(
               "PickUpAndSetting-200 Error, File were JDBC Drivers are stored could not be found.");
            ew.stackTrace(fnfe.toString());
            fnfe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentFrame.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentFrame=null;
            ew.pack();
            ew.show();
          if( theParentDialog != null )
            theParentDialog.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
            ew.erroMessage(
                "PickUpAndSetting-200 Error, File were JDBC Drivers are stored could not be found.");
            ew.stackTrace(fnfe.toString());
            fnfe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentDialog.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentDialog=null;
            ew.pack();
            ew.show();
        catch( IOException ioe )
          if( theParentFrame != null )
            theParentFrame.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
            ew.erroMessage(
               "PickUpAndSetting-201 Error, I/O Error please try again.");
            ew.stackTrace(ioe.toString());
            ioe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentFrame.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentFrame=null;
            ew.pack();
            ew.show();
          if( theParentDialog != null )
            theParentDialog.setEnabled(false);
            ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
            ew.erroMessage(
                "PickUpAndSetting-201 Error, I/O Error please try again.");
            ew.stackTrace(ioe.toString());
            ioe.printStackTrace(new PrintStream(ew.theOutput));
            Dimension parentDimension = theParentDialog.getSize();
            Dimension dialogDimension = ew.getSize();
            int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                            ( (dialogDimension.getWidth()) / 2));
            int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                            ( (dialogDimension.getHeight()) / 2));
            ew.setLocation(x, y);
            theParentDialog=null;
            ew.pack();
            ew.show();
    // Method to load and register all driver..
      public static void loadAndRegister()
        settingClasspath();
        settingDriver();
        int count= allPathes.size();
        URL[] pathes= new URL[count];
        for( int i=0; i < count; i++ )
          String currentPath=(String)allPathes.elementAt(i);
          currentPath.replace('\\','/');
          try
            pathes[i] = new URL("file:///" + currentPath);
          catch(MalformedURLException mue)
            if( theParentFrame != null )
              theParentFrame.setEnabled(false);
              ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
              ew.erroMessage(
                "PickUpAndSetting-300 Error, Malformed URL Error.");
              ew.stackTrace(mue.toString());
              mue.printStackTrace(new PrintStream(ew.theOutput));
              Dimension parentDimension = theParentFrame.getSize();
              Dimension dialogDimension = ew.getSize();
              int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                              ( (dialogDimension.getWidth()) / 2));
              int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                              ( (dialogDimension.getHeight()) / 2));
              ew.setLocation(x, y);
              theParentFrame=null;
              ew.pack();
              ew.show();
            if( theParentDialog != null )
              theParentDialog.setEnabled(false);
              ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
              ew.erroMessage(
                 "PickUpAndSetting-300 Error, Malformed URL Error.");
              ew.stackTrace(mue.toString());
              mue.printStackTrace(new PrintStream(ew.theOutput));
              Dimension parentDimension = theParentDialog.getSize();
              Dimension dialogDimension = ew.getSize();
              int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                              ( (dialogDimension.getWidth()) / 2));
              int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                              ( (dialogDimension.getHeight()) / 2));
              ew.setLocation(x, y);
              theParentDialog=null;
              ew.pack();
              ew.show();
        URLClassLoader loader= new URLClassLoader(pathes);
        Enumeration enum= allDriver.propertyNames();
        while( enum.hasMoreElements() )
          String currentName= (String)enum.nextElement();
          String currentDriver= allDriver.getProperty(currentName);
          try
            Class.forName(currentDriver, true, loader);
          catch(ClassNotFoundException cnfe )
            if( theParentFrame != null )
              theParentFrame.setEnabled(false);
              ErrorWindow ew = new ErrorWindow(theParentFrame, "", false);
              ew.erroMessage(
               "PickUpAndSetting-301 Error, The Driver CLass could not be found.");
              ew.stackTrace(cnfe.toString());
              cnfe.printStackTrace(new PrintStream(ew.theOutput));
              Dimension parentDimension = theParentFrame.getSize();
              Dimension dialogDimension = ew.getSize();
              int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                              ( (dialogDimension.getWidth()) / 2));
              int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                              ( (dialogDimension.getHeight()) / 2));
              ew.setLocation(x, y);
              theParentFrame=null;
              ew.pack();
              ew.show();
            if( theParentDialog != null )
              theParentDialog.setEnabled(false);
              ErrorWindow ew = new ErrorWindow(theParentDialog, "", false);
              ew.erroMessage(
                "PickUpAndSetting-301 Error, The Driver CLass could not be found.");
              ew.stackTrace(cnfe.toString());
              cnfe.printStackTrace(new PrintStream(ew.theOutput));
              Dimension parentDimension = theParentDialog.getSize();
              Dimension dialogDimension = ew.getSize();
              int x = (int) ( ( (parentDimension.getWidth()) / 2) -
                              ( (dialogDimension.getWidth()) / 2));
              int y = (int) ( ( (parentDimension.getHeight()) / 2) -
                              ( (dialogDimension.getHeight()) / 2));
              ew.setLocation(x, y);
              theParentDialog=null;
              ew.pack();
              ew.show();
      public static String stringTokenPath(String record)
        String path= "";
        StringTokenizer token= new StringTokenizer(record,"|");
        int count =0;
        while( token.hasMoreTokens() )
          String s= token.nextToken();
          count += 1;
          if( count == 3 )
            path= s.substring(0, s.length()-2);
        return path;
      public static String[] stringTokenDriver(String record)
        String[] driver= new String[2];
        StringTokenizer token= new StringTokenizer(record, "|");
        int count= 0;
        while( token.hasMoreTokens() )
          count += 1;
          String s= token.nextToken();
          if( count == 1 )
            driver[0]= s.substring(1, s.length());
          if( count == 2 )
            driver[1]= s;
        return driver;
      /*void viewing()
        Enumeration enum= allDriver.propertyNames();
        while( enum.hasMoreElements() )
          String key= (String)enum.nextElement();
          String value= allDriver.getProperty(key);
          System.out.println(key+"------"+value);
    }

Maybe you are looking for

  • How can I edit the date of a video stored in Aperture?

    It's currently using the current date rather than the historical date when it was taken.  I receive an error message indicating the format doesn't permit changing the date. So... What's the easiest way to change the format of all the videos in my Lib

  • Screen issue iPhone 4 - pixel drop

    I have had a replacement iPhone 4 for just over 12 months now (around 27th January last year I had it replaced due to a small crack on the back casing near the camera, was due to the official bumper putting pressure on the camera corner). And recentl

  • IPs inshared services

    Hi There, Can anyoneplease guide me on this : How to track the Ips from which user are using their user id in Shared services. For audit purposes which debug or audit flag should be on in the system to track the loggins and activities without affecti

  • Command-I crashes my Finder

    Since about 2 weeks, everytime I press command-I on anything on my desktop (or elsewhere) my 'Finder' crashes. The crash leaves a crashdump-entry in the console.log and the Finder.crash.log says: Date/Time: 2007-02-14 17:41:11.416 +0100 OS Version: 1

  • TROUBLE Converting .MOV to .WMV w-Quicktime Pro

    I've been using the EXPORT feature to convert a .mov file to a .wmv file but it will only export 30 SECONDS of any .mov file I try!! I also tried converting to a .avi file first. That didn't work either. I have Quicktime pro. G5 MAC OS 10.3.9 I have