Sure!
 
public class JrunWrapper
{
 public static void main(String[] argv)
 {
  try
  {
   com.livesoftware.jrun.service.ServiceManager.main(argv);
  }
  catch (Exception e)
  {
   System.out.println(e.toString());
  }
 }
}
 
Then run something like:
 
<java> JrunWrapper d:\jrun\jsm-default
 
where <java> is the command to run your jvm under your ide or debugger.
Then go to a web browser and hit your servlets which lie underneath JRUN.
For the default windows JRUN install and a HelloWorld program you have written, this could be http://localhost:8000/servlets/HelloWorldServlet
 
The debugger will then stop at any breakpoints you set in your java code.
 
If you need any more help, feel free to e-mail me.
 
--shawn
----- Original Message -----
Sent: Wednesday, May 17, 2000 1:36 AM
Subject: Re: IDE to build and debug servlets

How can I do that?? Can you send us a little example?
 
thanks in advance
 
--ANTONIO
-----Mensaje original-----
De: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]En nombre de Shawn McKisson
Enviado el: mi�rcoles 17 de mayo de 2000 5:45
Para: [EMAIL PROTECTED]
Asunto: Re: IDE to build and debug servlets

It is easy to write a wrapper for JRUN on your dev machine that launches off the web server and servlet engine.
Using this technique you can use any IDE you like to step through servlet code.
 
--shawn
----- Original Message -----
Sent: Tuesday, May 16, 2000 12:53 PM
Subject: Re: IDE to build and debug servlets

Forte For Java from Sun can help you with the servlets and the Community Edition is freely available.  Debugging servlets is problematic and I don't know of a gui that can do it.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rajesh Nair
Sent: Tuesday, May 16, 2000 12:45 PM
To: [EMAIL PROTECTED]
Subject: IDE to build and debug servlets

Anybody know of a reasonably priced(<$200) IDE for Windows that can be used to
write and debug servlets?




Rajesh Nair
[EMAIL PROTECTED]
Ph: 913 599 7201

R&D
Informix Software

Reply via email to