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 with test #6

Open
Gotal6578359 opened this issue Aug 21, 2018 · 1 comment
Open

Problem with test #6

Gotal6578359 opened this issue Aug 21, 2018 · 1 comment

Comments

@Gotal6578359
Copy link

Hi!
I' give a try to run examples for Nordic Java , but when run batch file run_sample /sample/00Connection receive "Error: Could not find or load main class com.nordicid.testapplication.Example"
Next I try to run batch "build_all" and after passed NurApiSerial i socketTransport on compiling SamplesCommon began error messages like this:

Compiling SamplesCommon
samples\SamplesCommon\src\com\nordicid\samples\common\SamplesCommon_org.java:8: error: class SamplesCommon is public, should be declared in a file named SamplesCommon.java
public class SamplesCommon {
^
1 error
Compiling samples\00_Connection
samples\00_Connection\src\com\nordicid\testapplication\Example.java:3: error: package com.nordicid.samples.common does not exist
import com.nordicid.samples.common.SamplesCommon;
^
samples\00_Connection\src\com\nordicid\testapplication\Example.java:34: error: cannot find symbol
api = SamplesCommon.createAndConnectNurApi();
^
symbol: variable SamplesCommon
location: class Example
2 errors

So what I'm doing wrong to start this examples?

Regards
Zlatko

@mikkonid
Copy link
Contributor

Looks like you've wrongly named file in SamplesCommon folder:
SamplesCommon_org.java

Regards,
Mikko

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

2 participants