Dukascopy
 
 
Wiki JStore Search Login

JForex putting custom log4j.properties on the classpath ?
 Post subject: JForex putting custom log4j.properties on the classpath ? Post rating: 0   New post Posted: Fri 30 May, 2014, 16:29 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
Hi,

When I run the Java console by default, I see lots
of messages from the JForex platform about
fetching historical data, etc. And I'd like to suppress
those irrelevant messages.

Now, I know that I can control that by providing
log4j.properties but it needs to be on the classpath,
as I understand it.

javaws launcher (Java Web Start) doesn't allow us
to add a folder to the CLASSPATH, probably for security
reasons, also as far as I know (afaik).

What is the recommended method for placing the
log4j.properties in a Windows environment so that
it will be in control of the logger for JForex platform?

In my case, I download the current jForex.jnlp file
and then I place it in another directory, and then I use
javaws.exe ... from a script to launch. So the default directory would
be the location of that script command... but it's not the
default directory that matters, right?, rather it's the CLASSPATH?

Thanks !
HyperScalper


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com