|
-
Mar 27th, 2005, 08:57 PM
#1
Thread Starter
Frenzied Member
starting jsp....
I started reading this old book about jsp, and I'm having a few problems getting started. First of all, it says that I need to set these environment variables: Java_HOME, and J2EE_HOME. I don't see those, and I don't think their is a need for them, but I can't get this one command line argument going. I'm trying to start the server, but it says cannot find j2ee. Here is what it told me to type at the command line: start j2ee -verbose, but that doesn't work. I have downloaded j2ee4.2, and I have jdk1.5, so what's the problem?
-
Mar 27th, 2005, 08:59 PM
#2
Thread Starter
Frenzied Member
Re: starting jsp....
Another thing, I thought I had to do something with tomcat, but the book never metioned anything like that.
-
Mar 27th, 2005, 10:01 PM
#3
Dazed Member
Re: starting jsp....
Just to clear things up. j2ee isn't needed to run jsp pages unless you are using servlets. The user-defined servlets extend HttpServlet which is only found within j2ee and the HttpServletResponse, HttpServletRequest classes that are taken as params to doGet() are also found within j2ee. Packages imports javax.servlet and javax.servlet.http.
The java_home system var is definitely needed. Also i noticed that you said you were trying to start the server. What are you running? tomcat? Just go to the bin where the startup script can be found. Mine is in the following directory. C:\Jakarta\jakarta-tomcat-5.0.28\bin. Then type either start or startup. I forget which one. I just change sdk's so my variables are all different now so i can't start the server.
-
Mar 27th, 2005, 10:16 PM
#4
Thread Starter
Frenzied Member
Re: starting jsp....
I'm not running tomcat, I don't think. I'm reading this out of a book, and the book is really old. I think it's the j2ee server it was trying to run. I'm thinking about ditching the book because it sucks.
-
Mar 27th, 2005, 10:32 PM
#5
Dazed Member
Re: starting jsp....
Yeah just get tomcat. Makes your life a lot easier. Plus it pisses the IIS guys off.
-
Mar 29th, 2005, 05:51 PM
#6
Thread Starter
Frenzied Member
Re: starting jsp....
What about if I just want to run the J2ee server, do you think the only reason taht doesn't work is because my j2ee home path, and java home path are not set?
Also, is tomcat basicly the same thing, or does it require more programming?
-
Mar 29th, 2005, 05:52 PM
#7
Thread Starter
Frenzied Member
Re: starting jsp....
Ohh yeah, one more thing: I was looking at tomcat a while back, and noticed that they were all bin files...Will that open on windows?
-
Mar 30th, 2005, 10:47 PM
#8
Thread Starter
Frenzied Member
-
Mar 31st, 2005, 06:09 AM
#9
Re: starting jsp....
Bin files? I don't get it. You donwload a zip or tar or what ever and then unzip it on your machine. Set up the CLASSPATH and so on.
For a little starting help:
http://www.jguru.com/faq/view.jsp?EID=416224
-
Mar 31st, 2005, 07:11 AM
#10
Thread Starter
Frenzied Member
Re: starting jsp....
 Originally Posted by NoteMe
Bin files? I don't get it. You donwload a zip or tar or what ever and then unzip it on your machine. Set up the CLASSPATH and so on.
I must have been looking at the wrong spot, because where I was looking was all bin files. I found it though. Thank you.
-
Mar 31st, 2005, 07:18 AM
#11
Re: starting jsp....
No problem. Just ask again if you get an other problem with it. But to be honest. Dilenger knows a lot more about Tomcat then I ever will...
-
Mar 31st, 2005, 07:09 PM
#12
Dazed Member
Re: starting jsp....
It's all greek to me. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|