---
title: "I have started with java but compiler gives erroer"  
description: "I have started with java but compiler gives erroer"  
author: "Anonymous User"  
published: 2014-11-12  
updated: 2014-11-13  
canonical: https://www.mindstick.com/forum/12566/i-have-started-with-java-but-compiler-gives-erroer  
category: "java"  
tags: ["javac"]  
reading_time: 1 minute  

---

# I have started with java but compiler gives erroer

As you can tell I am just [starting](https://www.mindstick.com/blog/12024/things-you-need-to-know-when-starting-your-own-business) out, but I have been told I will probably be good at it

```
public class HelloWorld {    public static void main(string[] args) {        system.out.println("Hello world") ;    }}
```

the [compiler](https://www.mindstick.com/articles/27/just-in-time-compiler) says

"HelloWorld.java:3: error: cannot find symbol

public [static void](https://www.mindstick.com/interview/2715/can-we-write-static-public-void-instead-of-public-static-void) main([string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp)[] args) {

^

symbol: class string

[location](https://www.mindstick.com/blog/11636/relocating-business-or-office-to-another-location): class HelloWorld

HelloWorld.java:5: error: [package](https://www.mindstick.com/blog/12619/tips-for-finding-the-right-package-when-you-buy-instagram-followers) [system](https://www.mindstick.com/articles/23411/the-most-effective-method-to-find-the-perfect-small-business-phone-system-for-your-business) does not exist

system.out.println("Hello world") ;

^

2 errors"

will somebody [please explain](https://www.mindstick.com/forum/344/hi-rohith-i-am-new-for-mvc-please-explain-how-to-set-implicitly-isauthenticated-true) to me what is wrong

## Replies

### Reply by Anonymous User

Capitalization is important in this context. The class is String and I believe you need System like

```
public static void main(String[] args) {  System.out.println("Hello
world") ;}
```


---

Original Source: https://www.mindstick.com/forum/12566/i-have-started-with-java-but-compiler-gives-erroer

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
