Results 1 to 6 of 6

Thread: Adding jar files to ant target

  1. #1
    Join Date
    Jul 2010
    Posts
    66

    Adding jar files to ant target

    I Complete the following ANT script. The ultimate goal is to make the compilation and execution of test code your package umlv.fruits. For more information , look toward This helps and Online Manual. I write target jar creates an executable jar file for the code test . To test your jar : java -jar fruits.jar,Write target run running the test code. Write target all which will be the default target and launch the compilation and the creation of the jar. I want to know adding jar files to ant target. Please help.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Adding jar files to ant target

    The class loader that we have just created should inherit the class URLClassLoader and be defined with the URL of Jar files to OpenOffice . org and library directories . For OpenOffice.org 3 this means add the URLs for :
    * Jerky Jar file layer Basis in / path / to / ooo / basis- link / program / classes
    * each jar file URE in / Path / to / ooo / basis- link / ure- link / share / java
    * program directory Basis layer , that is to say: / Path / to / ooo / basis- link / program
    * the lib directory of the ERU , that is to say: / Path / to / ooo / basis- link / ure- link / lib.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Adding jar files to ant target

    You must also add code to our application URLs to upload all our classes specific to OpenOffice.org by the class loader. Here is an example of class loader code snippet Eclipse integration ( simplified ). IOOO is an interface describing the instance of OpenOffice. org is used:class action should return results to reuse elsewhere. These results are the Eclipse integration classes that are not at all related to the OpenOffice API . org . If I add the URL to the code to Eclipse class loader URLs , I can instantiate these classes from the classes specific to OpenOffice.org .

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Adding jar files to ant target

    You need to driver Adabas (admittedly a rare occurrence, but each time the same method). Copy the required jar in the "lib /":
    [Quote]% Cp-adabasd 130100.jar instrumentation.jar / usr / local / SQuirreL \ SQL \ Client / lib /
    For mysql, the jar is of the form "mysql-connector-java-3.1.11.jar.
    On the window "Drivers", click the "+" to add a new driver. I will indicate the values that I enter for Adabas to you to find your images for MySQL, Postgres .[Quote]

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Adding jar files to ant target

    You need to add the menu buttons and Tomcat Tomcat () a perspective ( Java , debugging or other) . Use the Window menu , Customize Perspective ... , Other and tick Tomcat. You need to configure plugin,
    1 - Open the plugin preferences page : Window menu , Preferences Tomcat.
    2 - Indicate mandatory version of Tomcat and the targeted directory Install Tomcat.
    If another JRE is specified in the preference Tomcat ( settings for the JVM) , the latter is used rather than the default . If this field is filled in any subsequent modification of the JRE default is not taken into account.

  6. #6
    Join Date
    Feb 2010
    Posts
    766

    Re: Adding jar files to ant target

    You need to service mode , change the class path used by the Windows service. For this use the graphical utility available in the taskbar Windows ( installed when the service mode is selected ) . Modify classpath (in the tab Java) To add the path to the file C : \ { } jdk_path \ lib \ tools.jar, Preceded by a semicolon ( ; ). You can start Tomcat and Apache to verify that the dynamic resources are served. Module mod_jk the transmitting of the request to Apache Tomcat and receiving the response to Apache Tomcat , and then to your browser.

Similar Threads

  1. Adding GIF files to body of e-mail
    By Abhiroopa in forum Technology & Internet
    Replies: 3
    Last Post: 20-02-2011, 08:14 AM
  2. Replies: 3
    Last Post: 05-12-2010, 05:56 AM
  3. Adding Flv files to Windows media player 12
    By Flacos in forum Windows Software
    Replies: 5
    Last Post: 19-12-2009, 03:54 PM
  4. Adding Find Target To Context Menu in Windows XP
    By robin45 in forum Customize Desktop
    Replies: 3
    Last Post: 02-07-2009, 11:22 PM
  5. Replies: 2
    Last Post: 12-01-2009, 08:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,676,125.71182 seconds with 16 queries