How to create executable jar in eclipse using linking in compiler

Hi,
I have a project in Eclipse. I wrote already an ant build file for creating an executable jar which includes all project files.
Now I want to create a second executable jar which is a subset of the project (a limited number of classes are necessary).
I have a main class and I was looking for a way to generate a jar file which includes the main class and all the depending classes.
Is there a way to do it? With ant or with another tool?
Is it possible to compile a project given a main class, and include all depending classes?
Regards,
Biebel
Edited by: biebel1975 on Jan 7, 2009 10:21 AM

biebel1975 wrote:
Some more information:
When I compile all the classes, the jar file is +/- 3.5Mb inclusive the server side logic.
The subproject I want to build, should be less then 1Mb (Only some screens and beans, no business logic ((only +/- 10% of the projects code) )).
My question is: How can I create a executable jar with only the necessary class files which depends on the main class. (Linked with the imports).
Is there a tool to do that? Can it be done with an ANT script? If so, how does the script looks?
What are you talking about?
You already said that you are using Ant.
Ant uses script files.
Since you have one with X items in it and you want something new with X-Y items in it the obviously it would make sense to construct an ant script that does less than the other ant script.
The following provides a huge amount of information about Ant.
[http://ant.apache.org/resources.html]
Other than that no one can tell you want your Ant script will look like except that it will do less than the one that you already have.

Similar Messages

  • How to create executable jar files??

    how to create executable jar files??
    thx :)

    Using JAR Files to Deploy
    http://developer.java.sun.com/developer/onlineTraining/Programming/BasicJava2/jar.html#jar

  • How to create runnable JAR in Eclipse

    I have a project in Eclipse with many classes.
    Whenever I try to create a runnable JAR, the JAR file created always contains all the classes of the project, regardless whether they are really used or not.
    Is it possible to create a runnable JAR in Eclipse, excluding the classes of the project which are not strictly necessary for a given launch configuration?

    krige wrote:
    I have a project in Eclipse with many classes.My condolences on using a build system that apparently has grabbed you by the short & curlies. That can be painful.
    Note that:
    1) Eclipse can use Ant style build.xml files for controlling most aspects of a build (that are worth mentioning).
    2) We provide no support for Eclipse on these groups, but since Ant typically defers to a core set of tools in the SDK, you can usually get away with asking an Ant related question.

  • How to create a stored procedure and use it in Crystal reports

    Hi All,
    Can anyone explain me how to create a stored procedure and use that stored procedure in Crystal reports. As I have few doubts in this process, It would be great if you can explain me with a small stored proc example.
    Thanks in advance.

    If you are using MSSQL SERVER then try creating a stored procedure like this
    create proc Name
    select * from Table
    by executing this in sql query analyzer will create a stored procedure that returns all the data from Table
    here is the syntax to create SP
    Syntax
    CREATE PROC [ EDURE ] procedure_name [ ; number ]
        [ { @parameter data_type }
            [ VARYING ] [ = default ] [ OUTPUT ]
        ] [ ,...n ]
    [ WITH
        { RECOMPILE | ENCRYPTION | RECOMPILE , ENCRYPTION } ]
    [ FOR REPLICATION ]
    AS sql_statement [ ...n ]
    Now Create new report and create new connection to your database and select stored procedure and add it to the report that shows all the columns and you can place the required fields in the report and refresh the report.
    Regards,
    Raghavendra
    Edited by: Raghavendra Gadhamsetty on Jun 11, 2009 1:45 AM

  • How to Create and Deploy Web Services Using Oracle 9i JDeveloper

    Hi,
    My Question is how to create and deploy Web Services using Oracle 9i JDeveloper.Anybody please give me a detailed Reply.Please Reply to [email protected]
    Hopr to Hear From you,
    Regards,
    G Sreekumar

    You could use datasources. You should do this in your BC4J Configuration. Then when deploying your applicaiton use the command -installDataSource (from admin.jar) to create the right datasource.
    You could probably use the name of your connection + "DS" so you can also use it locally in JDeveloper as JDev seesm to create this automaticly for your Connections.

  • Teach me how to create the opening "hallway" sequence using Adobe After Effects

    I need to create a memorial video for a loved one that passed away. Can someone teach me how to create the opening "hallway" sequence using AE? here is the video from youtube: https://www.youtube.com/watch?v=4191kcW07f0 . Thanks

    I'll give a very brief overview but, presuming that you are new to After Effects, understanding and executing on this overview will require learning the basics of After Effects.
    You'll be creating a 3D scene based on a few 3D layers: one each for the floor and each wall. Each of those 3D layers will be a precomposition layer; the wall layer with the pictures will be based on a precomposition in which you have placed your pictures as individual layers. You will create some 3D lights shining down from above. You'll create a 3D camera that you will then animate to move down the hallway.
    As I said, that is a very brief overview. Understanding each of those pieces will require some learning. After Effects is not a simple application, so you do need to be prepared to put in some learning time if you are going to do this yourself. Here is the place to start: http://adobe.ly/AE_basics
    All that said, I would recommend that you hire someone to do this for you. Learning a new and complex creative application under the time pressure (and other pressure) that you are under may be too much to ask.

  • Unable to create Executable JAR file

    Hi,
    I tried to create Executable JAR file for
    //JarTest.java
    class JarTest
         public static void main( String args[] )
              System.out.println("i am EXECUTABLE JAR ");
    mf is like
    Manifest-Version: 1.0
    Main-Class: JarTest
    used jar cmf JarTest.mf exe.jar *.classIt created a jar file but i can't Execute the file
    Help me
    Thanks
    AE

    java is choosy about the actual manifest file format (line ending, trailing empty line, whatever).
    This works for me with your example:
    posman@proli:~/ivan/aa> cat mf
    Manifest-Version: 1.0
    Main-Class: JarTest
    posman@proli:~/ivan/aa> od -cx mf
    0000000   M   a   n   i   f   e   s   t   -   V   e   r   s   i   o   n
            614d 696e 6566 7473 562d 7265 6973 6e6f
    0000020   :       1   .   0  \n   M   a   i   n   -   C   l   a   s   s
            203a 2e31 0a30 614d 6e69 432d 616c 7373
    0000040   :       J   a   r   T   e   s   t  \n  \n  \0
            203a 614a 5472 7365 0a74 000a

  • How to create a DSN Less Connection using MySQL

    Hi All
    How to create a DSN Less Connection using MySQL?
    http://www.caucho.com/projects/jdbc-mysql/index.xtp and downloaded Caucho driver and installed the jar ---- caucho-jdbc-mysql-0.2.7.jar in my classpath..
    this is how i embedded the code
    try
    driver = (Driver) Class.forName("com.caucho-jdbc-mysql-0.2.7.Driver").newInstance();
    catch (Exception e)
    lastErr = "Cannot load the driver, reason:"+e.toString();
    nothing seems to work with code..
    Unable to proceed..Any piece of code would be of great help..
    Thanks and regds
    Gautam

    According to the installation instructions for that driver:
    The driver is com.caucho.jdbc.mysql.Driver
    The url is jdbc:mysql-caucho://hostname:port/database
    You used something else for the driver name. So it doesn't work. By the way, I found those instructions here: http://www.caucho.com/projects/jdbc-mysql/

  • How to create a .jar file in wlcs3.1

    hello friends,
    hi friends, im working on weblogic commerce server3.1 . i dont know how to create a .jar file in weblogic commerce server3.1. can any one knows send email to me.
    thanks.
    hari

    $JDK_HOME/bin/jar (%JDK_HOME%\bin\jar) shows you the syntax
    where JDK_HOME is your jdk installation directory.
    Kumar
    hari wrote:
    hello friends,
    hi friends, im working on weblogic commerce server3.1 . i dont know how to create a .jar file in weblogic commerce server3.1. can any one knows send email to me.
    thanks.
    hari

  • How to create ringingtone into my iPhone using macbook?

    pls teach me how to create ringingtone into my iphone using macbook...

    Have you installed iOS 5 on your iPhone 3GS?
    If not - then connect it to iTunes, and prepare yourself for a very big download!
    It will give step by step instructions once iOS 5 is installed.
    Cheers,
    Rodney

  • How to create an RDBMS event generator using wlst on weblogic 10.3

    how to create an RDBMS event generator using wlst on weblogic 10.3, i got a code fragment needing class "com.bea.wli.management.configuration.RDBMSEventGenChannelConfiguration"
    but i can' t find this class in classpath on weblogic 10.3, pls help me, thanks. code sample is better.

    Hi,
    RDBMS Event Generator Channel Rule Definition
    When you are creating channel rule definitions in the WebLogic Integration Administration Console, it is recommended that you do not use the Back button if you want to resubmit the details on a page.
    You should always use the navigation links provided and create a new channel rule definition.
    http://download.oracle.com/docs/cd/E13214_01/wli/docs85/deploy/cluster.html
    http://download.oracle.com/docs/cd/E13214_01/wli/docs81/relnotes/relnotesLimit.html
    http://otndnld.oracle.co.jp/document/products/owli/docs10gr3/pdf/deploy.pdf
    This problem has been seen in the past when defining the channel rule for an RDBMS Event Generator if schema name was specified with the incorrect case (i.e. lowercase when it should have been uppercase or vice versa). To that end, it is suggested to change the case of the schema when creating the channel rule
    Regards,
    Kal

  • How to create an apple id without using credit card

    how to create an apple id without using credit card.. i have recently purchased apple iphone 3gs bt unable to get apps because of giving credit card info which i dnt hav.. so plz tel me some way to process..

    To get the none option, sign out of anything apple you're signed into. Go to the app store and try to download a free app, any free app. Instead of signing in, take the option to to make a new apple ID. Then go through the steps to make the ID and you'll see the 'none' option.

  • How to create search function (af:query) using method in java

    hi All..:)
    i got problem with search custom (af:query), how to create search function/ af:query using method in java class?
    anyone help me....
    thx
    agungdmt

    Hi,
    download the ADF Faces component demo sources from here: http://www.oracle.com/technetwork/testcontent/adf-faces-rc-demo-083799.html It also has an example for creating a custom af:query model
    Frank

  • How to create autofilter in excel page using jxl api?

    Hi Friends,
    I am using jxl api for excel generation. Its no problem
    but i need to set auto filter options. I am search in this API package but i can't find it.
    Any one know how to create autofilter in excel page using jxl api?.
    Please ..... Its urgent.... ...
    Thanks

    Hi,
    Please mail me on [email protected] if u will find any solutions, i will do the same if i will find any...
    Thank u in advance,

  • How to create  Auto suggestion component by using of ADF tag

    Hi ,
    In my project, I am using the ADF frame work and I need to use the auto suggestion component.
    Can any body suggest me how to create Auto suggestion component by using of ADF tag.
    Waiting for your valuable suggestions...

    Try this forum:
    JDeveloper and ADF
    You might get a lot more response.
    Jan Kettenis

