Getting Started with Java Hosting
Deploy your Java applications on ShardCloud with minimal configuration and maximum performance.ShardCloud supports Java applications with automatic JAR execution and dependency management.
Prerequisites
Before uploading your Java application, ensure you have the following project structure ready.Required Files
Essential files for deployment
Simple Structure
Clean deployment process
Required Files
Your Java application must include these two essential files:1. Entry Point File
- File:
yourapp.jar
- Purpose: Compiled Java application JAR file
- Requirements: Must be a valid executable JAR with main class defined
2. Manifest Configuration
- File:
MANIFEST.MF
- Purpose: Defines JAR metadata and dependencies
- Requirements: Valid manifest format with Main-Class and dependency information
3. ShardCloud Configuration
- File:
.shardcloud
- Purpose: Platform-specific deployment settings
- Requirements: Plain text configuration file in root directory
.sharcloudd and the entrypoint file are required.
ShardCloud Configuration
The .shardcloud file configures your application deployment settings.Configuration Example
Java applications typically require more memory than interpreted languages. Choose appropriate memory allocation for your application’s needs.
Deployment Process
1
Build JAR File
Compile your Java application into an executable JAR
2
Configure Manifest
Ensure MANIFEST.MF contains correct Main-Class and dependencies
3
Prepare Configuration
Create .shardcloud file with deployment settings
4
Create Archive
Zip or RAR your project
5
Upload via Dashboard
Use ShardCloud dashboard to upload your archive
6
Deploy & Monitor
Application automatically deploys and runs your JAR