View Single Post
MKoop

 
Member Since: Sep 12, 2009
Posts: 31
MKoop is on a distinguished road

MKoop is offline
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 Thanks