I use the javac command on windows to compile my java programs. The javac command comes with the JDK.
Type: Posts; User: Norm
I use the javac command on windows to compile my java programs. The javac command comes with the JDK.
Sorry, I have no idea how to use a mac or your IDE.
Open a command prompt window, enter:
javac <SOURCEFILENAME>.java
See the tutorial:
http://docs.oracle.com/javase/tutorial/getStarted/cupojava/win32.html
To copy the contents of the command...
What is the symbol in the error message? Try compiling the source with the javac command to get the compiler's error message.
What is the symbol that the compiler can not find?
In post #9 the symbol not found is: var. It is clearly marked with a ^ beneath it.
The message posted in post #12 does not have a ^ marking...
See post #9 for a sample compiler error message posted inside of code tags.
That sounds like a compiler error.
Please copy full text of the compiler's error message and paste it here. Here is a sample:
TestSorts.java:138: cannot find symbol
symbol : variable var...
Are you asking about a logic problem with your code?
What you posted is not an error message.
Can you explain what the problem is with the program? What is wrong with what it prints out?
Please post the full text of the error messages.