Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: The first program in JAVA

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default The first program in JAVA

    Hello,
    I tried to compile my first program in java and I didn't succeed. I get on cmd this:
    C:\test>javac youtube.java
    youtube.java:3: error: cannot find symbol
    public static void main(string args[]) {
    ^
    symbol: class string
    location: class apples
    youtube.java:4: error: cannot find symbol
    System.out.printIn("Hellou Youtube");
    ^
    symbol: method printIn(String)
    location: variable out of type PrintStream
    2 errors
    Plese help me to know what can I do to succeed compile my program


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,881
    Thanks
    55
    Thanked 2,347 Times in 2,318 Posts

    Default Re: The first program in JAVA

    Check the spelling of the String class usage. Java is case sensitive.

    Also check the spelling for the other error.
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    gavrilamihaela240 (March 20th, 2014)

  4. #3
    Junior Member
    Join Date
    Mar 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: The first program in JAVA

    Thank you

Similar Threads

  1. Invoke a Java program with windows program
    By jackhard in forum Object Oriented Programming
    Replies: 1
    Last Post: February 21st, 2013, 07:16 AM
  2. convert java program to java ME program
    By abhishek1212 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 4th, 2013, 03:22 PM
  3. [SOLVED] Write a java program to display even numbers between 2 and 200 using netbeans java
    By Shalom in forum What's Wrong With My Code?
    Replies: 0
    Last Post: December 11th, 2012, 05:16 AM
  4. Replies: 1
    Last Post: July 8th, 2012, 11:23 AM
  5. how to run a java program..when the program using jar
    By miriyalasrihari in forum Java Theory & Questions
    Replies: 2
    Last Post: May 17th, 2012, 11:04 AM