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="MKoop" data-source="post: 1169240" data-attributes="member: 120654"><p>Having another issue now, maybe I am pointing to the file incorrectly? Hiccups learning terminal, forgive me. This is my error:</p><p></p><p>my terminal command:</p><p>matthew-lastname-MacBook-Pro-2:~ Matt$ javac Documents/Professional/2011_Seg_C/java/Countertest.java</p><p></p><p></p><p></p><p>result:</p><p></p><p>Matt$ Documents/Professional/2011_Seg_C/java/ \\The previous is abbreviated in the following:</p><p></p><p>java/CounterTest.java</p><p>java/CounterTest.java: line 2: /Applications: is a directory</p><p>java/CounterTest.java: line 3: 2010_BikeMapForWeb.pdf: command not found</p><p>java/CounterTest.java: line 4: 2010_BikeMapForWeb.pdf: command not found</p><p>java/CounterTest.java: line 5: 2010_BikeMapForWeb.pdf: command not found</p><p>java/CounterTest.java: line 6: Desktop/: is a directory</p><p>java/CounterTest.java: line 7: public: command not found</p><p>java/CounterTest.java: line 8: /Applications: is a directory</p><p>java/CounterTest.java: line 9: 2010_BikeMapForWeb.pdf: command not found</p><p>java/CounterTest.java: line 10: 2010_BikeMapForWeb.pdf: command not found</p><p>java/CounterTest.java: line 11: 2010_BikeMapForWeb.pdf: command not found</p><p>java/CounterTest.java: line 12: Desktop/: is a directory</p><p>java/CounterTest.java: line 13: syntax error near unexpected token `('</p><p>java/CounterTest.java: line 13: ` public static void main(String[] args) {'</p><p></p><p></p><p>I saw this and am bewildered and not even sure what to think as I have only coded a very basic counter. Why is this targeting my city bike path route pdf and such? This makes absolutely no sense to me. I have included my code below:</p><p></p><p></p><p>/**</p><p>* Description of the Class</p><p>*</p><p>* @author XXXX</p><p>*/</p><p>public class Countertest {</p><p>/**</p><p>* This is the main method for this class</p><p>*</p><p>* @param args</p><p>*/</p><p>public static void main(String[] args) {</p><p>int counter;</p><p>counter = 0;</p><p>while (counter <= 10) {</p><p>counter++;</p><p>System.out.println("counter" + counter) ("counter" + counter*counter);</p><p>}</p><p></p><p>}</p><p>}</p><p></p><p></p><p>Maybe I should move this question to a different section of the forums?</p></blockquote><p></p>
[QUOTE="MKoop, post: 1169240, member: 120654"] Having another issue now, maybe I am pointing to the file incorrectly? Hiccups learning terminal, forgive me. This is my error: my terminal command: matthew-lastname-MacBook-Pro-2:~ Matt$ javac Documents/Professional/2011_Seg_C/java/Countertest.java result: Matt$ Documents/Professional/2011_Seg_C/java/ \\The previous is abbreviated in the following: java/CounterTest.java java/CounterTest.java: line 2: /Applications: is a directory java/CounterTest.java: line 3: 2010_BikeMapForWeb.pdf: command not found java/CounterTest.java: line 4: 2010_BikeMapForWeb.pdf: command not found java/CounterTest.java: line 5: 2010_BikeMapForWeb.pdf: command not found java/CounterTest.java: line 6: Desktop/: is a directory java/CounterTest.java: line 7: public: command not found java/CounterTest.java: line 8: /Applications: is a directory java/CounterTest.java: line 9: 2010_BikeMapForWeb.pdf: command not found java/CounterTest.java: line 10: 2010_BikeMapForWeb.pdf: command not found java/CounterTest.java: line 11: 2010_BikeMapForWeb.pdf: command not found java/CounterTest.java: line 12: Desktop/: is a directory java/CounterTest.java: line 13: syntax error near unexpected token `(' java/CounterTest.java: line 13: ` public static void main(String[] args) {' I saw this and am bewildered and not even sure what to think as I have only coded a very basic counter. Why is this targeting my city bike path route pdf and such? This makes absolutely no sense to me. I have included my code below: /** * Description of the Class * * @author XXXX */ public class Countertest { /** * This is the main method for this class * * @param args */ public static void main(String[] args) { int counter; counter = 0; while (counter <= 10) { counter++; System.out.println("counter" + counter) ("counter" + counter*counter); } } } Maybe I should move this question to a different section of the forums? [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
quick help with terminal command
Top