Hi all Friends
I have installed java in my window 7 operating system. I am trying to run my apache server on this OS. when i trying to start the server a command prompt window run and disappeared after 1 second and i am new to java please help me what is problem. Is window 7 is a problem and me should use window xp or what is way and problem with me please help me
I have installed java in my window 7 operating system. I am trying to run my apache server on this OS. when i trying to start the server a command prompt window run and disappeared after 1 second and i am new to java please help me what is problem. Is window 7 is a problem and me should use window xp or what is way and problem with me please help me
Hi
ReplyDeletethis is not issue of window 7 or window 7 not having any problem cause not to run apache server but some security issues are present in window7
you have to littile carefull about this issue if you got any error related to security issues.
But this time your problem is different to solve this problem please check you have insstalled your java development kit (jdk), java runtime environment (jre)
and apache. if you already installed these should be available in your program file directory in your root drive.
After that examine following steps if not done:-
1. you have to set the classpath, path, java_home, jre_home to do this do following:
2. click on start button and then right click on computer icon and left click on propertes
3. system window will open click on advanced system setting on left side
4. System Property window will appear then choose advance tab and click on environment variables button
5. then environment variables window will appear
6. create new variable in system variable section name it CLASSPATH in capital letters in value tab copy the path of servlet-api.jar from lib folder present in apache directory mine is following
CLASSPATH = C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 7.0.22\lib\servlet-api.jar;
7. Create a new variable and name it PATH in capital letter and copy the path of bin directory of bin folder of jdk mine if following
PATH = C:\Program Files (x86)\Java\jdk1.6.0_30\bin\;
8. Create a new variable and name it JAVA_HOME and copy the path of jdk folder in value as following
JAVA_HOME = C:\Program Files (x86)\Java\jdk1.6.0_30\
9. create a new variable and name it JRE_HOME and copy the jre directory path in value box as following
JRE_HOME = C:\Program Files (x86)\Java\jre6
and you are done
your apache will run fine