Hello,
How can I run JSP on my computer?
Seven 64 bit??
6 replies to this topic
#1
Posted 26 July 2011 - 05:52 AM
|
|
|
#2
Posted 26 July 2011 - 06:57 AM
What IDE are you using?
#3
Posted 26 July 2011 - 08:09 AM
phpDeisgner
#4
Posted 26 July 2011 - 08:23 AM
hmkay, that's kinda weird for Java stuff :P
Okay, that obviously won't have a built tool to run java application servers.
So here's the manual way:
I took Tomcat, there are others like Glassfish, but Tomcat is what I know best.
Latest version download page: http://tomcat.apache...-70.cgi<br /> I suggest you take Binary Distributions -> core -> zip / tar.
You can also choose to install it as a service on windows so it can run when windows boots... But I don't like slowing down windows boot times ^^.
The zip contains a txt file: RUNNING.txt.
It contains all the info to set things up. Like downloading and installing Java in case you didn't.. The obvious stuff really.
The most important thing is:
To start the server, run /bin/startup.bat
By default it runs on port 8080 (Can be changed in /conf/server.xml)
Everything in the "webapps" folder will be deployed to the Tomcat server. Webapps is the root. So to run the example you go to http://localhost:808...ples/index.html
Shutting server down again is running /bin/shutdown.bat
(I didn't test this while writing, some errors could occur)
Okay, that obviously won't have a built tool to run java application servers.
So here's the manual way:
I took Tomcat, there are others like Glassfish, but Tomcat is what I know best.
Latest version download page: http://tomcat.apache...-70.cgi<br /> I suggest you take Binary Distributions -> core -> zip / tar.
You can also choose to install it as a service on windows so it can run when windows boots... But I don't like slowing down windows boot times ^^.
The zip contains a txt file: RUNNING.txt.
It contains all the info to set things up. Like downloading and installing Java in case you didn't.. The obvious stuff really.
The most important thing is:
To start the server, run /bin/startup.bat
By default it runs on port 8080 (Can be changed in /conf/server.xml)
Everything in the "webapps" folder will be deployed to the Tomcat server. Webapps is the root. So to run the example you go to http://localhost:808...ples/index.html
Shutting server down again is running /bin/shutdown.bat
(I didn't test this while writing, some errors could occur)
#5
Posted 26 July 2011 - 09:44 AM
I have xampp on my computer,
It have Tomcat I think (I don't know how it works)
Also I think NetBean is good for JSP!
It have Tomcat I think (I don't know how it works)
Also I think NetBean is good for JSP!
#6
Posted 26 July 2011 - 03:27 PM
I suggest you use the latest version of NetBeans IDE. It has already a web server called GlassFish. And it won't be so hard to run your project.
If you are new to JavaEE, visit this site.
Java EE & Java Web Learning Trail - NetBeans Tutorials, Guides and Articles
If you are new to JavaEE, visit this site.
Java EE & Java Web Learning Trail - NetBeans Tutorials, Guides and Articles
#7
Posted 26 July 2011 - 07:50 PM
When I was using xampp, I had to start the tomcat server using the catalina_start.bat.
This file was located at
After this you can go to http://localhost:8080/ to view the default index.html provided. Off to the left, there is a navigation bar where you can view provided .jsp files.
If they are not working, the tomcat server probably isn't working.
To fix, try to restart it by running the catalina_stop.bat and rerunning cataline_start.bat
The index.html file you view when you go to http://localhost:8080 is located on your hard drive at: B:\xampp\tomcat\webapps\ROOT
The examples are located at : B:\xampp\tomcat\webapps\examples
This file was located at
B:\xampp\tomcat\webapps\ROOTBe sure to replace B:\ with your drive. Also, your full directory may be a little different than mine.
After this you can go to http://localhost:8080/ to view the default index.html provided. Off to the left, there is a navigation bar where you can view provided .jsp files.
If they are not working, the tomcat server probably isn't working.
To fix, try to restart it by running the catalina_stop.bat and rerunning cataline_start.bat
The index.html file you view when you go to http://localhost:8080 is located on your hard drive at: B:\xampp\tomcat\webapps\ROOT
The examples are located at : B:\xampp\tomcat\webapps\examples
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









