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.

Similar Messages

  • 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"

  • 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 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 to add the mail.jar file to my CLASSPATH ?

    Hi;
    I wish to Instal JavaMail 1.2
    To use the JavaMail 1.2 API, i unbundle the javamail-1_3_1-upd.zip file.....and now, i would like to add the mail.jar file to your CLASSPATH.
    My question is: how do you do this ?
    - ok i did that for CATALINA_HOME & JAVA_HOME but how to add the mail.jar file to my CLASSPATH ??
    1000 thanks.

    I think you're looking for "developer support", not packaged application support. different server, different batch of groups. . .
    Since I have very little contact with devopers, I don't truly know.

  • 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 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 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 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 one poi jar file into webdynpro project

    Hi all:
        We would like to add one poi jar file into one webdynpro project, however, what should we do ?
        Its one external 3rd party jar file.

    Hi,
    To add a jar file you need to have an external library DC.
    Hope the below link will help you:
    [http://help.sap.com/saphelp_nw70/helpdata/en/46/3ce3e4df201d63e10000000a11466f/frameset.htm]
    thanks & regards,
    Manoj

  • How to add third-party jar in CRM ISA application?

    Hello SDN!
    I need to add third-party jar in CRM ISA application. I know how to add such jars in common case and for local DCs. But for CRM I can't determine which DC should contain this third-party jar.
    Please tell me ASAP which DC (e.g. crm/isa/home/ext) I should use.
    Help will be appreciated.
    Regards, Lev.

    Hi,
    To add third party jar you need to create new DC which contain your third party Jar. Once you have new DC with your Jar file you can add as Used DC in required DC.
    Please refer [Using External Libraries for Development with NWDI|http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/3ce3e4df201d63e10000000a11466f/content.htm] for more infromation to create DC with Jar File.
    eCommerce Developer.

  • 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 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 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

  • Scrolling and windows resizing

    Is there a way to turn off the feature where if you scroll up or down with your mouse positioned over a windows title bar it resizes the window. This "feature" works with both a standard mouse using a scrollwheel and also when using a touchpad with t

  • Closing service purchase order

    hi all i have a service purchase order, i have taken some services through service entry sheet, done invoice verification of the services. now i have no services coming from vendor, i want to short close at this stage. can anybody suggest the method

  • Saving a Class Object to file

    Hi guys. If i have a Class object (an instance of "java.lang.Class"), is it possible to write that object to file so i end up with a .class file somewhere on my computer? Any help appreciated. Thanks -Nonameo-

  • Lycom PCIe SATAII Host Card, 4 eSATA External Ports Question

    http://www.macgurus.com/productpages/sata/LYCeSATA-4e.php We have this set up as a Raid 1 but it's pretty unstable with external drives. We would like to switch to Raid 5 formatting but it notes: *Do not under any circumstances install the SIliconIma

  • Outlook 2002 toolbar shows version 7 instaed of 9

    I just installed Acrobat 9 and it removed version 7. But when I open my MS Outlook 2002 some of the version 7 actions show up on the toolbar. This is what it shows - Area in question - where it says File-Edit- the down a ways there is Abobe PDF - if