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

2012 End of the world?

This is a hottest question around the world and am no exception for that.Still there is no clear evidence about what is going to happen.Theoretically , the Mayan calendar ends.After that a new Era emerges, which will be similar to restarting the world. Assuming this as just an assumption. The Assumption is based on the fact that scientists believe that, the planets and other bodies in space, might undergo physical changes (Spiritual in case of Astrologers) which might cause a natural calamity. The Universal fact says " EARTH WILL BE ALIVE AS LONG AS THE SUN IS ". So it is clear that, world will not end, but we will face an end. The actual meaning of the phrase " WORLD ENDS " is , the huge mass called EARTH should explode and scatter into the space as small pieces losing its gravitational force. So there wont be any chance for living creatures to exist once again. But research and prediction say, EARTH will be restored after a huge disaster. Living creatures will n...

HTC Wildfire - Display ,Touch Sensor and Accelerometer

Just went through the online reviews before buying HTC Wildfire to see everyone cursing the display that "Its Pathetic". That is because of the resolution. The screen is large enough( 3.2" ) to show everything, but the resolution is just 320 x 240 pixels. But this is in no way a set back. Just optimize the home screens and other areas as you want ,to bring out the best out of it. I even felt that, the OSK (On Screen keyboard) occupies , half of the screen when text-ing (new word huh! i mean messaging), but now i got used with it and even in many other phones which have higher resolutions the OSK will definitely dominate. Touch Sensor The first thing i want to tell is there is no irritating double tap , that we see in mobiles like Nokia 5800 .The touch sensor is awesome and some times over sensitive. Whenever i take a snap of something and hand over the device to some one, they touch some part of screen while receiving it and finally they complaint that they see a diff...