JBuilder not importing log4j.
2 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Friday, September 21, 2001 05:46 AM

I am using JBuilder5 on windows 2000.I also want to use log4j for my application.I have included a log4j in the CLASSPATH system variable. but JBuilder is displaying message that ""MyApp.java": Error #: 302 : cannot access class org.apache.log4j.Category; neither class nor source found for org.apache.log4j.Category at line 3, column 25
Can some body please help me how to adjust path of log4j so that i can use it.
Thank you very much in advance.

Re: JBuilder not importing log4j.

Posted By:   Shahram_Khorsand  
Posted On:   Sunday, September 23, 2001 12:27 PM

Generally you put JBuilder extensions in the /lib/ext library.

The best way of using any external API in JBuilder is to add it as a library.

1. Create a directory add the apropriate JAR files to this directory.

2. In JBuilder choose tools|configure library...| give this library a name and add the JAR file.

3. After clicking OK you may add the Javadoc and the source path if available.

If you choose to add the source and javadoc you can debugg in to the API and hit F1 for getting JavaDoc help!

It is better to dedicate the ext driectory for the JBuilder extensions. Use any other directory for you external APIs.

Remember that you have to go to the project properties and in the library tab add the required libraries.

Good Luck!

Re: JBuilder not importing log4j.

Posted By:   John_Wang  
Posted On:   Friday, September 21, 2001 11:08 AM

Please place your jar file under this



Then Jbuilder will find it automatically.

Good luck.

About | Sitemap | Contact