Starting local Bazel server and connecting to it...
INFO: Invocation ID: c1f6d89b-303b-4bcc-acda-7749bab38f86
INFO: Rule 'build_bazel_rules_nodejs' modified arguments {"commit": "70406e05de721520ca568a17186de73e972d7651", "shallow_since": "1551145517 -0800"} and dropped ["tag"]
INFO: SHA256 (https://github.com/bazelbuild/rules_go/releases/download/0.16.3/rules_go-0.16.3.tar.gz) = b7a62250a3a73277ade0ce306d22f122365b513f5402222403e507f2f997d421
INFO: SHA256 (https://github.com/bazelbuild/buildtools/archive/db073457c5a56d810e46efc18bb93a4fd7aa7b5e.zip) = e0b5b400cfef17d65886365dc7289cb4ef8dfe07066165607413a271a32aa2a4
ERROR: Analysis of target '//:onos' failed; build aborted: no such package '@k8s_model//jar': java.io.IOException: thread interrupted
INFO: Elapsed time: 772.484s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (753 packages loaded, 12452 targets configured)
Fetching @k8s_model; fetching 168s
Hi,
Could it be related to jar command not accessible from /usr/bin or /bin?
I had similar behaviour with my installation of java. In my case, I installed my jdk1.8.0_212 in/opt/java. That’s what I did to resolve (don’t know if it is the best solution)
Add /opt/java/jdk1.8.0_212/bin to the PATH in /etc/environment
Add JAVA_HOME=”/opt/java/jdk1.8.0_212” to /etc/environment
make sure your JDK is properly installed and that java, javac, javadoc or jar commands are accesible from /usr/bin or /bin.
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jdk1.8.0_212/bin/java" 0
sudo update-alternatives –-config java
sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/java/jdk1.8.0_212/bin/javac" 0
sudo update-alternatives –-config javac
sudo update-alternatives --install "/usr/bin/jar" "jar" "/opt/java/jdk1.8.0_212/bin/jar" 0
sudo update-alternatives –-config jar
sudo update-alternatives --install "/usr/bin/javadoc" "javadoc" "/opt/java/jdk1.8.0_212/bin/javadoc" 0
sudo update-alternatives –-config javadoc
Regards,
Alessandro
__________________________________________________
Alessandro Percelsi
IP & Transport Innovation
Via Reiss Romoli 274, I-10148 TORINO
+39 011 2285856
+39 331 6001615
Tim Official:
Facebook -
Twitter
www.tim.it
--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
onos-dev+u...@onosproject.org.
To post to this group, send email to onos...@onosproject.org.
Visit this group at
https://groups.google.com/a/onosproject.org/group/onos-dev/.
To view this discussion on the web visit
https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/c38bbb1b-f349-4992-8fda-8b80e08ff006%40onosproject.org.
Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie.
This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail, Thanks. Rispetta l'ambiente. Non stampare questa mail se non è necessario. |
# update-alternatives --list java
/usr/lib/jvm/jdk1.8.0_211/bin/java
# update-alternatives --list javac
/usr/lib/jvm/jdk1.8.0_211/bin/javac
# update-alternatives --list jar
/usr/lib/jvm/jdk1.8.0_211/bin/jar
# update-alternatives --list javadoc
/usr/lib/jvm/jdk1.8.0_211/bin/javadoc
#bazel build onos
INFO: Invocation ID: 6a2ae5ab-ebdb-4cc5-b3b6-11e1d376377d
ERROR: Analysis of target '//:onos' failed; build aborted: no such package '@k8s_model//jar': java.io.IOException:
thread interrupted
INFO: Elapsed time: 198.734s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (753 packages loaded, 12452 targets configured)
Fetching @k8s_model; fetching 160s
for
JavaCommand
in
java jar java2groovy javac javadoc javafxpackager javah javap javapackager javaws
do
sudo
update-alternatives --
install
/usr/bin/
$JavaCommand $JavaCommand
/root/jdk1.8.0_211/bin/
$JavaCommand 1
done
Only for java2groovy, following error was there:
update-alternatives: error: alternative path /root/jdk1.8.0_211/bin/java2groovy doesn't exist
To unsubscribe from this group and stop receiving emails from it, send an email to onos...@onosproject.org.
To post to this group, send email to onos...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-dev/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/c38bbb1b-f349-4992-8fda-8b80e08ff006%40onosproject.org.