Opened 6 years ago

Closed 6 years ago

# Explicit is better than implicit.

Reported by: Owned by: DISABLED minor 0.9.7 wrapper 0.9.5 no

### Description

Decided to copy my defaults to root i2p folder and here i am:
30/05/13 01:57:39 CRIT 1/1? er.startup.CreateRouterInfoJob?: Error writing out the new router information

java.io.FileNotFoundException?: C:\program files\i2p\router.info (Access is denied)
at java.io.FileOutputStream?.open(Native Method)
at java.io.FileOutputStream?.<init>(Unknown Source)
at java.io.FileOutputStream?.<init>(Unknown Source)
at net.i2p.util.SecureFileOutputStream?.<init>(SecureFileOutputStream?.java:41)
at net.i2p.router.startup.CreateRouterInfoJob?.createRouterInfo(CreateRouterInfoJob?.java:107)
at net.i2p.router.startup.RebuildRouterInfoJob?.rebuildRouterInfo(RebuildRouterInfoJob?.java:159)
at net.i2p.router.JobQueueRunner?.runCurrentJob(JobQueueRunner?.java:134)
at net.i2p.router.JobQueueRunner?.run(JobQueueRunner?.java:75)

Just make a proper root setting or file (like ".i2puseshome"), then if it is there, check if you need to copy defaults by checking for %appdata%/i2p/router.config. Enable it by default.
Problem solved.

### comment:1 Changed 6 years ago by DISABLED

…check if you need to copy defaults by checking for %appdata%/i2p/router.config, if yes then copy and use home; if no then do not copy and use home.

### comment:2 Changed 6 years ago by DISABLED

What file does it actually use to understand where to keep it's settings? I still don't get it.

### comment:3 Changed 6 years ago by killyourtv

Component: unspecified → wrapper

I'm sorry, I'm not sure I understand what you're doing.

By default \$HOME/.i2p (or %appdata%\i2p) is used. If you want another location you can explicitly set it with the variable "i2p.dir.config" in the wrapper.config file.

So you can set something like

wrapper.java.additional.5=-Di2p.dir.config=c:\where\you\want\it