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

MALTEGO-INFORMATION GATHERING GRAPH

Hello Friend,                 Welcome back to Hacker_heaven .in this article i am gonna show you how to gather deep information about any specific website.so just stick with me...

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.

WEB_PENTESTING-VEGA-VULNERABILITY_SCANNING

Hello Guys,       Welcome back to Hacker_Heaven ..today i am going to show you how  to scan the whole website with vega for checking the vulnerabilty in the website. i hope you will like it.. please comment Share this post...