java - cassandra 2.1.1 on Mac terminal -
i got next warnings, don't understand why. appears have java 7u71.
lngrdum-4157808:bin xyx$ ./cassandra -f cassandra 2.0 , later require java 7u25 or later. lngrdum-4157808:bin xyz$ java -version java version "1.7.0_71" java(tm) se runtime environment (build 1.7.0_71-b14) java hotspot(tm) 64-bit server vm (build 24.71-b01, mixed mode)
what don't know why says need upgrade, though appears java version date. know had similar issue recently, , resolved way:
install latest jre https://www.java.com/en/download. install latest version of java, not update default "java" used terminal/bash, , cassandra won't pick up.to create cassandra , terminal utilize newest version, add together latest install $path
. complicated few reasons. first, it's not obvious java installs itself, , isn't default /user/bin/java
location. turns out it's in /library/internet plug-ins/javaappletplugin.plugin/contents/home/bin
. second, there's space in directory, have careful that.
theoretically, should possible edit $path
editing /etc/paths. however, not able work (maybe space in directory?). instead, ended editing $path different way, shown here. line in .bash_profile
looks this:
export path="/library/internet plug-ins/javaappletplugin.plugin/contents/home/bin":$path
if have problem doing this, allow me know.
test you've done opening new terminal (this of import reload .bash_profile
), typing java -version
. displays newer version before. can double-check java beingness sourced right place, , you've modified $path
, typing which java
.
doing fixed cassandra. prepare yours, too.
java cassandra
No comments:
Post a Comment