Results 1 to 6 of 6
  1. #1
    vishnu5 is offline Member
    Join Date
    Jul 2009
    Posts
    1
    Rep Power
    0

    Default jar file eclipse

    please tell me how to create a jar file of an application developed in eclipse .I have developed the application using eclipse 3.2. It uses mysql database.
    I am using crystal reports for eclipse 3.2. (so many jar files are imported). searched a lot. but couldn’t find any solution. please help me

  2. #2
    hero is offline Member
    Join Date
    Jul 2009
    Posts
    20
    Rep Power
    0

    Default

    click file, export, select runnable jar file, click next, select your launch config and destination, finish and you're done.

    Then double-click the runnable jar file in the destination you chose.

  3. #3
    1newbie1 is offline Member
    Join Date
    Sep 2009
    Posts
    3
    Rep Power
    0

    Default

    What should i type to launch configuration attribute?

  4. #4
    1newbie1 is offline Member
    Join Date
    Sep 2009
    Posts
    3
    Rep Power
    0

    Thumbs up

    Hello,
    I try to make runnable jar.I have only one class in my project.Here is source code


    import com.rapidminer.RapidMiner;
    import com.rapidminer.Process;
    import java.io.File;



    public class rapido {

    public static void main(String [] argv) throws Exception{


    RapidMiner. init ();

    // create the process from the command line argument le
    Process process = new Process(newFile("01_ParameterOptimization.xml"));

    // run the process on the input
    process .run( );

    }

    }

    When i make a jar file and execute it, then in output is something like "could not find the the main class".Any idea?Thanks for any help.

  5. #5
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Did you specify which class is your main class in your jar's manifest?

  6. #6
    1newbie1 is offline Member
    Join Date
    Sep 2009
    Posts
    3
    Rep Power
    0

    Default

    Hello ,
    thanks for quick reply.I think that my problem cause the throw exception statement in the signature of main method.When i delete this statement the code didnt work but with it the eclipse didnt recognize the main method in my class during finding the method with main.My knowlege about java is comic. So its kind of funny situation.

Similar Threads

  1. Eclipse Bug - Can't Read From A File Using Eclipse?
    By carlodelmundo in forum New To Java
    Replies: 6
    Last Post: 01-26-2009, 04:25 PM
  2. jsp file in Eclipse
    By nagaprasanna in forum Eclipse
    Replies: 0
    Last Post: 11-18-2008, 08:21 AM
  3. eclipse batch file
    By doug99 in forum Eclipse
    Replies: 6
    Last Post: 04-24-2008, 02:59 PM
  4. How to run/build the JSP file using Eclipse
    By cbklp in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 01-19-2008, 12:03 AM
  5. An Introduction to Eclipse PDE - File Creation
    By JavaForums in forum Eclipse
    Replies: 0
    Last Post: 05-09-2007, 06:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •