Java @ Desk: Eclipse
Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Saturday, June 8, 2013

Configure log4j in eclipse without using log4j.properties file

9:47 AM 0
Log4J Implementation in Eclipse without using log4j.properties file:
There are three implementations for configuration of log4j in eclipse.

Required files for the implementation are:
1) log4j.jar
Create a new Java project and name it as LoggerImpl
Create package com.logger and create Log4JPropertyFile.java

Configure log4j in eclipse using PropertyConfigurator class

9:44 AM 0
Log4J Implementation in Eclipse using PropertyConfigurator:
There are three implementations for configuration of log4j in eclipse.

Required files for the implementation are:
1) log4j.jar
2) log4j.properties
3) mylog4j.properties

How to configure log4j in eclipse

9:39 AM 0
Log4J Implementation in Eclipse:
There are three implementations for configuration of log4j in eclipse.

Required files for the implementation are:
1) log4j.jar
2) log4j.properties
3) mylog4j.properties

Create a new Java project and name it as LoggerImpl

Saturday, May 18, 2013

How to attach a source in java eclipse

11:20 PM 0

1) Click on any java class. For instance write a code

ArrayList arrayList = new ArrayList();
Click on ArrayList and navigate to class. Now click on attach source button and select the src folder from your JDK folder. For e.g. C:\Program Files\Java\jdk1.7.0

If src folder is not available then download it and place in that folder