Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem while building and running java source code #1655

Open
a7medma7moud opened this issue Jan 12, 2016 · 19 comments
Open

Problem while building and running java source code #1655

a7medma7moud opened this issue Jan 12, 2016 · 19 comments

Comments

@a7medma7moud
Copy link

Hello, i have this trouble:
I modified in configuration to make this version run on sql server but while building and running it, the version not working and I got the following

listener run

note : windows desktop version run correctly with me after my updates in traccar.xml file and I can listen to android traccar app and also store in sql database .
So what should I do to make java source code version build and run correctly and also listen to traccar app.

kind regards,

Ahmed Mahmoud

@tananaev
Copy link
Member

Have you provided configuration file?

@a7medma7moud
Copy link
Author

whate do you mean with providing configuration file and how to provide it ?

@tananaev
Copy link
Member

To run Traccar you need to give it configuration file as a command line argument.

@a7medma7moud
Copy link
Author

how to make sure that the listener is running correctly it is build successfully and on debugging it is debug correctly and on the result it give me some thing like that

1
but on running it give me some thing like that

listener run

So, how to make sure that it is now working correctly , I only can test that if a new rows will be added to sql database, Is there service or some thing like that will be run on running the source code of java listener
note : the files that only edit windows/traccar.xml and debug.xml and I'm using NetBeans IDE 7.4

@tananaev
Copy link
Member

You can try to open web interface (http://localhost:8082) and see if it works.

@a7medma7moud
Copy link
Author

it is working correctly on using listener setup version and I can add device and track it but in listener source code version not working it give me [This webpage is not available]

@a7medma7moud
Copy link
Author

I tried it on more than device and give me the same result

@tananaev
Copy link
Member

Binary is built from the same source, so there should be no difference. There must be some problem with config.

@a7medma7moud
Copy link
Author

Sorry , I mean more than computer device , I only edit in windows/traccar.xml and debug.xml I want to ask if there are other files I must to edit

@tananaev
Copy link
Member

Sorry, but I don't understand what you mean by "more than computer device". Which config are you using?

@a7medma7moud
Copy link
Author

I mean that I test the code on another computer to prevent any conflict between setup version and source code version.
Is there a difference between the two files or should I to use one of the as a config and how to use one of them as config

@tananaev
Copy link
Member

You can use two version on the same computer as long as you are not trying to bind same ports.

There are differences in the files and you need to decide which one is right for you and probably adjust it as well. As I said before, you need to provide path to the config file through command line argument.

@a7medma7moud
Copy link
Author

sorry, but how to do some thing like that ?

@tananaev
Copy link
Member

Try instructions from this comment:

http://stackoverflow.com/a/15712324/2548565

@a7medma7moud
Copy link
Author

thanks a lot, it is works now
according to NetBeans 7.4 , I followed these steps
Run > set project configuration > Customize > Run > in arguments type [path of configuration file ]

@RDVanol
Copy link

RDVanol commented Jan 16, 2017

hii Tananaev , where configuration file are exist? Path of configuration file in window?

@tananaev
Copy link
Member

Configuration file is in the repository. Debug one called debug.xml; release one is called traccar.xml.

@aecsalome
Copy link

HI all,

I recently install a traccar windows version in my computer and the service works well (starts (http://localhost:8082) But my device not connect.

So I read that it is necessary install and configure a SQL/mysql to work and I need too change the traccar.xlm file.
Sorry, I do not do that,
I sincerely need helps because did not find a good documentation to help me by sql and xml side.

can you help me?.

@tananaev
Copy link
Member

@aecsalome, you can find instructions to configure MySQL here:

https://www.traccar.org/mysql/

If you have any further questions please create a separate thread instead of commenting on an old unrelated thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants