With multi-dimensional model as the core, let the factory digital transformation and upgrading “within reach”>>>
Causes and solutions of exception in thread “main” java.io.ioexception: java.lang.reflect.invocationtargeteexception exception when running with hbase-1.3.1 API
A phenomenon
Two reasons
Hbase-1.3.1 and JDK do not match. You can use jdk1.7 or JDK1.8
Three solutions: change the JDK version
(0) to install JDK1.8 or jdk1.7, please remember the installation path and use it later. For example, my installation path is:
(1) Click preferences in the window
(2) Add the root directory of JDK1.8 or jdk1.7
(3) Add JDK1.8 or jdk1.7
a)
B) Click directory to find the directory where you just installed JDK
C) after completing the previous step, click apply and close
(4) Modify the JDK of the current project
a)
b)
c)
d)
E) select JDK1.8 or jdk1.7
F) finally, click apply and close, and then run the program again, no problem