How to include jdic.jar in my program

Hi all,
I'd like to deploy my program and for that i am exporting it in an executable jar using eclipse.
My program uses some of jdic functionnality so i need to include in my program jdic.jar. But that' s my problem. How can i include it in my application's executable jar.
thank you for your help.

Hi,
Sorry but i don' t understand what you've written, if
my executable jar is named
myexecutablejar.jar and the jar that i would
like to put in in order to work is named
jdic.jar what would be the command?
Thanks for your precision.Is this clearer?
jar cvf myexecutablejar your-classes path-of-jdic.jar

Similar Messages

  • ANT how to include NetBeans Jar  files in my script of ANT ??

    ANT how to include NetBeans Jar files in my script of ANT ??

    I mean the library say swing layout ...
    which is SwingLayOuts1.0.jar ...
    in side this there is folder org.jDesktop....
    I want this folder in my jar file ...
    also ....
    My question ... i know the path of the jar file of NetBeans .... i can copy that ...dirctly ... but if m using Netbeans editor ... can i give NetBeans class to my jar command for ANT...........

  • How to include other jars when using servicegen

    I have been trying to use servicegen with regular java classes but I can't figure
    out how to include other jars that the webservice class uses?
    How is this supposed to be done?

    SQL> set null <<NULL>>
    SQL> select distinct comm from emp
      2  /
        COMM
           0
         300
         500
        1400
    <<NULL>>
    5 rijen zijn geselecteerd.So I probably don't understand the question. Could you post a small test case showing the behaviour you described?
    Regards,
    Rob.

  • How to use external jar in a program

    I am writing a java program which requires The class org.apache.commons.lang.StringUtils and the method StringUtils.upperCase(). I have downloaded the commons-lang-2.1.jar jar and put it in the lib directory under my project directory.
    But while compiling the program I am getting an error like this :
    package org.apache.commons.lang does not exist
    and can not find symbol , symbol : variable StringUtils
    Could anyone suggest me what to do so that the program compiles without error?

    I am using command line javac tool.
    Could you tell me how to tell compiler to include the
    jar.javac -classpath /some/directory/commons-lang-2.1.jar;(other required paths and/or jars) files to compile go here
    Please read tutorials too.
    http://java.sun.com/docs/books/tutorial/
    I would also suggest a good build tool called Ant.
    http://ant.apache.org/
    Message was edited by:
    warnerja

  • How to include external jars - URGENT...

    Hi:
    I am using Eclipse for development.
    My application uses some external jars.
    This step is simple in Eclipse, one simply indicates where the jars are to the IDE.
    However, when I make an executable JAR file from my project, those external JARs are not included.
    So when I run my program, everything is fine until the parts that uses the external JARs.
    Does anyone know how to include them outside of Eclipse platform?
    I am going to see my client in an hour and of course I can't bring my source and install an Eclipse at my client's computer to show them my demo...
    please help... thanx...

    You add those external jars to the classpath or the jars classpath if you're running the program from a jar. Or put the external jar to JAVA_HOME\lib\ext (IIRC)

  • How to include ojdbc.jar with applet in apex

    Hi,
    I am integrating applet with apex. I need to use ojdbc.jar to connect to Database. How can i include this jar. I tried uploading it as a static file. But i am not sure how to embed it with applet code in region source of a page. I am using following code to embed the applet.
    <applet code="TestApplet.class" archive="#APP_IMAGES#Test.jar" width="500" height="500">
    </applet>
    Please suggest how to include the ojdbc.jar.
    Regards,
    Shweta

    Thank you all for help, from your posts I was able to get the datepicker working with a different version of jQuery (but not jQueryUI) included on the page. There are two methods:
    1. Include the new library before #HEAD# and change the reference to a different variable, for example:
    <script src="jquery-1.6.4.min.js" type="text/javascript"></script>
    <script type="text/javascript">
      var jq164 = jQuery;
    </script>
    #HEAD#2. Include the new library after #HEAD# and enable noConflict() mode, for example:
    #HEAD#
    <script src="jquery-1.6.4.min.js" type="text/javascript"></script>
    <script type="text/javascript">
      var jq164 = jQuery.noConflict(true);
    </script>In both examples above, $, jQuery and apex.jQuery point to apex jQuery, while jq164 points to the new one.
    However, I couldn't manage to include a newer version of jQueryUI. I only found a page ([url http://stackoverflow.com/questions/6358961/using-multiple-jquery-ui-versions]http://stackoverflow.com/questions/6358961/using-multiple-jquery-ui-versions) that says you have to specify a different context for each version of jQueryUI included on the same page. I haven't yet had time to look at this, so if anyone already knows how to do it, it would be really nice to share it with us.
    Regards,
    Jure

  • How to include others jar in my project use netbean

    Hi,
    Here i'm build my project in netbean, in compile source i add jdom.jar. Afer compile, run jar from terminal. But, application can't use and error :
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jpos/
    iso/ISOPackager
    Now, i ask : How to include others lib or jar in my project use netbean
    Rgds,
    Wira S

    Dear All,
    The code In manifest.mf, like :
    Manifest-Version: 1.0
    X-COMMENT: Main-Class will be added automatically by build
    Main-Class: root/Phase3/TesterPhase3/IsolibTester/src/isolibtester/DynamicTreeTester
    Class-Path: root/Phase3/TesterPhase3/jpos/lib/jdom.jar
    When build jar, error :
    error while reading original manifest: error in opening zip file
    Building jar: /root/PHASE3/TesterPhase3/IsolibTester/dist/IsolibTester.jar
    Manifest is invalid: Manifest sections should start with a "Name" attribute and not "Main-Class"
    /root/PHASE3/TesterPhase3/IsolibTester/nbproject/build-impl.xml:273: Invalid Manifest: /root/PHASE3/TesterPhase3/IsolibTester/manifest.mf
    BUILD FAILED (total time: 0 seconds)
    So, i tried add classpath in bash_profile and build.xml, unseccessful
    But, when runing my project from terminal can't found component jdom.jar

  • How to include niscope library in VB program

    Hi all:
    I have a DAQ: PCI-5922 with the niscope driver. The sample VB program runs well. Now I want to write my own VB program so how to include the niscope library in my VB project? Thanks
    Regards
    Andy

    andycui,
    You will first need to open or create a new VB project and then select Project>>Add Reference.  Make sure that the COM tab is selected and choose NI-SCOPE Library from the list. 
    Thanks,
    Gio L.
    Digital Support - Product Manager
    National Instruments
    Attachments:
    VB_NI-SCOPE.GIF ‏42 KB

  • How to Include libraries (Jar's/Packages/ClassNotFoundException/Classpath)

    Ive spent hours looking for a solution, So maby i making a simple human error which i cant find.
    Im unfamiliar with using packages.
    I have created a program that use the JDBC libary. However i need to distribute this program and keep getting a ClassNotFoundException which is throw by:
    String s = "com.mysql.jdbc.Driver";
    Class.forName(s);I would like to have the "mysql-connector-java-bin.jar" file inside my main jar file However I think this may be very complex so i assume it would be easier to have it in the same directory as the main jar file.
    I create my main jar file with:
    jar cmf mainClass.txt Main.jar *.class mysql-connector-java-bin.jarI also jarsigner but i wouldn't expect this to case this problem.
    mainClass.txt
    Main-Class: MyClassFile
    Class-Path: mysql-connector-java-bin.jar
    Sealed: trueAny ideas what im doing wrong? or How i could solve this problem?
    Do i need to write a program which installs the JDBC on their system?
    Is there an easy solution?
    Any advice would be greatly appriacted.
    Thanks,

    ty for the reply
    I now create my jar file with:
    jar cmf mainClass.txt Main.jar *.classand the "mysql-connector-java-bin.jar" is still in same directory as my main.jar file
    Ive also replaced the "mysql-connector-java-bin.jar" to make sure it hasnt been corrupted somehow.
    However i still get the same error.
    the stackTrace is:
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at SQLConnection.<init>(SQLConnection.java:18)SQLConnection a class i have created.and the lines 17 and 18 are posted in my first post.
    Anyideas?

  • How to include another .jar package in an applet jar package

    Hi, I'm using Eclipse to write an applet which needs some other .jar packages to support it. I add them as external jar package in project properties. In eclipse, everything works fine when I compile and run. But I when export the applet to .jar and try to run in browser, it doesnt work.
    I think probably because I didnt export the packages that the applet requires to run. However I cant find a way to export these packages together with the applet to a final .jar file.
    Anyone knows how to solve this ? plz help. thx you in advance

    Hi, I'm using Eclipse to write an applet which needs
    some other .jar packages to support it. I add them as
    external jar package in project properties. In
    eclipse, everything works fine when I compile and
    run. But I when export the applet to .jar and try to
    run in browser, it doesn't work.
    I think probably because I didn't export the packages
    that the applet requires to run. However I cant find
    a way to export these packages together with the
    applet to a final .jar file.
    Anyone knows how to solve this ? plz help. thx you in
    advanceHi all,
    I have been having the same problems too but came to realize that it is quite difficult getting your applet to work in most cases when using external jars. I found out thet you will have to create the directory hierarchy with the necessary imported classes used by your applet. and then create a new jar file that you will use in the codebase tag.
    For example:
    /* Java code snippet */
    import org.apache.XmlRpcClient;
    public MyApplet extends JApplet {
    //..... Rest of your code ......
    }/* End of snippet */
    You would then have to create a the directory structure:
    org
    _apache
    ___xmlrpc
    Then place all the required classes imported from within (Sometimes it is easier to just add all the classes to save time but lose space i.e. larger jar files).
    Execute the jar command (please adjust as needed to your requirements):
    jar cvf any_name.jar *.class org/
    After signing the applet it may solve your problem. Since I'm working with XmlRpc I still have a lot of problems. If anyone has any advice or tips, please share.
    Thank you

  • How to include applet jars into an JSF application

    Hey guys,
    I have a rather simple question. I have made a JAR that contains an applet. The applet runs fine, but when I include the applet into a JSF / JSP page I get a Class not found error.. The JAR containing the applet is included in the websites build path.
    Can someone give me a hint where the JAR shoud go? Maybe a link to a tut would be nice

    classpath wasnt set correctly

  • How to include external .jar libraries

    hi,
    I'd like to use an external .jar library in my Java program.
    I import the package in the source code.
    But where do I have to specify the file location of the .jar file. Do I have to add its directory to the PATH environment variable or somewhere else??? So far I've done this only in Eclipse, but now I'm working in a pure linux environment... with no IDE.
    Thanks :)

    Or specify the classpath completely when you run javac.
    For example to compile a class called Foo in the current directory which uses classes from an external jar file I would say
    javac -cp .:../../whatever.jar Foo.javaAnd if Foo has a main() class:
    java -cp .:../../whatever.jar Foo(If you are working with a number of projects each with lots of classes and lots of (different) jars, it might be time to look at Ant.)

  • How to include website made by another program in iWeb?

    A program I have created a set of web pages for me that are connected. If I click on the index page, it opens in safari. How do I import these pages into iWeb so they work on my .mac website?

    Robert Lewis wrote:
    A program I have created a set of web pages for me that are connected. If I click on the index page, it opens in safari.
    Clicking on index.html only open browser as you saw.
    How do I import these pages into iWeb so they work on my .mac website?
    You can't import html code into iweb domain package.
    iweb can't even import its own generated html code, therefore it will not be able to import html code created by other programs.
    That said, you can:
    1) rebuild your older site by copy and paste your old site into iweb.
    2) start new iweb project and link to the older site, using hyperlink.
    now last and not really easy nor simple is to have javascript transforms the old page in to new iweb format. I'd done this over a year ago, I know it works with Safari, so stick with Safari when you want to see:
    old: http://hdl.50webs.com/old2new/bookmarks.html
    iweb version: http://hdl.50webs.com/old2new/_bookmarks.html

  • How to includ jar files?

    Hi,
    I am having jar file and iam running that jar file in command prompt using java -jar WorkFlow.jar command. I have to include some additional jar files in classpath while running this WorkFlow.jar file... Anyone please tell me how to include the jar files in java command??
    Thanks,
    Sathish

    Sathishkumar.D wrote:
    Hi,
    I am having jar file and iam running that jar file in command prompt using java -jar WorkFlow.jar command. I have to include some additional jar files in classpath while running this WorkFlow.jar file... Anyone please tell me how to include the jar files in java command??
    Thanks,
    SathishYou can't. The WorkFlow.jar you have them specified in the class path entry in the manifest file.

  • How to use JDIC

    I don't know how to make it work.
    I have done the followings:
    1. Extract downloaded jdic-0.9.5-bin-cross-platform.zip.
    2. Put the jdic.jar into C:\Program Files\Java\jdic\
    3. Set the ClassPath to C:\Program Files\Java\jdic\jdic.jar
    4. Put IeEmbed.exe, jdic.dll, jdic_native.jar, MozEmbed.exe, tray.dll into C:\WINDOWS\system32
    5. Create a test.java
    import org.jdesktop.jdic.desktop.*;
    import java.net.*;
    public class test {
    public static void main(String[] args)
    throws Exception {
    Desktop.browse(
    new URL("http://www.yahoo.com/")
    5. javac test.java
    6. java test
    Exception in thread "main" java.lang.NoClassDefFoundError: test
    Caused by: java.lang.ClassNotFoundException: test
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Any body know how to make it work?? thanks a lot

    Read the section under "Runtime" that applies to your computer os.
    [http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html]

Maybe you are looking for

  • Could this be a Mail virus or something like it?

    Just received an e-mail as follows: From: Mail Delivery Subsystem <[email protected]> Subject: Returned Mail: User unknown Date: November 27, 2005 10:41:55 AM AKST To: (my e-mail address here) The message indicates that the mail was returned to me be

  • Programming combo box to go on a specific page

    Hi All, I have this form which requires a user to select 'yes' or 'no'. If the user selects 'yes', the form takes user to page 6 and if he selects 'no', it takes him to page 8. Now this is very much easy to do with livecycle. Although I am having tro

  • Declaring constructor method public or private.  What's the point?

    My book declares the constructor method public. I tried declaring it private, and without any modifier out of curiousity. It runs exactly the same. What's the point of doing so? public class test      public static void main( String[] args )         

  • Batch needs to be created 1st then post goods receipt with inbound delivery

    Hi, We are having split valuated materials with batch managed, we need to post goods receipt with inbound delivery. When we create inbound delivery with PO batch is blank which is correct. Now when we try to post GR with IBD in VL32N we need to put b

  • Floating Fields with Designer ES2

    I just did an upgrade to Designer ES2. I created a new form with static textfields and floating textfields then i created a button that filles the floating field with a text using javascript. xfa.resolveNode("form1.#subform[0].Textfield1").rawValue =