Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error at the first code .. compiling

a4d92a13-f123-4ddf-8235-52ec3a1df866May 6 2015 — edited Jun 11 2015

Hi,

I am a beginner in java programming.

Today I downloaded the jdk from oracle site and I continue at there site

to make the first program they suggest (hello world) to beginners.

I wrote the program step by step as they explain but when

I tried to compile it I got two errors that I do not understand them!!

1. error: cannot find symbol

   public static void main (string[] args)

   symbol: class string

2. package system does not exist

    system.out.println("HelloWorld");

May someone help me please.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 8 2015
Added on May 6 2015
1 comment
848 views