Scala Install करना
Scala install करना painting से पहले अपने art supplies लेने जैसा है। Scala Java के engine के ऊपर चलती है, इसलिए पहले उसे install करें और फिर उसके ऊपर Scala जोड़ें।
In this page:
Installing Scala
Scala JVM पर चलती है, इसलिए पहले एक JDK install होना चाहिए, फिर Scala toolchain (compiler, REPL, और build tools) खुद। ज़्यादातर developers Scala को coursier (cs command) या किसी package manager के ज़रिए install करते हैं।
Install होने के बाद, scala और scalac आपके PATH पर उपलब्ध हो जाते हैं।
Note:
install करने के बाद
scala -version चलाएं यह पुष्टि करने के लिए कि JVM और Scala toolchain दोनों सही तरीके से set up हैं।उदाहरण: Installing Scala
# Linux (using coursier)
curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs
chmod +x cs && ./cs setup
# macOS (Homebrew)
brew install scala
# Windows (Chocolatey)
choco install scala
# Verify installation (all platforms)
scala -version
⚠️ Run this in your own terminal or Node.js environment.
Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the
view already swaps in the hi_ translation fields (or blanks these
out if untranslated), so this renders correctly for both languages
without a lang_code check here. #}
आम गलतियां
- पहले JDK के बिना Scala install करना, जिससे
scalaयाscalaccommand fail हो जाता है क्योंकि कोई Java runtime नहीं है। - installation के बाद नया terminal न खोलना, जिससे
scalaकोcommand not foundबताया जाता है क्योंकि PATH refresh नहीं हुआ। - पुराने JDK का उपयोग करते हुए बहुत नया Scala version install करना, जबकि दोनों compatible होने चाहिए।
🔒
Chapter Quiz — Complete all 8 topics to unlock
0/8 topics done
Complete these topics first: