Results 1 to 2 of 2
- 11-12-2010, 05:16 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 2
- Rep Power
- 0
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.
- 11-14-2010, 02:08 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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
-
buffer problem, how to clean it?
By GaBuG in forum New To JavaReplies: 10Last Post: 09-20-2010, 01:50 PM -
j2me installation is clean?
By metalmilitia in forum Sun Java Wireless ToolkitReplies: 0Last Post: 10-30-2009, 11:14 AM -
Is there a way to clean up this recursion code?
By SMHouston in forum New To JavaReplies: 2Last Post: 09-30-2009, 02:30 AM -
[REQ] could anybody clean this method up for me?
By harryblue in forum Advanced JavaReplies: 5Last Post: 03-19-2009, 02:37 AM -
clean and Build
By bhanu in forum EclipseReplies: 3Last Post: 07-03-2008, 01:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks