Java

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 or Dedicated server.

What version?

[server]$ /usr/bin/java -version
java version "1.7.0_91"
OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)

Do you have a JDK installed? Where is the JDK?

Yes. The JDK is installed in

/usr/local/dh/java

You can set your JAVA_HOME by adding the following line to your .bash_profile:

export JAVA_HOME=/usr/local/dh/java

Which Java features does DreamHost support?

  • Java (in general)
  • Java Applets
  • Java2
  • Java SDK/JRE (Software Dev Kit/Java Runtime Environment)

Java applets

Yes. Java applets are applications that run on the user's browser, as opposed to CGI programs, which run on the server.

JavaScript

Yes.

"Java" and "JavaScript" are two entirely different things.

Java is software that runs on the server.

JavaScript on the other hand, is software that is stored on the server, but runs on your computer in your web browser. JavaScript has grown in the last few years and is now also being used server-side. Most notably with Node.js.

Which Java features does DreamHost NOT support?

  • Java servlets
  • JSP
  • Tomcat/Jakarta (a JSP engine)
  • EJB (Enterprise Java Beans)
  • J2EE
  • Pretty much anything else Java-related.

Java servlets

This is not supported on a Shared hosting plan. However, if you upgrade to a VPS or Dedicated server it is possible.

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:

JSP?

JavaServer Pages is a format for using Java to dynamically generate web content.

DreamHost does not offer JSP on Shared hosting plans. However you may enable this on a Dedicated server.

Enterprise Java Beans

Enterprise Java Beans, the server-side component architecture for the J2EE platform, enables rapid and simplified development of distributed, transactional, secure, and portable Java applications.

DreamHost does not support Enterprise Java Beans.

J2EE

J2EE (Java 2 Enterprise Edition) is NOT supported by DreamHost.

Tomcat/Jakarta JSP engine

DreamHost does not support the Tomcat/Jakarta JSP engine on Shared hosting plans. However you may enable this on a Dedicated server.

Did this article answer your questions?

Article last updated .