Latest News

Showing posts with label environment variable. Show all posts
Showing posts with label environment variable. Show all posts

Tuesday, August 29, 2017

August 29, 2017

How to set up java in windows 10 ?

So first thing you need to perform is install jdk from here

1. Choose jdk as per your system if your system has 32 bit then download 32 bit else download 64 bit.

JDK 86(32-bit)
2. Open system propeties by pressing window key + pause(break) or by following.
System property
3. Now go to the advanced system setting on the letf panel.

4. Now select environment varibales.



5. Go to the system variable and create new and follow below details.


NOTE: Choose whatever path of jdk as in your system. Create same variable in User variable also.

Type java in cmd and if you get output like this than you have successfully set up java in your machine.

🍵🍵🍵🍵🍵🍵🍵🍵🍵🍵🍵🍵🍵🍵🍵🍵🍵




















Tuesday, March 28, 2017

March 28, 2017

Installation of Apache web server for JAVA Web Programming

1. Download apache server from here..
              https://www.apache.org/dyn/closer.cgi

2. Extract the folder and you will get following files in apache folder(in my case my folder name is apache-tomcat-6.0.37)

Extracted files



3. Now copy the Apache folder and paste it in the C drive(it must be your system drive).

     In my case PATH:C:\apache-tomcat-6.0.37.

4. Now in order to access server first of all you need to set path for JDK.
if you don't have JDK installed in your machine first install JDK from here..JDK

Now set path variable for JDK.

* Go to My computer and right click on it and select properties.



*On next screen select Advance System Setting.


*On next screen select Advance tab and choose Environment Variable.


* Then select new variable as follow.


* Then fill the field by following path.


For JDK path go through your C drive and look for the following path
C:\Program Files\Java\jdk1.8.0_101
if your machine jdk is located here than use this path as shown in above figure and click ok.

5. So if you already have JDK setup than after step 4 just move here...
   For apache server your machine should have CATALINA variable.
   To set path for CATALINA see following figure.


6. Now just try to run your JAVA web program using this server it could work.

See sample i created one web app:



WebPage of  Program