Results 1 to 2 of 2
  1. #1
    jkim1211a is offline Member
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    0

    Default Getting a Tested App to Run, using Clean and Build, etc.

    Hello

    I have run and tested a small application, then I perform a clean and build. The dist folder is present with the jar file, and other files. When I open a command prompt window, enter the path to the dist folder and type

    java -jar MyApp.jar hello out there

    I get a error message that java is not recognized

    I must be doing something wrong somewhere.

    Can anyone point me in the right direction.

    Cheers.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Did you set the class path?

    NetBeans sets its own setting to run the applications. But it's not reflect to the system. So if you want to run your application on command prompt then you've set the classpath. This is nothing to do with clean build in NetBeans.

Similar Threads

  1. buffer problem, how to clean it?
    By GaBuG in forum New To Java
    Replies: 10
    Last Post: 09-20-2010, 01:50 PM
  2. j2me installation is clean?
    By metalmilitia in forum Sun Java Wireless Toolkit
    Replies: 0
    Last Post: 10-30-2009, 11:14 AM
  3. Is there a way to clean up this recursion code?
    By SMHouston in forum New To Java
    Replies: 2
    Last Post: 09-30-2009, 02:30 AM
  4. [REQ] could anybody clean this method up for me?
    By harryblue in forum Advanced Java
    Replies: 5
    Last Post: 03-19-2009, 02:37 AM
  5. clean and Build
    By bhanu in forum Eclipse
    Replies: 3
    Last Post: 07-03-2008, 01:13 PM

Posting Permissions

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