how to add debug.xml file as an argument

abdelkrimi8 years ago

I'm trying to execute the sever source code but i get this error:

Exception in thread "main" java.lang.RuntimeException: Configuration file is not provided
	at org.traccar.Context.init(Context.java:206)
	at org.traccar.Main.main(Main.java:35)

then i added the debug file as an argument and i get this error too:

Exception in thread "main" java.io.FileNotFoundException: debug.xml (Le fichier spécifié est introuvable)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at java.io.FileInputStream.<init>(FileInputStream.java:93)
	at org.traccar.Config.load(Config.java:31)
	at org.traccar.Context.init(Context.java:209)
	at org.traccar.Main.main(Main.java:35)

So how can i fix this problem?

Anton Tananaev8 years ago

I think the problem is obvious. Server can't find the config file.

abdelkrimi8 years ago

Is there another config file apart debug.xml?
Thanks Tananaev,

Anton Tananaev8 years ago

That's just an example of config file. The problem is not with the file that you use. The problem is likely with path to the file.

abdelkrimi8 years ago

when i use an absolute path (D:\Traccar\debug.xml) i get another error saying that i can't find default.xml so how can i use a relative path
Thanks

Anton Tananaev8 years ago

You can use either relative or absolute path. There should be no issues.