*
The moose likes Servlets and the fly likes Without JRE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Without JRE" Watch "Without JRE" New topic
Author

Without JRE

Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
Hi all,

Can java run on a pc that don�t have the JRE

Can I run a servlet in a apache server but with out java or dose apache server come with java
What I mean is I do not install java but I have the apache server can I run a servlet
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Can java run on a pc that don�t have the JRE
No, although the answer may be 'not really'. Java byte code needs a 'virtual machine' to act as a bridge between the general Java code and the specific machine. Some machines can natively execute Java code, but chances are you don't have one

Can I run a servlet in a apache server but with out java or dose apache server come with java
What I mean is I do not install java but I have the apache server can I run a servlet


No and No. Apache does not run Servlets, it delegates the responsibility to an external servlet container. Tomcat is one example.
Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
Thanks a Lot,
now can you tell me how can i change my applet in to servlet. what are the things i need to change , add or delete

do apache server has a build in JRE

[ August 09, 2005: Message edited by: Sameera Abeysinghe ]
[ August 09, 2005: Message edited by: Sameera Abeysinghe ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Well, an applet is not a servlet. Client-side and client-server application have different designs. I'm not sure it is as simple as saying 'tell me the steps for turning A into B', there isn't a recipe.
Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
do apache server has a build in JRE
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Do you mean can you build Apache using Java? The answer is no.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Without JRE