Results 1 to 2 of 2
  1. #1
    hnmapara is offline Member
    Join Date
    Jul 2008
    Rep Power

    Default Running eclipse java project on command prompt

    Hi all,

    I have one java project and that is very well running in eclipse. I have added some external JARs to that project. It performs this job- it creates connection to server, and listens to the signals from server.

    My question is - how do I run that java project on command prompt?
    I want to run that using ANT or simply I want to make a JAR file so I can execute JAR on command prompt. I created JAR, but it doesn't contain external jar which I added to the project. So I was not able to run that project.

    Can you please tell me any of the method - using ANT or by making JAR?
    Also can you be little bit more explanatory in reply?


  2. #2
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Rep Power


    You need to add those jars into your classpath in command prompt before running it.
    To finish sooner, take your own time....

Similar Threads

  1. how to run windows command prompt in java parogram ?
    By indikasampath2000 in forum AWT / Swing
    Replies: 4
    Last Post: 12-16-2008, 06:51 AM
  2. accessing command prompt using java (netbeans)...
    By kureikougaiji in forum New To Java
    Replies: 6
    Last Post: 06-27-2008, 03:01 PM
  3. Problem during executing Command Prompt
    By keshari in forum Advanced Java
    Replies: 4
    Last Post: 06-05-2008, 04:06 AM
  4. Replies: 2
    Last Post: 08-06-2007, 09:16 PM
  5. Java Command Line Arguments In Eclipse IDE
    By JavaForums in forum Eclipse
    Replies: 0
    Last Post: 05-19-2007, 09:45 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