• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
reply
    Bookmark Topic Watch Topic
  • New Topic