• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Using JDBCAppender for older versions of JDK

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear friends

Need help with logging logs into database using JDK 1.1.8. Please read through my .java and properties file attached below. Also please note this application works well with JDK 1.5.

I get runtime error while parsing the properties file (just before commencing parsing for database appender part), saying "Can't find class TestJDBCLogging"

I've also tried setting classpath to C:\log4j\HelloWorld inside System Environment Variables...but no luck. Moreover I've tried using various versions of log4j jars starting from ver. 1.2.1 to 1.2.7 but still same situation...however, using ver 1.2.7 onwards gives compile-time errors on JDK 1.1.8.






Directory structure ->

Location of .java, .class and properties file -
C:\log4j\HelloWorld

Location of library jar files (log4j-1.2.7 and jdbc driver etc) -
C:\log4j\HelloWorld\lib

Looking forward to your replies...

Ravi Singh
 
Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic