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

ERROR: '//src/main/java/com/example/cmdline:runner': no such target #150

Closed
malanb5 opened this issue Apr 9, 2020 · 1 comment
Closed

Comments

@malanb5
Copy link

malanb5 commented Apr 9, 2020

After executing the following command:
157A5CE0-F4A6-41AD-A2E9-807188640259_4_5005_c

Get the following error while trying to build the example in the java tutorial:

0835D9C3-231C-415E-B62A-6ACF1BFDB05F_4_5005_c

Project structure:
497A6450-001F-446D-8D54-7A6A6DE22E37_4_5005_c

BUILD file in the */cmdline directory
43835281-EC6D-4054-9149-021F16C6D4E4_4_5005_c

@malanb5 malanb5 changed the title ERROR: Skipping '//src/main/java/com/example/cmdline:runner': no such target '//src/main/java/com/example/cmdline:runner': target 'runner' not declared in package 'src/main/java/com/example/cmdline' defined by /home/malanb5/projects/examples/delete/src/main/java/com/example/cmdline/BUILD WARNING: Target pattern parsing failed. ERROR: '//src/main/java/com/example/cmdline:runner': no such target Apr 9, 2020
@malanb5
Copy link
Author

malanb5 commented Apr 9, 2020

Wrong target name: should have been:

java_binary(
    name = "runner",
    srcs = ["Runner.java"],
    main_class = "com.example.cmdline.Runner",
    deps = ["//:greeter"],
)

43835281-EC6D-4054-9149-021F16C6D4E4_4_5005_c

@malanb5 malanb5 closed this as completed Apr 9, 2020
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

1 participant