$(ABSOLUTE_JAVABASE) not defined when I sync working set

31 views
Skip to first unread message

jkkr

unread,
May 18, 2022, 12:50:30 AM5/18/22
to ONOS Discuss
Hi, all again :)

I successfully built my app and activated it on ONOS CLI.

But when I try to sync my working file, I got error "in cmd attribute of genrule rule // :onos-local_absolute-javabase: $(ABSOLUTE_JAVABASE) not defined:"

I add "JAVA_HOME" in .bashrc .
I use jdk-11.
I use IntelliJ version 2019 and old version of Bazel Plugin.

It is successfully synced when I  do not choose 'Expand Sync to Working Set'
But It gives me errors when I choose to expand sync to working set :(

The attached picture is the result. 
How can I solve this problem?

Please help me get through this :)

Thanks for reading 


d.PNG

0ice...@gmail.com

unread,
May 18, 2022, 2:18:05 AM5/18/22
to ONOS Discuss, jkkr
Hi jkkr,

I notice something related to your screenshot:
The workflow presented in the guide for developing onos app explain to you how create app out of the master branch. In other world you working outside onos core directory. 
From you screenshot seems that you want to deploy an app inside onos master branch, so to deal with that writing properly the bazel build file for your application and add it to the list of applications list of applications that have to be build.

referring to java:
  • Did you install java 11 on your host machine?
  • Did you try to import onos removing your app?
best 
Davide
Reply all
Reply to author
Forward
0 new messages