Results 1 to 3 of 3
Thread: Running Java in cmd
- 09-02-2012, 03:27 AM #1
Member
- Join Date
- Sep 2012
- Posts
- 11
- Rep Power
- 0
Running Java in cmd
I am new to Java and trying to it up to run and execute programs from cmd. Everything goes fine until it reaches the point where i type (for ex my app name is "app")
app.java
then it ask me which program i want to run it in . The options are notepad, wordpad and browse for a file.
it compiles and everything because i had an error on it before and it told me . I fixed it and now it just ask me what I want to open the app in.
Its a simple string app... to display "helloworld" so I remember in class it was just suppose to output Helloworld in the cmd itself
-
Re: Running Java in cmd
This will do nothing:
app.java
Since all you're doing is typing in the name of a Java file and nothing more, no commands, no nothing. To run it, you would do something like:
java app
- 09-02-2012, 03:37 AM #3
Member
- Join Date
- Sep 2012
- Posts
- 11
- Rep Power
- 0
Similar Threads
-
Problem running Applet in IE but works when running just Java in Netbeans?
By rodneyc8063 in forum Java AppletsReplies: 7Last Post: 12-18-2011, 04:13 AM -
New to java - Issues with running the .java file from flash drive
By seth_java in forum New To JavaReplies: 2Last Post: 09-21-2011, 09:33 AM -
Is it possible to compile Java-code when running a Java-program?
By Toll in forum Advanced JavaReplies: 13Last Post: 06-29-2011, 07:25 AM -
Problem in running Java swing wizard in jre 1.6 while it is running in jre 1.4
By Sanjay Dwivedi in forum AWT / SwingReplies: 0Last Post: 08-26-2009, 01:03 PM -
running java
By Winarto in forum New To JavaReplies: 1Last Post: 08-22-2008, 06:40 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks