Skip to main content

SET-UP-JAVA-TESTING-LAB




actually this article is for two use
1.thought this i can use this java enable window for running java enabled software for hacking or hiding(stegnography)
second in wanna to demonstrate how to run java program through command line..actually now a day so many jvm compiler available like most use Netbean's,Ecllipse or Notepad++..
by this we all forget that even without these software you can compile your program(java)
through command line....ok without wasting time lets start..

Step 1 : You need jdk ,i.e. Java Development Kit. Download it here






Step 2: Install it. Probably you will find it in C:\Program Files. Navigate here.

Step 3: Go inside Java folder (C:\Program Files\Java) and you find a folder called jdk with some version name.jdk




Step 4: Go inside it and you could find a folder called bin there. Navigate inside that folder. Now copy the path.

It will be probably

Step 5: Minimize all the windows. Go to Run(Press Ctrl +R). Type sysdm.cpl and hit enter.

Step 6: Go to Advanced Tab in the dialog box opened and you find a button called Environment variable. Click it.


 step 6.1:Navigate to System variable and press p, you will find variable name called Path.




Step 7: Press Edit and a box opens as shown 




Step 8: Press right arrow key in your keyboard and press semicolon(;) button and paste the path you have copied in step 7.

Step 9:Press ok .

Thats is you have setup a java environment.

Let us write a simple java program and test the working.

Step  10: Press win+r and type cmd. You will get the command prompt.

Step 11: Type notepad. Notepad opens. Now code the program as below.

[code language=”cpp”]

public class Test
{
public static void main(String[] args)
{
System.out.prinln("Welcomeapervisions");
}
}

[/code]

Step 12 :Save it as Test.java.

Step 13: Command for compiling is javac Test.java
Step 14:To run the program command is java Test.

Step 15 :Press enter and you find the output 

until next article this is 
                  
                    ZEROCOOL
                     SIGN OUT  

Popular posts from this blog

DEEP SOUND -STEGNOGRAPHY

In the series of the steganography ..today we are going to discuss the hiding of data in the music file through the help of the window based tool name       "DEEP SOUND" ..now a days very famous TV series name             Mr. Robot . . off course i am  fan of this show..where elliot use this tool for hiding his secret data.. read previous article on steganography                                                         so without wasting much time lets start .. 1.install the DEEP SOUND go to the official website of the deep sound and download it to your machine.  and open up the interface of the deep sound. 2. setting click on the setting gear icon, an pop-up window show up...where languge remain same as english,           change your output  directory ..like i change it to the documents by browsing the folder. after that check the box for encrypt files .. after that it will ask for the password.. input your password for the sec

KALI LINUX -SECURITY ,CONFIGURATIO AND UPDATES

      Configuring network services and  secure  communications The first step in being able to use Kali is to ensure that it has connectivity to either a wired or wireless network to support updates and customization. You may need to obtain an IP address by DHCP (Dynamic Host Configuration Protocol), or assign one statically. First, confirm your IP address using the  command  ifconfig command from a terminal window, as shown in the following screenshot: IP address is 192.168.1.11.... If an IP address was not obtained, an address can be assigned by DHCP using the command dhclient eth0 (or other available interfaces, which will depend on the  specific configuration of the system being used). If a static IP address is used, additional information may be required. For example, you can assign a static IP of 192.168.1.11as follows:                     inet addr:192.168.1.11            Bcast:192.168.1.255            Mask:255.255.255.0        Securing com

EVERY LINUX_ADMIN-COMMANDS TO BE KNOW

Hello Friends,             in todays article i am gonna cover the most used 16 linux commands,every linux admin should know it.in the whole article i just show the uses of all the commands and their additional attributes too.