• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in compiling my java application using Mac Os X  RSS feed

 
Harold King Lobitana
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm new to java, im studying using Head First Java 2nd edition. Im using Mac Os X v. 10.5.2

Pre installed java with my macbook is java version 1.5.0-13

This was the error when I compiled my MyFirstApp.java application:

MyFirstApp.java:5:cannot find symbol
Symbol: method printIn(java.lang.String)
Location: class java.io.PrintStream
System.out.printIn("I Rule");

1 error

---------------------------------------------

This is my application code:

public class MyFirstApp{
public static void main(String[]args){
System.out.printIn("I Rule");
}
}


Thank you

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
printIn? Did you mean println?

Also, as this is not Mac-specific, moved to Java in General.
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear is correct; the penultimate letter is a small L not a capital I; it is short for print-line. It shows how the tiniest spelling error can cause problems.
 
Anirudh Vyas
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which is why i suggest using an IDE! programmers must always ask for an IDE; without that you cant do squat.


Just IMHO.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anirudh Vyas wrote:which is why i suggest using an IDE! programmers must always ask for an IDE; without that you cant do squat.


Just IMHO.

And my humble opinion is that your statement is rubbish. When I started, I used nothing but a text editor and command line, and I ended up pretty well.
What you do need is a text editor that supports syntax highlighting, and preferably bracket matching as well. Notepad++ is always mentioned when people ask for such a text editor.

An IDE will make life easier for you, but you definitely don't need one.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!