How to start a Java app hosting business
Sell hosting for Java bots and apps: who buys it, plans sized for the JVM, the jar and Java version tickets you will see, and pricing with the fee.
Java has a reputation as an enterprise language, but plenty of hobby and community projects run on it too: Discord bots built with JDA, small Spring Boot APIs, chat bridges, tools written by people who learned to code by making Minecraft plugins. Those developers already know how to build a jar. What they need is a place to run it that is not their gaming PC.
If you run a game hosting brand, Java app hosting is a natural extension, especially if your customers are Minecraft communities, where Java skills are common. This post covers who buys general Java hosting, how to size plans around the JVM, which tickets you will answer and how to price. For the hands-on side, see how to host a Java bot or app for your community.
What you are hosting
A Java app on a panel is a single JVM process, started with something like java -Xmx512M -jar app.jar, inside a container with fixed memory, CPU and disk. The panel shows the console, handles power actions and gives file access.
The product is "run my jar", and the important detail is the jar itself. Most hosted apps are packaged as a fat jar (also called an uber or shaded jar) that contains the app and all its dependencies, built with the Maven Shade plugin, the Gradle Shadow plugin or Spring Boot's own packaging. A plain jar without dependencies will start and then fail with missing classes. That distinction drives a large share of your support.
Who buys Java hosting
JDA and Javacord bot developers
Discord bots in Java are common among developers who came from Minecraft modding or school Java courses. They need the same things as other bot developers (always on, logs, restarts), plus enough memory for the JVM.
Minecraft community tool builders
Communities write Java tools that live next to their game servers: chat bridges, stats collectors, whitelist managers, website backends. If you sell Minecraft hosting, these customers already trust you, and a Java app plan on the same account is an easy add-on.
Spring Boot and backend learners
Students and junior developers building their first Spring Boot API for a portfolio or a small community site. They need a network port and are often surprised by how much memory Spring Boot wants compared with a small script.
Small teams with internal tools
A guild, clan or club running a scheduler or bot for its members. They care about stability and backups more than price.
Plan design around the JVM
The JVM needs memory beyond the heap you give it: metaspace for class data, thread stacks, the JIT compiler's code cache and native buffers. A container limit equal to -Xmx will get the process killed under load. Your plans should be designed with that headroom in mind, and your docs should explain it.
As a starting point to test with real apps:
- Bot: a JDA bot or small worker without a web framework. Modest RAM, no port.
- App: a small Spring Boot or Javalin API with one network port and more RAM.
- Plus: apps with large dependency trees, several services or big in-memory caches.
Decisions to make before launch:
- Default Java version. Current Java LTS releases (such as 17 and 21) cover most projects. Say which versions you offer and how customers choose. Running a jar compiled for a newer Java than the server has fails immediately.
- Start command and heap. Decide whether your setup sets
-Xmxfrom the plan automatically or lets customers set it. Either way, leave headroom between the heap and the container limit. A flag like-XX:MaxRAMPercentagelets the JVM size its heap as a share of the container's memory instead of a fixed number. - Disk for builds, if any. Most customers upload a built jar. If you allow building with Maven or Gradle on the server, budget disk for their caches, which grow quickly.
Pricing with the fee and the base price
You set your own prices with Enzonic for Resellers. Enzonic keeps 10% of each sale, and for servers on Enzonic's nodes also the base price, which is the monthly price of the smallest Enzonic public plan whose RAM, CPU and disk all cover your plan. On your own nodes it is 10% only. A plan on Enzonic nodes must leave you at least $0.50 a month, and the plan editor shows the lowest valid price.
For example, a plan with 6 GB RAM, 2 vCPU and 30 GB disk fits the Iron plan (base $6.49); sold at $15.00 a month on Enzonic nodes, Enzonic keeps $7.99 (10% plus the base) and you keep $7.01, while the same plan on your own nodes leaves you $13.50 before your machine costs.
Because Java plans need more memory than equivalent Go or Python plans, they are more likely to cross into a higher Enzonic tier. Before fixing a plan size, check where it lands. Sometimes trimming a plan a little keeps it in a lower tier with a better margin; sometimes the honest answer is that a Spring Boot app needs the bigger tier, and you price it accordingly. The earnings calculator and the pricing and margins guide help with the numbers.
With Enzonic for Resellers, Java apps runs on your own Pterodactyl or Pelican Wings nodes today, and on Enzonic nodes where available; the plan editor shows where each plan can run. You can also connect your own machine running Pterodactyl Wings or Pelican Wings and sell Java plans there with 10% as the only cut, which is useful for memory-heavy plans if you have a machine with plenty of RAM. Plans bigger than Obsidian can only be sold on own nodes. The own Wings nodes guide covers the setup.
Support load: jars, versions and memory
Most Java tickets fall into a few well-known errors. Write short articles for each:
- "UnsupportedClassVersionError." The jar was compiled for a newer Java version than the server runs. Either run a newer Java or compile with a lower release target.
- "no main manifest attribute, in app.jar." The jar has no
Main-Classin its manifest, sojava -jardoes not know what to run. The build needs to set it, which shading plugins and Spring Boot packaging do. - "NoClassDefFoundError" or "ClassNotFoundException" at startup. The jar does not contain its dependencies. They need a fat jar.
- "The process was killed" with no Java error. The container hit its memory limit, usually because
-Xmxwas set too close to it. Show the memory graph and explain headroom. - "OutOfMemoryError: Java heap space." The heap is too small for the workload, or the app leaks. Bigger plan only if the graph supports it.
- "My API is not reachable." Spring Boot listens on port 8080 by default. It needs
server.portset to the allocated port and must listen on all interfaces.
Make your scope clear: you keep the JVM running and help with hosting errors; you do not debug application code. The support guide for small hosting brands has advice on saved replies.
Abuse and rules
Java apps are less often used for abuse than scripts, but the usual categories still show up: spam bots, scrapers, proxies and miners. Put them in your terms, link your acceptable use policy and act on reports. Bots must also follow the rules of the platform they run on. As seller and merchant of record, refunds, disputes and chargebacks on your sales are yours. This is general information, not legal advice; check local rules or a professional.
Marketing angle
- Talk to Minecraft developers. Plugin developers already know Java and often need a place for the companion bot or web panel. A "Java app slot" next to Minecraft plans is an easy cross-sell.
- Publish the build snippet. A ready Maven Shade or Gradle Shadow configuration, plus a note on
Main-Class, saves customers hours and you tickets. - State versions and memory plainly. "Java 17 and 21, heap set to leave headroom" tells a Java developer you understand the platform.
- Group your app plans. Show Java next to Node.js, Python and Go on an app hosting page, with a short note on which suits which job.
Running it on Enzonic for Resellers
Opening a site is free with no monthly fee. You get a storefront with your plans, branded checkout, a customer panel and a reseller admin under your name, logo and colours. Customers get a live console with power controls and CPU, memory and disk stats (the memory graph is your best friend for heap questions), a file manager and SFTP for uploading jars, backups (also scheduled), scheduled tasks, subusers and network ports. Payments go through Stripe Connect Express, your own provider or manual payments, and you get a one-time credit of $5.00 after confirming your email.
Open your reseller site and build a Bot and an App plan to compare which Enzonic tiers they land in.
Frequently asked questions
Why do Java plans need more RAM than the heap size?
The JVM uses memory outside the heap for class metadata, threads, compiled code and buffers. If the container limit equals the heap, the process can be killed even though Java never reports running out of heap.
Which Java versions should I offer?
Current LTS releases cover most projects. State which ones you support and make it clear how a customer picks the version their jar was built for.
Can customers build with Maven or Gradle on the server?
They can if your setup allows it, but builds need extra disk and CPU. Uploading a prebuilt fat jar is simpler for both sides and is the better default.
Is Java hosting worth adding next to Minecraft hosting?
Often, because Minecraft communities include Java developers who need somewhere to run bots and tools. Start with one small plan and grow it based on demand.