Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
quick help with terminal command
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vansmith" data-source="post: 1169182" data-attributes="member: 71075"><p>If it's Java, try the following:[code]javac <name of file>[/code]Replace <name of file> with the .java file. That will create the required class files. Then, simply execute the following to run it:[code]java <name of class file>[/code]One thing to note here that is important - do not include the .class extension when executing java in that last command. For example, you would execute:[code]java MyClassFile[/code]instead of:[code]java MyClassFile.class[/code]</p></blockquote><p></p>
[QUOTE="vansmith, post: 1169182, member: 71075"] If it's Java, try the following:[code]javac <name of file>[/code]Replace <name of file> with the .java file. That will create the required class files. Then, simply execute the following to run it:[code]java <name of class file>[/code]One thing to note here that is important - do not include the .class extension when executing java in that last command. For example, you would execute:[code]java MyClassFile[/code]instead of:[code]java MyClassFile.class[/code] [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
quick help with terminal command
Top