Where to Place java library(.jar) in your application

Hi,
I am using ColdFusion - 9 in my application. Also, I am using some third party java library. I put my library in  "\ColdFusion9\lib\" but now my library version is changed. So I need to update those files by replacing the old files.
My Question Is: Can we place the java .jar files in some location inside my application directory. So that I don't have to do any changes with the ColdFusion library directory for using those libraries.
Thanks

CF10 brings in custom paths for this sort of thing:
http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d318518-106e125d1353e804 331-7ffe.html
But this is no help to you.  However there's a third-party solution which'll work on CF9:
http://javaloader.riaforge.org/
I've never used it, but I've heard good reports from people who have.
Adam

Similar Messages

  • Where to place additional library

    hi. we are on ep5. we have created a .par project that required some additional library. and the additional library will be useful if i can place it at a central location where other .par projects can referenced to it.
    May I know where should i place it? ideally, i hope when the server startup, it will also load this additional library.
    i have tried by placing in additional-lib folder and restart the server, but the program class not found.
    pls help. thanks.

    CF10 brings in custom paths for this sort of thing:
    http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d318518-106e125d1353e804 331-7ffe.html
    But this is no help to you.  However there's a third-party solution which'll work on CF9:
    http://javaloader.riaforge.org/
    I've never used it, but I've heard good reports from people who have.
    Adam

  • Where to place java code in webdynpro for communicating between views

    Hi Friends,
    Where should I put the Java code on click of button for the action.
    I can out in init() method, or in teh onActon methods.
    I think suppose I have two views view1 and view2
    on click of one button on view1, user shoudl see results on another view.
    for that I think best is to put data accesing logic for view2--in onAction of view1 itself.

    I've been looking at my examples,  you can do it either way.  In one example, I have coded the logic in the Inbound Plug method on the Result view.  In another example, I am doing the logic in the onAction method when the user presses the button on the Start view.
    I'm thinking it may be better to do it in the onAction method, but it really depends on the overall functionality of the application.
    Regards,
    Rich Heilman

  • Where to place 3rd party jars for use with SSPI

    I have a question regarding the SSPI. Our custom sspi uses some third party jars
    for things such as persistence and caching. Our problem is that the sspi jar
    file that is placed in the mbeantypes directory relies on some of these jars,
    therefore they must be available at startup. However since we will be installing
    the sspi on several different Weblogic 8 servers I do not want to modify each
    startup script to explicitly include each jar in the classpath.
    Is there a place or a best practice that we can use to allow the sspi find these
    libraries? Note: we tried the JAVA_HOME/jre/lib/ext directory which does not
    seem to work.

    You will need to have them in the classpath
    Tony
    "tobin" <[email protected]> wrote in message
    news:40882da6$[email protected]..
    >
    I have a question regarding the SSPI. Our custom sspi uses some thirdparty jars
    for things such as persistence and caching. Our problem is that the sspijar
    file that is placed in the mbeantypes directory relies on some of thesejars,
    therefore they must be available at startup. However since we will beinstalling
    the sspi on several different Weblogic 8 servers I do not want to modifyeach
    startup script to explicitly include each jar in the classpath.
    Is there a place or a best practice that we can use to allow the sspi findthese
    libraries? Note: we tried the JAVA_HOME/jre/lib/ext directory which doesnot
    seem to work.

  • Where does the iPhoto library reside?

    Where does the iPhoto library reside on your hd?  when I go to the search bar above, it shows 2 libraries!  I am about out of hd space so I am hoping that it has been duplicated somehow.  It's about 36GB. =)
    Thanks for your help!
    MK

    By default it's in your Pictures Folder.
    If space is an issue you can move the Library to an external disk:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • Override Library (jar)

    Hi!!
    I want to use in my project the method FileUtils.getFile but getFile is not supported by apache.commons.io that my project as included by default. I've tried to include a new library with 2.4 inside (or included the jar itself) but with no luck, my class is always using the old one... How can i override a jar included by default in my project?
    Thanks in advance

    Andreoliveira,
    You can use "prefer-web-inf-classes" in weblogic.xml to make your application use jar in your application.
    See the link to get to know about the Deployment descriptor http://docs.oracle.com/cd/E24329_01/web.1211/e21049/weblogic_xml.htm#WBAPP571
    -K

  • Forms 10g and Java 6 - Howto place the oracle .jars?

    Hi,
    I would like to compile a sample Forms Java Bean with standalone Java ( not with the JDeveloper IDE )
    and the source starts with a lot of import oracle classes in jars.
    My java install is like this:
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11
    Could you indicate where I should place the Oracle jar files in order to have javac to recognize them?
    Many thanks in advance

    Hi again,
    I'm not advanced enough on these topics to clarify.
    Things have changed in the meantime here.
    At the moment we are looking into using 'web_show_document' with an html page containing javascript.
    There is a discussion on the 'talk2gerd.blogspot' that indicates what to set in formsweb.cfg and forms.conf in order to use javascript.
    Still getting a browser written as a Javabean to consult entreprise documents from a Forms client would be a nice bonus.
    Many thanks for your help.

  • Add jar file to forms application standard java library

    Overall Problem
    I created a jar file using JDeveloper to be loaded as a bean in forms builder. But the jar file ended up being really large because I had to add some standard libraries that JDeveloper knew about but Forms didn't to this jar file, it takes forever to load in my forms application.
    Background
    Jdeveloper has a drop down list of standard libraries that aren't commonly used that a developer can have included/referenced into their java project.
    Oracle Forms Library
    One of the standard libraries in JDeveloper that can be referenced when compiling a project is the Oracle Forms library. I have to reference this library in my compilation of my java project in JDeveloper because some of the java code in this project requires the Oracle Forms library. When the jar file is created in JDeveloper the Oracle Forms Library isn't actuaally physically located anywhere in the jar file that is produced for deployment. But the jar file runs perfectly in my forms application. Forms builder and the forms application server seems to already know about the Oracle Forms library.
    Java Media Framework Library
    There is another standard library listed in JDevelopers drop down list that I recently chose to use in my Java Application, the Java Media Framework library. But my forms application couldn't find any of the Java Media Framework classes when it launched the jar file that was deployed from JDeveloper. Obviously the classes wern't physically located in the jar file I created, because I figured that the forms application server/forms builder would already know about about this standard library that JDeveloper knew about.
    Not very effective Solution
    So I physically put/included the whole Java Media Framework Library into my jar file and then my form launched fine. But it now takes forever to load. How can I add the Java Media Frame work library jar files as one of the standard libraries that the forms builder and application server already sees (Like the Oracle Forms Library) without having to put the library in the forms/java folder and wait for the this jar file to download to the user's cache?
    Side note: The Java Media Framework Library is allowing the ability to launch video from my form. Very useful tool!!! So it would be good if forms had this already added as a standard library like it is in JDeveloper. But I only see the ability to reference this library in DS 10gR2 for JDeveloper.
    Thanks,
    Michelle

    Yes I have successfully been able to run a javabean application that uses the Java Media Framework methods within a forms module. The video seems to play and interact normally in the forms environment (launched from a DS or the AS).
    Basic Requirements
    Develop the java application functionality look and feel, including adding funtionality calls to the JMF library where needed.
    Develop an Oracle Forms Interface wrapper that will be the initial class called from the bean area, to hande any communication between the bean and the form.
    Configure the deployment of the jar to physically include all the needed classes from the JMF library.
    Sign the jar file and make sure it is placed in the forms/java folder and referenced in the appropriate forms configuration files.
    Depending on the type of video that the will be played certain .dll files might need to be added to the users system folder. Using H264 (.mov) should work fine without any extra .dlls.
    Thanks,
    Michelle
    Message was edited by:
    mpoore

  • Where to Place Custom Java Code

    We are planning on adding customized Java code to Identity Manager 8; XPRESS will be used to call the customized Java code.
    Questions:
    1) Where does this customised code reside in the Java Application Server (Glassfish)?
    2) Does the customized Java code have to be packaged in a JAR file?
    Many thanks for your help.

    You would deploy custom Java code along with the IDM war/ear file. Classes go in the WEB-INF/classes/ folder, JARs in WEB-INF/lib/ and that is application server independant.
    Class files or JARs? Do you have any build process for your IDM, like the custom build environment CBE, then the source files might end up as class files; if you are using a seperate build environment for those custom classes, then packaging them in a JAR would be the way to go.
    Generally speaking, using a JAR for your custom code is neater; whether a class in classes/com/foo/bar/Foo.class or in lib/myfoobars.jar takes precedence over the other is up to the class loader and depending on your application server and its settings, the behavior might vary - so be careful about mixing use of those locations.

  • Where to place the third party jars on WLS 7.0SP2

    Our application use the thirdparty JDBC driver, for example, the JDBC driver for
    mySQL. I donot want my customer to modify startWeblogic.cmd or some file else
    to make the jar file available for the applicaiton.
    my question is if some directory exists under weblogic700/server where I can place
    the jar file(that is, like the installed extension of JDK or JRE).
    I try to place the jar file on server/ext, it does not work.
    Guofeng

    "Guofeng Zhang" <[email protected]> wrote in message
    news:[email protected]...
    >
    Our application use the thirdparty JDBC driver, for example, the JDBCdriver for
    mySQL. I donot want my customer to modify startWeblogic.cmd or some fileelse
    to make the jar file available for the applicaiton.
    my question is if some directory exists under weblogic700/server where Ican place
    the jar file(that is, like the installed extension of JDK or JRE).
    I try to place the jar file on server/ext, it does not work.
    GuofengDisclaimer: I am a newcomer to the world of BEA WLS,
    so try this at your own risk.
    For the 3rd party classes to be found, they have to be included somewhere
    in the CLASSPATH. The best place (IMO) for customisation of the CLASSPATH
    is in the extEnv.sh. You will not find it in a standard installation of
    WLS, but if you look in $WL_HOME/server/bin/startWLS.sh you will see this:
    PATH=".${PATHSEP}${WL_HOME}/server/bin${PATHSEP}${JAVA_HOME}/jre/bin${PATHSE
    P}${JAVA_HOME}/bin${PATHSEP}${PATH}"
    # Import extended environment
    if [ -f extEnv.sh ]; then
    . extEnv.sh
    fi
    Note the inclusion of "." at the start of PATH. This is magic that enables
    the ". extEnv.sh" command to locate the "extEnv.sh" script.
    In "extEnv.sh" you can use the EXT_PRE_CLASSPATH, EXT_POST_CLASSPATH,
    EXT_PRE_PATH, EXT_POST_PATH and LD_LIBRARY_PATH to add additional classes
    and directories to the server environment.
    For additional information, refer to the WebLogic Server Administration
    Guide (http://e-docs.bea.com/wls/docs70/adminguide/startstop.html).
    Similar, if you look in $WL_HOME/server/bin/setWLSEnv.sh you will see this:
    PATH="${WL_HOME}/server/bin${PATHSEP}${JAVA_HOME}/jre/bin${PATHSEP}${JAVA_HO
    ME}/bin${PATHSEP}${PATH}"
    export PATH
    # Import extended environment
    if [ -f extEnv.sh ]; then
    . extEnv.sh
    fi
    Note the missing "." in the PATH. This effectively means that even if
    the "extEnv.sh" script exists in the current directory, then ". extEnv.sh"
    command will only look along the PATH for the "extEnv.sh" script! To me,
    that looks like an error (probably caused by a DOS-programmer used to
    the default behavior in DOS to always look in the current directory
    regardless of the setting PATH), so as part of my localised installation
    procedure, I replace the offending part of setWLSEnv.sh with:
    # Import extended environment
    if [ -f extEnv.sh ]; then
    . ./extEnv.sh
    fi
    which forces the "." command to read the "extEnv.sh" file in the current
    directory, regardless of the setting of the PATH variable. I have
    notified BEA of this, but their responses is that it is per design!
    Regards,
    Jan Bruun Andersen

  • I would like to know, on the ringtone page, where you can select songs out of your music library, is there a way to remove a song from the list after its selected? I would thin there would be a way to "delete" the songs from the list. (Clock app)

    I would like to know, on the ringtone page, where you can select songs out of your music library, is there a way to remove a song from the list after its selected? I would thin there would be a way to "delete" the songs from the list. (Clock app)
    Let me explain:
    In the clock app for ios 6.0.2 I am a little confused. It allows you to go into your music library, and create a ringtone using any songs you choose. However, I cannot find a way to remove a song from this list, just like I cannot delete one of the preset ringtones (which I'm not trying to do, but just as an example)
    Thanks for your time! If you need more information just ask.
    (I believe both my iPod and iTunes are up to date)

    I believe you just are able to delete them from iTunes.
    Hope it will be helpful

  • Java 1.6 won't download library jar files

    I am developing 2 applets for use on an embedded web server, similar to what you would see when you connect to the web interface of a network router. I need charting functionality in both applets, so I'm using an open source Java charting library called JFreeChart. I have very limited disk space, so I want to keep the JFreeChart jar seperate from my applet jar, rather than zipping JFreeChart with each applet. So I've placed the files on the ebedded web server like this:
    applet_1.html
    applet_1.jar
    applet_2.html
    applet_2.jar
    lib/JFreeChart.jar
    When I open applet_1.html with Java 1.5_11 installed, the JFreeChart library jar downloads with no issues, but for some reason when I install Java 1.6_1 it just hangs. The java console shows the following:
    network: Cache entry not found [url: http://10.0.1.200/lib/jfreechart-1.0.5.jar, version: null]
    network: Connecting http://10.0.1.200/lib/jfreechart-1.0.5.jar with proxy=DIRECT
    network: Cache entry not found [url: http://10.0.1.200/lib/jfreechart-1.0.5.jar, version: null]
    network: Connecting http://10.0.1.200/jfreechart-1.0.5.jar with proxy=DIRECT
    1.5_11 actually shows the same thing, except the jar downloads just fine.
    In researching this problem I've found that there is apparently an "entirely new downloading engine" in Java 1.6, which is supposed to help with Web Start applications. That leads me to beleive that this is a bug with the new engine.
    Should I submit a bug report? I have a packet sniffer program that I could use to capture the packets between the host PC and the web server, should I try to get this info to help diagnose the problem?

    I am seeing similar entries with another applet.
    I see three attempts on my Windows XP machine with JRE 1.6.0_10-rc2
    one for /lib/QTJava.zip (which isn't there, nor should it need to be)
    one for /lib/plugin.jar
    and one for /lib/lib
    Why on earth the applet or JRE is looking for stuff in those folders in beyond me, but it is adding 4 seconds to the applet load time while it goes off on a shopping spree trying to find things.
    The same applet, when loaded on Windows Vista with JRE 1.6.0_07, the console doesn't show those errors at all.

  • Where is BusinessObjects Enterprise Java SDK jars located(BO XI3.1)?

    We need to import Business Objects Enterprise Java SDK's jar files. However, there is no document or forum post that have the directory for version BOXI3.1.
    By searching for the cecore.jar file, we find a directory that contains many Business Objects Enterprise Java SDK jar files:
    D:\Business Objects\BusinessObjects Enterprise 12.0\warfiles\WebApps\BusinessProcessBI\WEB-INF\lib
    Is this the correct directory for the Business Object Enterprise jar files?
    We imported bellow SDK jar files:
    asn1.jar
    cecore.jar
    celib.jar
    ceplugins_client.jar
    ceplugins_core.jar
    ceplugins_cr.jar
    cereports.jar
    certj.jar
    cesession.jar
    ceutils.jar
    clientplugins.jar
    commons-codec-1.3.jar
    commons-logging-1.1.jar
    corbaidl.jar
    ebus405.jar
    flash.jar
    freessl201.jar
    jsafe.jar
    logging.jar
    pluginhelper.jar
    postprocessing_oca2service.jar
    publishing_oca2service.jar
    rasapp.jar
    rascore.jar
    reporttemplate.jar
    serialization.jar
    SL_plugins.jar
    webreporting.jar
    xbean.jar
    xcelsius.jar
    XcelsiusSLPlugins.jar
    Is this the complete list that we should import for X3.1? there are some files like commons-codec-1.3.jar, it looks a Apache jar file, not the SDK's jar file. shall i include such files as well?

    Don't know why I see this error when I am creating the SessionMgr object even though I have the CrystalDecisions.Enterprise.Framework and CrystalDecisions.Enterprise.InfoStore referenced:
    SessionMgr sessionMgr = new SessionMgr();
    Retrieving the COM class factory for component with CLSID {E063B04A-CB8B-460E-99D0-F7D8FA2FAAA2} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

  • Where i should put external java library so UDF can import directly ?

    Hi All,
    I have some scenario using UDF and this code required a lot of external jar file. Please
    advise me where i should put this JAR file so i can import directly from UDF without need to import using Import Archive ?
    Thank you and best Regards
    Fernand

    Hi,
    is there any other alternative rather than put in into import archive ? like i copy all ther Jar file into certain
    directory in XI server and restart ther server so automatically, i can import insite my UDF wihout import archive ?
    Thank you and Best Regards
    Fernand

  • Where do I put db.jar when using in a servlet?

    servlet container library level, or servlet library? I am guessing that because db.jar uses JNI code, reloading would be a problem, so it should reside at the servlet container library level, but it would be nice to know for sure.

    Hi Garey,
    Because using the Java API in Berkeley DB (BDB) implies making JNI calls, you should place the "db.jar" JAR file under your servlet container library directory (e.g. for Tomcat this should be "common/lib").
    All servlet engines use separate classloaders for each web application. You need to ensure that the native BDB library is loaded by the servlet engine's common classloader.
    If you place the "db.jar" file under your web app's WEB-INF/lib directory you will get errors like "UnsatisfiedLinkError: Native library <path_to_BDB_lib>\libdbNN.dll already loaded in another classloader" when reloading your servlet.
    Of course, the directory where the native library resides, should be included the PATH or LD_LIBRARY_PATH (java.library.path) environment variables.
    Regards,
    Andrei

Maybe you are looking for