Maybe you are looking for

  • What to do if coustomer service can't resovle issue?

    I am contacting Verizon in hopes to resolve my account issues. I am a relatively new customer to Verizon. I placed my order to establish service with Verizon December 22, 2014. A few days after ordering new phone service is when our horrific experien

  • Error in Bulk Report Generation using SSIS and SSRS 2008 R2

    Hello, upon having solved development issues via this forum I am facing problem in practice. Namely, there are suppose to be created  200 .PDF files. I am facing "strange" outcome because, sometimes I am getting all the files created, sometimes less

  • How to copy A/R Invoice PLD to A/R Credit Memo

    Is it possible to copy a PLD for the A/R Invoice to be a PLD for the A/R Credit Memo?  I created a custom PLD for my A/R Invoices and I would like to save as credit memo pld and just make some slight modifications without having to do the whole thing

  • Set rlim_fd_cur=8192 for Solaris 10 Zone?

    Hi! I would like to install SAP Solution Manager 7.0 on Solaris 10 Zone (Sparc 64 Bit). Unfortunately I could find the file etc/system. Instead I added the project file acording to SAP note 724713. When I run SAP prerequisite Checker SAPINST tells me

  • Updating resultsets using vectors in editable JTables

    Ok i am currently retrieveing my result from a vector of vectors from a query: public void presentResultSet (ResultSet rs)throws SQLException { Vector dataVector=new Vector(); try {if (!rs.next())     JOptionPane.showMessageDialog(null, " No records