[collectd] collectd 5.7.2 install issue ERROR in ./org/collectd/java/GenericJMXConfConnection.java The import org.collectd.api cannot be resolved

Mahesh Subramanian mahesh.x.subramanian at oracle.com
Thu Aug 23 05:13:37 CEST 2018


Hi experts,

Running into an issue with "make all install" of collectd 5.7.2. on a 
Oracle Linux Server release 6.6 host.

# make all install

...

Making all in java
make[2]: Entering directory `/scratch/foo/collectd-5.7.2/bindings/java'
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/bin/javac -d "." 
"./org/collectd/api"/*.java
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/bin/javac -d "." 
"./org/collectd/java"/*.java
----------
1. ERROR in ./org/collectd/java/GenericJMXConfConnection.java (at line 43)
     import org.collectd.api.Collectd;
            ^^^^^^^^^^^^^^^^
The import org.collectd.api cannot be resolved
----------
2. ERROR in ./org/collectd/java/GenericJMXConfConnection.java (at line 44)
     import org.collectd.api.PluginData;
            ^^^^^^^^^^^^^^^^
The import org.collectd.api cannot be resolved
----------
3. ERROR in ./org/collectd/java/GenericJMXConfConnection.java (at line 45)
     import org.collectd.api.OConfigValue;
            ^^^^^^^^^^^^^^^^

.....

Tried to compile the source manually to take a closer look...All the 
sources are present in the same directory, so looks like the second 
javac command may be missing a "-cp ." to set the classpath to the 
current directory. For eg., below adhoc call goes through successfully:

/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/bin/javac -d "." 
"./org/collectd/java"/*.java -cp .

Do you think this is an install issue or am i missing something? Please 
let me know.

To work around this issue, i am able to get the install to succeed by 
first setting classpath through env variable like so:

# export CLASSPATH=.

# make all install

(now succeeds).

Thanks and Regards,

Mahesh




More information about the collectd mailing list