Here developers can talk about how to write a Parser for LogMX
4 posts • Page 1 of 1
My parser needs a JAR : where can I add this JAR file so that LogMX will include it in its classpath when using this parser?
You have to add this JAR filename to the classpath used to start LogMX. Depending on your OS, you should modifiy the following file from your LogMX distribution:
- (Linux/Mac) => "logmx.sh" : add your JAR on the line "LOGMX_CLASSPATH=$LOGMX_PATH/classes:...." (JARs are separated with ":", and LogMX dir is "$LOGMX_PATH")
- (Windows, using "LogMX.bat") => "LogMX.bat" : add your JAR on the line "SET LOGMX_CLASSPATH=%LOGMX_HOME%\classes;...." (JARs are separated with ";", and LogMX dir is "$LOGMX_HOME")
- (Windows, using "LogMX.exe") => "launcher.cfg" : add your JAR on the line "-Xmx302m -cp classes\;...." (JARs are separated with ";" and paths are relative to LogMX root directory)
Last edited by admin on Wed Nov 26, 2008 7:50 pm, edited 1 time in total.
It will be better to add another env. variable like : LOGMX_ADDITIONAL_CLASSPATH
where all specifics jar files could be added... this will permit to keep your script as is :
You're right 'biodegradable', it will be easier this way.
It will be available in version 1.0.1 that will come soon
Who is online
Users browsing this forum: No registered users and 0 guests