Forum: Installation

Post: Unable to compile voltDB community edition on RHEL

Unable to compile voltDB community edition on RHEL
superdngo
Jun 19, 2015
I install the voltdb community by follow the steps from the link:

https://github.com/VoltDB/voltdb/wiki/Building-VoltDB

But got the compile error as :
[javac] /opt/voltdb/obj/release/clientsrc/org/voltcore/network/PicoNetwork.java:67: cannot find symbol
[javac] symbol : class StandardSocketOptions
[javac] location: package java.net
[javac] import java.net.StandardSocketOptions;
[javac] ^

. . .

[javac] /opt/voltdb/obj/release/clientsrc/com/google_voltpatches/common/collect/Maps.java:598: incompatible types; no instance(s) of
type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,V>
[javac] found : <K,V>java.util.TreeMap<K,V>
[javac] required: java.util.SortedMap<K,V>
[javac] SortedMap<K, V> onlyOnLeft = Maps.newTreeMap(comparator);
[javac] ^
. . .

[javac] /opt/voltdb/obj/release/clientsrc/org/voltdb/jdbc/JDBC4Statement.java:787: method does not override or implement a method from a supertype
[javac] @Override


it seem the java.net package is missing. any idea how to fix?


BTW: the following package are not installed::
python26, git-all, python-httplib2 // I install git instead of git-all


Below is the full compile log:

[root@localhost voltdb]# ant
Buildfile: build.xml

catalog:
[exec] Only in out/cppsrc/: catalog.cpp
[exec] Only in out/cppsrc/: catalog.h
[exec] Only in out/cppsrc/: catalogmap.h
[exec] Only in out/cppsrc/: catalogtype.cpp

. . .

compile_client:

stage_src:
[mkdir] Created dir: /opt/voltdb/obj/release/clientobj
[copy] Copying 703 files to /opt/voltdb/obj/release/clientsrc

compile:
[copy] Copying 1 file to /opt/voltdb/obj/release/clientobj
[javac] Compiling 703 source files to /opt/voltdb/obj/release/clientobj
[javac] /opt/voltdb/obj/release/clientsrc/com/google_voltpatches/common/cache/Striped64.java:293: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] private static final sun.misc.Unsafe UNSAFE;
[javac] ^

. . .

[javac] /opt/voltdb/obj/release/clientsrc/org/voltcore/utils/DBBPool.java:30: warning: sun.nio.ch.DirectBuffer is internal proprietary API and may be removed in a future release
[javac] import sun.nio.ch.DirectBuffer;
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/org/voltcore/network/PicoNetwork.java:67: cannot find symbol
[javac] symbol : class StandardSocketOptions
[javac] location: package java.net
[javac] import java.net.StandardSocketOptions;
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/org/voltcore/utils/Bits.java:33: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] public static final sun.misc.Unsafe unsafe;
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/org/voltcore/utils/Bits.java:35: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] private static sun.misc.Unsafe getUnsafe() {
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/org/voltdb/utils/PosixAdvise.java:23: warning: sun.misc.SharedSecrets is internal proprietary API and may be removed in a future release
[javac] import sun.misc.SharedSecrets;
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/com/google_voltpatches/common/collect/Maps.java:598: incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,V>
[javac] found : <K,V>java.util.TreeMap<K,V>
[javac] required: java.util.SortedMap<K,V>
[javac] SortedMap<K, V> onlyOnLeft = Maps.newTreeMap(comparator);
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/com/google_voltpatches/common/collect/Maps.java:599: incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,V>
[javac] found : <K,V>java.util.TreeMap<K,V>
[javac] required: java.util.SortedMap<K,V>
[javac] SortedMap<K, V> onlyOnRight = Maps.newTreeMap(comparator);
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/com/google_voltpatches/common/collect/Maps.java:601: incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,V>
[javac] found : <K,V>java.util.TreeMap<K,V>
[javac] required: java.util.SortedMap<K,V>
[javac] SortedMap<K, V> onBoth = Maps.newTreeMap(comparator);
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/com/google_voltpatches/common/collect/Maps.java:603: incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,com.google_voltpatches.common.collect.MapDifference.ValueDifference<V>>
[javac] found : <K,V>java.util.TreeMap<K,V>
[javac] required: java.util.SortedMap<K,com.google_voltpatches.common.collect.MapDifference.ValueDifference<V>>
[javac] Maps.newTreeMap(comparator);
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/com/google_voltpatches/common/cache/Striped64.java:318: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return sun.misc.Unsafe.getUnsafe();
[javac] ^

. . .

[javac] /opt/voltdb/obj/release/clientsrc/org/voltcore/utils/DBBPool.java:532: warning: sun.nio.ch.DirectBuffer is internal proprietary API and may be removed in a future release
[javac] final DirectBuffer dbuf = (DirectBuffer) buf;
[javac] ^
ase
[javac] final Cleaner cleaner = dbuf.cleaner();
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/org/voltcore/network/PicoNetwork.java:149: cannot find symbol
[javac] symbol : variable StandardSocketOptions
[javac] location: class org.voltcore.network.PicoNetwork
[javac] sc.setOption(StandardSocketOptions.TCP_NODELAY, true);
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/org/voltcore/utils/Bits.java:37: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return sun.misc.Unsafe.getUnsafe();
[javac] ^

. . .

[javac] /opt/voltdb/obj/release/clientsrc/org/voltdb/jdbc/JDBC4Statement.java:782: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/org/voltdb/jdbc/JDBC4Statement.java:787: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/org/voltdb/jdbc/JDBC4ResultSet.java:1776: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/org/voltdb/jdbc/JDBC4ResultSet.java:1781: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/org/voltdb/parser/SQLLexer.java:688: cannot find symbol
[javac] symbol : method group(java.lang.String)
[javac] location: class java.util.regex.Matcher
[javac] String parentType = matcher.group("parenttype");
[javac] ^
[javac] /opt/voltdb/obj/release/clientsrc/org/voltdb/parser/SQLLexer.java:689: cannot find symbol
[javac] symbol : method group(java.lang.String)
[javac] location: class java.util.regex.Matcher
[javac] String childType = matcher.group("childtype");
[javac] ^

. . .

[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 12 errors
[javac] 64 warnings

BUILD FAILED
/opt/voltdb/build.xml:953: The following error occurred while executing this line:
/opt/voltdb/build-client.xml:312: The following error occurred while executing this line:
/opt/voltdb/build-client.xml:31: Compile failed; see the compiler error output for details.

Total time: 14 seconds
bballard
Jun 22, 2015
What version of the JDK do you have? VoltDB Community Edition needs to be built using JDK7.
superdngo
Jun 26, 2015
Thanks bballard,
You're right, it's required Java version 7 to compile.
seiha
Jul 25, 2015
thank you


&#3619;&#3633;&#3610;&#3650;&#3611;&#3619;&#3650;&#3617;&#3594;&#3633;&#3656;&#3609;&#3614;&#3636;&#3648;&#3624;&#3625;&#3617;&#3634;&#3585;&#3617;&#3634;&#3618;&#3607;&#3633;&#3609;&#3607;&#3637; &#3652;&#3604;&#3657;&#3607;&#3637;&#3656;&#3609;&#3637;&#3656; royal1688 casino