cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1547
Views
0
Helpful
1
Replies

[javac] warning: [options] bootstrap class path not set - compiling cisco-ios ned

kiran kotari
Cisco Employee
Cisco Employee

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$

1 Accepted Solution

Accepted Solutions

kiran kotari
Cisco Employee
Cisco Employee

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

 

View solution in original post

1 Reply 1

kiran kotari
Cisco Employee
Cisco Employee

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