A ready-to-use Java development environment with GitHub Codespaces support.
- Microsoft OpenJDK 21 pre-installed and configured
- VS Code Java Extension Pack with essential Java development tools
- Maven and Gradle support for project management
- Debugging capabilities with launch configurations
- Auto-formatting and code organization on save
- Sample Hello World application to get started quickly
- Click the Code button on the GitHub repository page
- Select Codespaces tab
- Click Create codespace on main
- Wait for the environment to be set up (this may take a few minutes)
- Once ready, you'll have a fully configured Java development environment
If you prefer to work locally, ensure you have:
- Java 21 or later installed
- VS Code with the Java Extension Pack
- Open the integrated terminal in VS Code
- Navigate to the repository root
- Compile and run the Hello World example:
# Compile the Java file
javac src/HelloWorld.java -d bin
# Run the compiled class
java -cp bin HelloWorldOr use the VS Code debugging features:
- Open
src/HelloWorld.java - Press
F5to run with debugging - Or use the "Run" code lens that appears above the main method
JavaPlayground/
├── .devcontainer/
│ └── devcontainer.json # GitHub Codespaces configuration
├── .vscode/
│ ├── settings.json # VS Code workspace settings
│ └── launch.json # Debug configurations
├── src/
│ └── HelloWorld.java # Sample Java application
├── .gitignore # Git ignore patterns for Java projects
├── LICENSE # MIT License
└── README.md # This file
- IntelliSense: Smart code completion and error detection
- Debugging: Full debugging support with breakpoints
- Testing: Built-in support for JUnit and other testing frameworks
- Refactoring: Advanced refactoring tools
- Code Formatting: Automatic code formatting on save
- Import Management: Automatic import organization
This is a playground repository for learning and experimenting with Java. Feel free to:
- Add your own Java examples
- Experiment with different Java features
- Practice coding exercises
- Test new libraries and frameworks
This project is licensed under the MIT License - see the LICENSE file for details.