Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jre when accessing java war application  RSS feed

 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

does my client need a Java Runtime Environment when the client wants to access my java web application (which is deployed as WAR in a tomcat-server).

When not, why or when does my client needs a JRE ?
 
Jason Irwin
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "client"? Customer or end-user? Because you have said that you have deployed a WAR to Tomcat, I assume you mean "end-user".

To "access" the application from a web browser, your client will probably not need a JRE installed on their client unless your application needs to use Java in the client browser (e.g. Java applets). Modern web applications use a lot of JavaScript, but that has nothing to do with Java and support is built into the browser itself (e.g. FireFox using TraceMonkey).

If your application is not accessed via a web browser, but some other application (e.g. an application using services exposed by your web application) then the answer will depend on the language used for that application. As you have asked in the JSF forum, I assume your client will be using a browser.

HTH

J.
 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

my clients access the application from a web browser, so no jre is required (i have no applets).

thank you.
 
Tim Holloway
Bartender
Posts: 18705
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't actually mention JSF, but it doesn't matter. Unless you're executing client-side Java code (applets), the client computer does not need any Java JRE. The various Java server frameworks (raw servlet/JSP, Struts, JSF, and so forth) build HTML and send that to the client. There's no Java code sent to the client, so no need to have a client-side JRE.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!