> For the complete documentation index, see [llms.txt](https://sananirajabov.gitbook.io/sanani-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sananirajabov.gitbook.io/sanani-notes/java/first-java-app.md).

# İlk Java proqramımız

İndi isə gələk ilk Java proqramımızı yazaq. Təbiiki ilk kodumuzu ənənəvi üsulla notepad və başqa bir text editor proqramından istifadə edərək yaza bilərik. İlk öncə yeni bir fayl yaradırıq və adınıda **App.java** qoyaq. Sonra hər-hansı bir text editor (mən Notepad++ istifadə edirəm) proqramı ilə faylımızı açaq və aşağıdakı kodumuzu yazaq.

```java
public class App {
		public static void main(String[] args) {
			System.out.println("https://sananirajabov.gitbook.io/sanani-notes/");
		}
}
```

Kodumuzu yazdıqdan sonra faylımızı yaddaşda saxlayaq və sonra bağlayaq. Daha sonra **cmd**-ni açıb həmin qovluğa gəlib aşağıdakı əmri icra edək.

```bash
javac App.java
```

Əmri icra etdikdən sonra, **App.class** adında yeni bir faylımız yaranacaq, hansı **compiler App.java** faylını aldı və bytecode-a çevirdi. Daha sonra bu yeni compile olunmuş faylımızı çalışdırmağa çalışdıraq.

```bash
java App
```

Yuxarıdakı əmri icra etdikdən sonra əgər ekranda bu yazı "**<https://sananirajabov.gitbook.io/sanani-notes/>"** görünürsə deməli hər şey uğurla alınıb.&#x20;

### **IDE Quraşdırmaq**

Artıq növbəti yazılarımızda notepad ilə kod yazmayacayıq, çünki həm yorucu həm də xətaları görməkdə çətinlik yaradır. Onun yerinə, hazır **İDE**-lərdən istifadə edərək rahat kod yaza bilərik. Mən **IntelliJ IDEA** istifadə edirəm ama siz **Netbeans, Eclipse** və ya başqa bir IDE istifadə edə bilərsiniz. Aşağıda hər 3 IDE-nin linkini paylaşıram, oradan endirib rahatlıqla komputerinizə quraşdıra bilərsiniz.

[İntellij İDEA Community](https://www.jetbrains.com/idea/download/#section=windows)

[Eclipse](https://www.eclipse.org/downloads/)

[Netbeans](https://netbeans.org/downloads/8.2/rc/)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sananirajabov.gitbook.io/sanani-notes/java/first-java-app.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
