• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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: 67620
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: 74712
335
  • 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: 22573
122
Eclipse IDE Spring VI Editor Chrome 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.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic