Okay I've ran this script successfully in DOS but as I just recently started using a mac book pro I am trying to learn terminal better.
I'm not sure what the heck to think of this, any ideas are appreciated...
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 tried to run even some very basic code:
/**
* This is the main method for this class
*
*
* @author XXXXXX
* @param args
*/
public class testcheck {
public static void main(String[] args) {
int one;
String name;
one = 25;
name = "Fred";
System.out.println("The integer is: " + one + "\n"
+ "The name is: " + name);
}
}
with the following:
Matthew-lastname-MacBook-Pro-2:~ Matt$ javac Documents/Professional/java/testcheck.java
Documents/Professional/java/testcheck.java:20: illegal character: \0
^
Documents/Professional/java/testcheck.java:20: illegal character: \0
^
Documents/Professional/java/testcheck.java:20: illegal character: \0
(This error repeats 100x)
--This compiled and ran with no errors in DOS
I know java is integrated, but is there anything at all I need to download that could be causing this? An update or package or anything?
I'm not sure what the heck to think of this, any ideas are appreciated...
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 tried to run even some very basic code:
/**
* This is the main method for this class
*
*
* @author XXXXXX
* @param args
*/
public class testcheck {
public static void main(String[] args) {
int one;
String name;
one = 25;
name = "Fred";
System.out.println("The integer is: " + one + "\n"
+ "The name is: " + name);
}
}
with the following:
Matthew-lastname-MacBook-Pro-2:~ Matt$ javac Documents/Professional/java/testcheck.java
Documents/Professional/java/testcheck.java:20: illegal character: \0
^
Documents/Professional/java/testcheck.java:20: illegal character: \0
^
Documents/Professional/java/testcheck.java:20: illegal character: \0
(This error repeats 100x)
--This compiled and ran with no errors in DOS
I know java is integrated, but is there anything at all I need to download that could be causing this? An update or package or anything?