Posts

Showing posts with the label J2EE

Install Tomcat with Eclipse

Image
Howto install Tomcat with Eclipse IDE on MacOS X. What we need: Tomcat Eclipse JEE 1. Extract Eclipse into your Applicationfolder and Tomcat to your prefered location for example into your home directory. 2. change into the apache-tomcat-6.0.20/bin directory and make all .sh files executeable cd <pathtoyourtomcat>/apache-tomcat-6.0.20/bin chmod +x *.sh 3. test if it starts ./setclasspath.sh ./startup.sh something like this should appear: ./startup.sh Using CATALINA_BASE:   apache-tomcat-6.0.20 Using CATALINA_HOME:   apache-tomcat-6.0.20 Using CATALINA_TMPDIR: apache-tomcat-6.0.20/temp Using JRE_HOME:       /System/Library/Frameworks/JavaVM.framework/Home 4. Test you tomcat installation via your Browser http://localhost:8080/ if everything works like expected shut the tomcat instance down ./shutdown.sh 5. Now we add Tomcat to our Eclipse environment Double click on the server an...

eclipse server locations disabled and need to change to use tomcat installation

Question: I Have set up a dynamic web project in eclipse with a tomcat 5.5 installation. I want to be to set the server to us the tomcat installation instead of the workspace metadata location but when eclipse displays the Overview screen for the server the Server locations section is disabled and therefore I am unable to change it. The overview screen is displayed when you have the servers view open and you then double click on the server. Is it possible to enable this part of the Overview screen or hack a config file to point at the tomcat installation? Answer 1: Here is how I did it: Right click on my tomcat server in "Servers" view, select "Properties…" In the "General" panel, click on the "Switch Location" button The "Location: [workspace metadata]" bit should have been replaced by something else. Open (or close and reopen) the Overview screen for the server.

Add .dll to java.library.path in Eclipse project

I think the better way is: Create a folder under the project, for example dll. Copy/paste all dll files into this folder. In project -> Properties -> Java Build Path -> Source, click and expand the source details. You will see Native library location, click/highlight it. Then click edit on the right, click workspace again. You can see the dll folder under the project. Select it and click OK, OK. You will see the dll is added in the Native library location. That's it. You do not need to manually change anything in configuration.