Support article
Can I use Java on my hosting?
Find out if you can use Java or Apache Tomcat on miHosting and which service you need to host Java applications.
Introduction
If you need to host an application built with Java, it’s important to know what kind of hosting service you need before signing up or migrating your project.
Java can run on servers such as Apache Tomcat, a free, open-source application server that lets you publish Java applications on the Internet. However, not every hosting plan is built for this kind of technology.
In this article we explain whether you can use Java on miHosting, why it’s not available on shared hosting, and what alternatives you have if your project needs Tomcat or a custom Java environment.
Does miHosting offer shared hosting with Java
No. miHosting’s shared hosting doesn’t include support for Java or Apache Tomcat.
The main reason is resource usage. Java applications usually need more memory, active processes, and specific configuration than a traditional website built with PHP, WordPress, PrestaShop, or other common shared hosting systems.
Our shared hosting service is focused on keeping stability, security, and quality of service for every user hosted on the same server. Including Java in that environment could negatively affect the overall performance of the service.
What Apache Tomcat is
Apache Tomcat is a Java application server. It’s used to run applications built with Java technologies, such as servlets or JSP.
Put simply: while a normal website can be published with HTML, PHP, or WordPress files, a Java application needs a special environment that can interpret and execute that code. Tomcat is one of the most widely used options for that task.
Why Java isn’t offered on shared hosting
Java isn’t included in shared plans for several technical reasons:
-
Higher memory and CPU usage. A Java application can keep processes running for long periods and use more resources than a static site or a PHP application.
-
Need for custom configuration. Each project may require a specific Java version, particular libraries, environment variables, or Tomcat-specific settings.
-
Impact on other users on the server. On shared hosting, several clients use the same server. If a Java application consumes too many resources, it could affect the rest of the hosted accounts.
-
Service stability. The goal of shared hosting is to offer a stable, controlled environment for conventional websites, email, databases, and common applications.
What service you need to host a Java application
To install and run Java with Apache Tomcat you need an environment with more control over the server.
At miHosting, the right option is to sign up for:
- A VPS, if you need a virtual server with dedicated resources and more flexibility.
- A dedicated server, if your application needs more power, isolation, or full control of the environment.
Installing Java Tomcat should be done on a VPS or dedicated server together with the cPanel control panel.
Recommendations before signing up
Before choosing a service for a Java application, check these points:
-
The application’s technical requirements. Check which Java version it needs, whether it requires Tomcat, how much memory it uses, and whether it needs scheduled tasks, external connections, or additional libraries.
-
Estimated resource usage. If the application will have many users, heavy processes, or frequent database queries, it will probably need more resources than shared hosting.
-
The level of administration required. A VPS or dedicated server offers more control, but also requires more technical administration than shared hosting.
-
Control panel. If you need to manage domains, email, databases, and SSL certificates from a graphical interface, cPanel can make server administration easier.
If you’re not sure which service to choose, it’s best to check with miHosting support and share your Java application’s requirements.
Alternatives if you don’t actually need Java
In some cases, a client asks about Java when they actually mean a different technology.
Before signing up for a VPS or dedicated server, confirm whether your project really needs server-side Java or whether it’s actually:
- JavaScript, which does run in any browser and isn’t the same as Java.
- HTML, CSS, or PHP, common technologies on shared hosting.
- WordPress, PrestaShop, or another CMS, which usually don’t require Java.
- An external application, which may only need to integrate with your site through a link, script, or API.
This distinction matters because Java and JavaScript are not the same thing. JavaScript runs mainly in the visitor’s browser, while Java requires a specific runtime environment on the server when used for web applications.
Common problems
My Java application doesn’t work after uploading it to shared hosting
That’s expected. Shared hosting isn’t set up to run Java applications with Tomcat. For that kind of project you need a VPS or dedicated server.
I can upload .jar or .war files, but they don’t run
Uploading the files to the server isn’t enough. To run a Java application you need the corresponding environment installed and configured, such as Java and Apache Tomcat.
My site uses JavaScript, do I also need Tomcat?
Not necessarily. JavaScript isn’t the same as Java. A site that uses JavaScript in the browser can run on regular shared hosting, as long as it doesn’t depend on a server-side Java application.
Can I install Tomcat from the shared hosting panel?
No. Tomcat isn’t available on shared hosting plans. To install it you need a VPS or dedicated server with the right configuration.
Frequently asked questions
Can I sign up for shared hosting for a Java application?
No. Java applications with Tomcat aren’t available on shared hosting due to the resource usage and special configuration they require.
What do I need to use Apache Tomcat?
You need a VPS or dedicated server where you can install Java, Apache Tomcat, and your application’s required dependencies.
Is Apache Tomcat free?
Yes. Apache Tomcat is open source and free. What you need to sign up for is the right server to install and run it properly.
Can miHosting host a Java application?
Yes, but not on shared hosting. To host Java applications you should check our VPS or dedicated server options.
Does Java use more resources than a regular website?
Generally, yes. Java applications usually need more memory, active processes, and specific configuration than a simple website built with PHP, HTML, or WordPress.
Conclusion
miHosting’s shared hosting doesn’t support Java or Apache Tomcat because this kind of application can use a lot of resources and affect the stability of the service.
If your project needs Java, the right option is to use a VPS or dedicated server with cPanel, where you can install and configure Apache Tomcat according to your application’s requirements. Check out our VPS and dedicated servers section if your project needs it.
If you’re not sure which service to choose, contact miHosting support and share your project’s technical details to get more precise guidance.