Skip to main content

Essentials for Programming in Java

Java programming is basic for every programmer.

There are two ways to use java in a PC for Programming

Using IDE:

If you are using any IDE Like Eclipse , Net Beans

Install the Java Runtime Environment (JRE)

Download JRE

This would suffice.

Using System Editor:

If you want to code manually

Download JRE
Java SDK

Now you can use the System Editor to Code Java

Compile with javac filename.java
Run with Java filename


Caution:

The Second method of running java has a Special Constrain.

All the source files must be placed in BIN folder of Java.

If you wish to place the source files some where else (base folder), you need to set path.

Setting Path for Java:

1. Open Command Dos Prompt (Windows + R and Type cmd)

2. Navigate to the folder where you want to work out your files.

Example:
If you want all your programs to be in D:\Java Programs

use cd D:\Java Programs

3. Asuming that your Java is installed in C:\Program Files\Java\Java SDK 1.4\Bin

then set path as

set path = "C:\Program Files\Java\Java SDK 1.4\Bin";

4. To check whether the path is set correctly, type java in Dos Prompt and Press Enter.

You will see the java help file.

Comments

Your blog is very informative and gracefully
your guideline is very good.Thank you
Regional pharmacy college
deepshikha group of colleges

Popular posts from this blog

HQL to SQL Convertor

Stepping in to the field of java API. Presenting you my first invention HQL to SQL convertor. This is a Command line version with which you can convert simple Hibernate query language(HQL) to Structured Query Language. This is my first release and not an exception for bugs and errors. If you find any errors, please feel free to inform me. Your suggestion are valuable. Usage : java -jar HQLtoSQLConvertor.jar Example: java -jar HQLtoSQLConvertor.jar "from Syndrome" HQL to SQL Convertor

Paid traffic Good or Bad

Enthusiastic bloggers and new site holders are always looking for a good traffic. Their main target is drive people to their site/blog and have a good support for their ads thereby earning something. Merchandising and popularizing a website is not an easy task. To make your website have a good reputation , you need to give a reputed website a good reputation first. In turn your reputation will be reciprocated. The sureity of people clicking your website depends upon the publicity of your website. In order to do it ,you need to ignite the fire by manually spreading all you web links over the internet world. Instead of doing that , there is an alternative available which is more popular now. Paid Traffic , what am talking about. The seed level concept of this is that , Site owners pay a concern certain amount and get a assurance of some number of visits (Say 1000 visits per $5) from unique IPs. This attract people.If they earn traffic its well and good, if not they are out just $5. The U...

Gears 5 benchmark with Ryzen 2600x NVidia GTX 1060 16 GB RAM 60 fps

The in-game benchmark test for Gears 5 Configuration: Ryzen 2600x Nvidia 1060 GTX 16 GB Corsair Vengeance Standard hard disk