📄 ide.xtp
字号:
<s1 title="Using Resin with some IDEs"><s2 title="Inprise JBuilder"><s3 title="Resin OpenTool"><p>The Caucho projects section now has an OpenTool jar for Resin at<a href="http://www.caucho.com/projects/jbuilder/resin-jbuilder.jar">resin-jbuilder.jar</a>.</p><p>To install the tool, put the resin-jbuilder.jar in the JBuilder lib/extdirectory, for example, c:\JBuilder6\lib\ext. Then you can change theserver using the Project/Project Properties/Server table.</p></s3><s3 title="Older instructions"><p>Kellan Elliott-McCrea writes:</p><p>This works w/ JBuilder 3.5, I assume it will work with 4. FYI: I'venoticed a definite slow down when doing this.</p><ol><li>Go To Project Properties - required libraries<li>Remove the JSWDK 1.0 stuff from the required libraries, you don't need itany more<li>Click "Add..." then Click "New..."<li>fill out a name for resin, I would naming it Resin 1.2.1 (or whateverversion you are running)<li>Click "Add..." <li>Browse to your resin directory and add all the jar files under the libdirectory<li>Click "OK" to select then "OK" again<li>Go to the "Run" tab in properties<li>Click "Set"<li>Find the class com.caucho.server.http.HttpServer<li>Click "OK" to close set window and "OK" to accept properties</ol></s3></s2><s2 title="Allaire Kawa"><p>Kevin Altis writes:</p><p>For those people wanting to do source-level debugging of servlets underWindows with Resin and the Kawa Pro 5.0 IDE from Allaire (this should workwith the Enterprise Edition as well) I've adapted the example of using Kawawith Tomcat at <a href="http://www.allaire.com/Handlers/index.cfm?ID=18611">Allaire</a>.</p><p>Note that you can download Kawa and try it for free for 30 days if you arelooking for a new IDE under Windows. It sure beats using jdb for debugging;D</p><p>Select Project/New menu option and create a new project underdoc\WEB-INF\classes directory of Resin. Please type the name for thisproject as HelloServlet. Kawa will create a new project and open it as thecurrent project.</p><p>Select Project/Add File... and select HelloServlet.java file to addto the newly created project.</p><p>Since Kawa is not setup by default to work with Resin, add resin.jar,jsdk22.jar, jdk12.jar, jdbc2_0-stdext.jar, jta-spec1_0_1.jar, jndi.jar,dom.jar, sax.jar, jaxp.jar, and webutil.jar to the classpath by selectingProject/Classpath and click on File... button to add resin.jar, jsdk22.jar,jdk12.jar, jdbc2_0-stdext.jar, jta-spec1_0_1.jar, jndi.jar, dom.jar,sax.jar, jaxp.jar, and webutil.jar under the resin/lib directory to theclasspath.</p><p>Set the Compilation output directory to doc\WEB-INF\classes byselecting Project/Compiler Options and click on the ">>" to add it. Forexample, if you have installed Resin in your D:\ drive, then check the"Compilation output directory" and add the value"D:\resin\doc\WEB-INF\classes"</p><p>Perform a rebuild all to compile all files in the project.</p><p>Select Project/Interpreter options to set the Java class name to run.Set the "Java class name to run" to com.caucho.server.http.HttpServerand check the box. This will force the class name to run Startup when youselect Build/Run.</p><p>Select Project/Interpreter options to set the Working directory.Set the "Execute program in directory" to Resin install directory andcheck the box. For example, if you have installed Resin on your d:\ drivethen set this option to "D:\resin". This will force the working directory tothe Resin install directory when select Build/Run.</p><p>If you are interested in debugging the servlet, then go to Project/CompilerOptions and check the "Debugging Tables (-g)" option. This will displaylocal variables during debugging of the servlet.</p><p>Select Build/Run to start the Resin WebServer daemon. If all the settingswere done correctly Kawa output window will display the following lines andthe daemon is started successfully. [Note: in my case Resin is installed atc:\java\resin, I'm using Sun JDK 1.3 and I've turned off srun in my .conffile.]</p><example>Wait, Starting the Debugger...****** CONDITIONAL BREAKPOINTS NOT SUPPORTED WITH THIS DEBUGGER ******Working Directory - C:\java\resin\ClassPath -C:\java\resin\lib\resin.jar;C:\java\resin\lib\jdk12.jar;C:\java\resin\lib\webutil.jar;C:\java\resin\lib\jsdk22.jar;C:\java\resin\lib\dom.jar;C:\java\resin\lib\jaxp.jar;C:\java\resin\lib\jdbc2_0-stdext.jar;C:\java\resin\lib\jndi.jar;C:\java\resin\lib\jta-spec1_0_1.jar;C:\java\resin\lib\sax.jar;C:\java\resin\doc\WEB-INF\classes;.;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\jre\lib\i18n.jar;c:\Kawapro5.0\kawaclasses.zipProperties - -Xbootclasspath:c:\jdk1.3\lib\tools.jar;c:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\jre\lib\i18n.jar;Debug Start...Resin 1.2.3 (built Thu Feb 15 11:31:58 PST 2001)Copyright(c) 1998-2001 Caucho Technology. All rights reserved.Starting Resin on Fri, 23 Feb 2001 22:14:06 -0800 (PST)http listening to *:8080</example><p>Now start up a browser and bring up the servlet by typing"http://localhost:8080/servlet/HelloServlet" If all of the above steps weredone correctly, the servlet will print "Hello, world!" on the page.</p><p>In order to start the debugger, set some breakpoints in HelloServlet.javafile and press F5 to start the debugger. Once again go to a browser and open"http://localhost:8080/servlet/HelloServlet" At this time Kawa will hit thebreakpoint and you can debug the servlet just like you would debug anon-servlet project. Please refer to debugger tutorial for more details onhow to debug under Kawa.</p><p>I'm using Kawa Pro 5.0 under Windows 2000 with Resin 1.2.3 and the Sun JDK1.3. HelloServlet.java isn't very interesting, but you should easily be ableto adapt the above directions for your own servlet, just remember to set thepaths correctly. Kawa can debug threads, but I haven't tried it yet withResin.</p></s2></s1>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -