• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

problem in compiling my java application using Mac Os X

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Sheriff
Posts: 67762
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
printIn? Did you mean println?

Also, as this is not Mac-specific, moved to Java in General.
 
Marshal
Posts: 82459
594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22907
132
Eclipse IDE Spring TypeScript Quarkus Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic