Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

JForex classpath log4j.properties file
 Post subject: JForex classpath log4j.properties file Post rating: 0   New post Posted: Wed 14 Jan, 2015, 04:37 
User avatar

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

If I download the jnlp launch file jForex.jnlp and place it in a
directory c:\Home, and then launch it like this, using Java
Web Start (javaws):

C:\Windows\SysWOW64\javaws.exe C:\Home\jForex.jnlp
(this is 32-bit Java 7 Update 71 so it's in SysWOW64...)

I'm trying to figure out what the CLASSPATH would be, since I
need to place log4j.properties in one of the folders on the
CLASSPATH. I do have log4j.properties in the c:\Home folder
but it doesn't seem to be effective, in suppressing DEBUG
type messages to the console from the JForex platform.
I believe it needs to be discoverable on the CLASSPATH.

So I guess I need to add some args on the javaws launch
command maybe to get some additional folder on the
CLASSPATH.

Console dumpable system and deployment properties
are show java.class.path

java.class.path = C:\Program Files (x86)\Java\jre7\lib\deploy.jar


Thanks for any tips...

HyperScalper


 
 Post subject: Re: JForex classpath log4j.properties file Post rating: 0   New post Posted: Mon 19 Jan, 2015, 10:59 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You can pass "log4j.configuration" parameter to javaws:
javaws -J-Dlog4j.configuration=file:/Users/user/...../log4j.properties jforex.jnlp

In addition, it's possible turn on the log4j.debug flag. It will print to System.out lots of helpful information about which file it used to initialize itself, which loggers/appenders got configured and so on:
javaws -J-Dlog4j.configuration=file:/Users/user/...../log4j.properties J-Dlog4j.debug jforex.jnlp


 

Jump to:  

cron
  © 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