بيئة التطوير
في هذه الصفحة 8 موضوعات
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
نظرة عامة
الموضوعات
- أساسيات نظام التشغيل
- تثبيت JDK
- IntelliJ IDEA
- VS Code
- امتدادات الملفات
- متغيرات البيئة
- PATH
تعلّم أولًا
90 دقيقة قراءة · 2 ساعة تدريب (تقدير)
مخرجات التعلم
- Install the baseline JDK and confirm the installation with
java -versionandjavac -version. - Install IntelliJ IDEA and create, run, and close a project.
- Explain environment variables and
PATH, and fix a "command not found" error caused by a missingPATHentry. - Show hidden file extensions and explain why
.javavs.java.txtmatters.
الدروس
المختبر والتمارين
Lab
BEG-005-LAB1 · Working toolbox
Outcomes: 1, 2, 3, 4 · Time: ~2 h
- Install the JDK and IntelliJ IDEA.
- Print
java -versionandjavac -versionin a terminal. - Break
PATHin a new terminal session and observe the error. - Restore
PATHand show it works.
Acceptance: screenshots of both states and the fix.
Exercises
| ID | Outcome | Task |
|---|---|---|
| BEG-005-EX01 | 4 | Turn on file extensions and show .java and .txt files side by side. |
| BEG-005-EX02 | 4 | Why does Hello.java.txt not compile as Java? |
| BEG-005-EX03 | 1 | Print the Java and compiler versions. |
| BEG-005-EX04 | 3 | Print your PATH and find the JDK folder in it. |
| BEG-005-EX05 | 3 | You get "command not found" for java. List two possible causes. |
| BEG-005-EX06 | 2 | Create a project in IntelliJ, run it, and close it. |
أظهر الحلول
- EX01 Windows: File Explorer → View → File name extensions. macOS: Finder preferences.
- EX02 Its real extension is
.txt, so it is treated as plain text. - EX03
java -versionandjavac -version; both print versions. - EX04 Windows:
echo %PATH%; Bash:echo $PATH; PowerShell:$env:PATH. - EX05 JDK not installed, or its
binfolder not onPATH; or the terminal was opened before the change. - EX06 New Project → JDK → add a class with
main→ Run → File → Close Project.
الاختبار
Outcomes: O1 install JDK · O2 IntelliJ · O3 PATH · O4 extensions.
اختبار ذاتي لك: لا توجد درجات، ولا يُحفظ أو يُرسل أي شيء. اختر إجابة ثم تحقق منها، ويمكنك المحاولة مرة أخرى كما تشاء.
الجزء العملي
Practical check: both version commands print, and a new project runs in the IDE. Pass: both done without help.
أخطاء شائعة
Installing a JRE instead of a JDK; multiple JDKs with the wrong one first on PATH; editing PATH and not opening a new terminal.
التقييم
Practical check: versions printed and a new project runs in the IDE.
الصلة بالمسار الوظيفي
Every lab depends on it; environment differences return in JNR-054.