
Friday, December 10, 2010
Accessing Services in Windows.

Saturday, October 9, 2010
Difference between the Eclipse Packages.
what are the differences between the following packages:
Helios Packages
Galileo Packages
Ganymede Packages
Europa Packages
This is a question of version.
Here's a quick reference on Eclipse releases and names.
| 3.0 | 28 June 2004 | |
| 3.1 | 28 June 2005 | |
| 3.2 Callisto | 30 June 2006 | |
| 3.3 Europa | 29 June 2007 | |
| 3.4 Ganymede | 25 June 2008 | |
| 3.5 Galileo | 24 June 2009 | |
| 3.6 Helios | 23 June 2010 | |
| 3.7 Indigo | 28 June 2011 |
Tuesday, September 14, 2010
How to make a Build.xml in Eclipse ?
After you have made the project and kept all the source files in the src folder do the following steps to make a build.xml .
- Right click on the Project folder and click on Export.
- Click on General which has a option Ant Buildfiles.
- Click next and select the project for which you have to make a Build.xml .
- This will create the Build.xml.
- Right Click on the the Build.xml file and click on Run As.
- Click the Ant Build.. option which will take you to Edit configuration and launch.
- You can select target to execute.
Thursday, September 2, 2010
Windows cannot find '-Dsun.io.useCanonCahes=false'
If you have the following error while you are trying to start the Apache Tomcat server ( My case it was Apache-Tomcat-4.1.37 ). Then you don't have the JAVA_HOME correctly added to the environment variable.
- Right click on My Computer and click on properties.
- Go to the Advanced tab and click Environment Variables.
- Add a new entry to the system variables if the JAVA_HOME does not exists.
- Set the variable value pointing to the place where it is installed.
To compile any of the .java file you can open the command prompt and type
javac classname.java
This will create the classname.class file .
But if the path to the javac compiler is not set the nit will give the following error message although the JAVA_HOME is set:
"'javac' is not recognized as an internal or external command, operable program or batch file."
To rectify the problem add the path of the javac to the path in the Environment variables.
C:\j2sdk1.4.2_18\bin
The other work around to this problem is each time specify the path like:
C:\j2sdk1.4.2_01\bin\javac classname.java
But setting the environment variables is better option.
Tuesday, June 29, 2010
Creating dependencies between the Projects.
- Right click on the project you are working on.
- Go to Properties which will open a Properties window.
- Go to the Java Build Path.
- Do Add Folder to add new folders to which have dependiencies.
- You can add the Libraries also.
Taking the Snapshot of the frontmost window in Windows
Friday, June 18, 2010
Unit Testing
Using JUnit tests in Eclipse...
A unit test is a piece of code written by a developer that tests a specific functionality in the code which is tested. Unit tests can ensure that functionality is working and can be used to validate that this functionality still works after code changes.
Installation of JUnit Test
To make JUnit available in your Java project you have to add the JUnit library file to your JavaClasspath.
To do that
- right click on the Project folder and go to Properties.
- Under Properties go to the Java Build Path tab under which go to Libraries.
- Now Do Add Linrary and then select JUnit then Next.
- Now add JUnit tests version 3 or 4 as you want.
Create a new project . We want to create the unit tests in a separate folder. Create therefore a new source folder "test" via right mouse click on your project, select properties and choose the "Java Build Path". Select the tab source code.