Hi,
I am attaching the code of a servlet. Run this servlet and you will get the
details of theVM on the browser. :-))
Hope this will solve your problem.
regds,
Gokul
code ========
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class GetProperties extends HttpServlet
{
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws IOException, ServletException
{
Properties prop = System.getProperties();
res.setContentType("text/html");
PrintWriter out = res.getWriter();
out.println("<html><title>Virtual Machine Details</title><body><h3>VM
Details</h3><br>");
writeProperties(out, prop);
out.println("</body></html>");
out.close();
}
private void writeProperties(PrintWriter out, Properties prop)
{
Iterator it = prop.keySet().iterator();
String key = null;
while(it.hasNext())
{
key = (String)it.next();
// print details relating to Vm only..
if(key.indexOf("java.vm") != -1)
out.println(key + " : " + prop.getProperty(key) +"<br>");
}
}
}
----- Original Message -----
From: "Manoj Motwani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 11, 2000 10:17 AM
Subject: [SERVLET-INTEREST] NES4.0 and JRE Version
> Hi,
>
> Can someone pls let me know what version of JRE is bundled with NES4.0.
>
> Rgds,
> Manoj.
>
>
>
>
>
> __________________________________________________________________
> Get your own free England E-mail address at http://www.england.com
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html