04-17-2018 11:18 PM - edited 03-01-2019 04:08 AM
Hi Experts,
On compiling NED's of cisco-ios I got the following warning, it states that bootstrap class path is missing... Is there any way to set the path ?
make
vagrant@vagrant-ubuntu-trusty-64:~/ncs-4.4.1/packages/neds/cisco-ios/src$ m
/home/vagrant/ncs-4.4.1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.tailf.packages.ned.ios.namespaces --emit-java java/src/com/tailf/packages/ned/ios/namespaces/CiscoIos.java ncsc-out/modules/fxs/tailf-ned-cisco-ios.fxs
/home/vagrant/ncs-4.4.1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.tailf.packages.ned.ios.namespaces --emit-java java/src/com/tailf/packages/ned/ios/namespaces/CiscoIosStats.java ncsc-out/modules/fxs/tailf-ned-cisco-ios-stats.fxs
/home/vagrant/ncs-4.4.1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.tailf.packages.ned.ios.namespaces --emit-java java/src/com/tailf/packages/ned/ios/namespaces/CiscoIosId.java ncsc-out/modules/fxs/tailf-ned-cisco-ios-id.fxs
cd java && ant -q all
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] 1 warning
BUILD SUCCESSFUL
Total time: 1 second
cd ../netsim && make all
make[1]: Entering directory `/home/vagrant/ncs-4.4.1/packages/neds/cisco-ios/netsim'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vagrant/ncs-4.4.1/packages/neds/cisco-ios/netsim'
vagrant@vagrant-ubuntu-trusty-64:~/ncs-4.4.1/packages/neds/cisco-ios/src$
Solved! Go to Solution.
04-01-2021 06:38 AM - edited 04-01-2021 06:44 AM
we need to set the `java.properties` file which is located under `nso-<version>/etc/ncs` to the following
In my case I am using Java 1.8
ncs_java_source_ver=1.8 ncs_java_target_ver=1.8
restart ncs and ensure the echo $NCS_DIR returns the installed directory
If you are having error instead of warning then
cd java && ant -q all
[javac] warning: [options] bootstrap class path not set in conjunction with -source 6
[javac] error: Source option 6 is no longer supported. Use 7 or later.
[javac] error: Target option 6 is no longer supported. Use 7 or later.
you need to depreciate the ant from latest version to 1.9
04-01-2021 06:38 AM - edited 04-01-2021 06:44 AM
we need to set the `java.properties` file which is located under `nso-<version>/etc/ncs` to the following
In my case I am using Java 1.8
ncs_java_source_ver=1.8 ncs_java_target_ver=1.8
restart ncs and ensure the echo $NCS_DIR returns the installed directory
If you are having error instead of warning then
cd java && ant -q all
[javac] warning: [options] bootstrap class path not set in conjunction with -source 6
[javac] error: Source option 6 is no longer supported. Use 7 or later.
[javac] error: Target option 6 is no longer supported. Use 7 or later.
you need to depreciate the ant from latest version to 1.9
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide