Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

Newbie problems with Simple Log and Eclipse

Thread view: 
Sal - 27 Dec 2007 17:41 GMT
Hi All,
I would like to use Simple Log (https://simple-log.dev.java.net/nonav/
userGuide/quickStart.html) with Eclipse.

But i have some questions:
"I recommend putting the Simple Log JARs in your application
classpath. If you are using a web or application user, I suggest
putting the JARs in your WEB-INF/lib or APP-INF/lib directory."

- How can i put the Jar in the Eclipse-project classpath?

"Put simplelog.properties and simplelog-config.properties in the root
of your classpath. simplelog-rollover.properties goes here too if
you're using log rolling.
[...]
If you're using an IDE, you'll probably want to put your
configuration
files at the root of your source tree and instruct the IDE to copy
them over to the classes directory on compilation. "

- how can I put the configuration file in the right place?

Thanks

Sal
lord.zoltar@gmail.com - 27 Dec 2007 18:26 GMT
> Hi All,
> I would like to use Simple Log (https://simple-log.dev.java.net/nonav/
[quoted text clipped - 6 lines]
>
> - How can i put the Jar in the Eclipse-project classpath?

Try:
Select your project in the Project explorer, and right-click and
select project properties (or just press Alt-Enter) and select the
Java Build Path property. In there you can add and remove other
projects or JARS.
Sal - 28 Dec 2007 08:05 GMT
On 27 Dic, 19:26, lord.zol...@gmail.com wrote:
> Try:
> Select your project in the Project explorer, and right-click and
> select project properties (or just press Alt-Enter) and select the
> Java Build Path property. In there you can add and remove other
> projects or JARS.

I've tried to do this and the jars are reachable from the code, the
"import org.grlea.log.SimpleLogger;" work;
but Simple Log seems doesn't works, probably for the configuration
file...

Where and how i've to put it in my project?

Thanks

Sal
Sal - 28 Dec 2007 17:27 GMT
finally Simple Log and eclipse are working!
i've added the configuration file with adding ad NEW->FILE in my
project. I've exported the project as a jar file application.jar and
i've manually (with WinRar) put your directory org/grlea/log in my
application.jar

And now Simple log works

Thanks for your interesting

Sal


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.