Java is a programming language and set of libraries developed by Sun Microsystems. DreamHost has Java installed by default on all servers, however some features are not available unless you configure them on a VPS (if root/sudo is not required) or Dedicated server.
[server]$ java -version openjdk version "22.214.171.124" 2020-11-04
OpenJDK Runtime Environment (build 126.96.36.199+1-post-Debian-1deb10u2)
OpenJDK 64-Bit Server VM (build 188.8.131.52+1-post-Debian-1deb10u2, mixed mode, sharing)
Which Java features does DreamHost support?
- Java (in general)
- Java Applets
- Java SDK/JRE (Software Dev Kit/Java Runtime Environment)
Yes. Java applets are applications that run on the user's browser, as opposed to CGI programs, which run on the server.
Java is software that runs on the server.
Which Java features does DreamHost NOT support?
- Java servlets
- Tomcat/Jakarta (a JSP engine)
- EJB (Enterprise Java Beans)
- Pretty much anything else Java-related.
While certainly a useful technology, as time goes on it will be more and more difficult to integrate it with other technologies DreamHost operates on.
DreamHost has closely evaluated the most obvious alternative (Jakarta Tomcat), but due to an inherent limitation in the way Tomcat was designed, it is not a feasible alternative when used in a shared hosting environment. A number of commercial solutions have also been evaluated, but none have been found to be a viable, cost-effective replacement that will work on all shared hosting servers.
View the following articles for further details:
Jakarta Server Pages is a format for using Java to dynamically generate web content.
Enterprise Java Beans
DreamHost does not support Enterprise Java Beans.