编译opencv3.1.0时报错unable to find a javc compiler
来源:互联网 发布:video.js flash 编辑:程序博客网 时间:2024/06/05 09:01
build.xml:278: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-1.8.0-openjdk-amd64"
怎么可能?明明我把$JAVA_HOME设为/usr/lib/jvm/jdk1.7.0_79的。
我到/usr/lib/jvm下面去看看,到底怎么回事。
root@wzy-pc:/usr/lib/jvm# ll总用量 28drwxr-xr-x 4 root root 4096 7月 13 18:01 ./drwxr-xr-x 165 root root 12288 7月 13 14:31 ../lrwxrwxrwx 1 root root 12 7月 13 18:01 default-java -> java-1.8.0-openjdk-amd64 //lrwxrwxrwx 1 root root 20 4月 23 16:26 java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64/-rw-r--r-- 1 root root 2600 4月 23 16:26 .java-1.8.0-openjdk-amd64.jinfodrwxr-xr-x 5 root root 4096 7月 13 18:00 java-8-openjdk-amd64/drwxr-xr-x 8 root root 4096 7月 11 14:00 jdk1.7.0_79/
原来有个default-java这个东西,赶集改掉:
sudo ln -s jdk1.7.0_79 default-java这样就好了
0 0
- 编译opencv3.1.0时报错unable to find a javc compiler
- Jsp运行时报错:“Unable to find a javac compiler ”
- Unable to find a javac compiler
- Unable to find a javac compiler
- Unable to find a javac compiler
- Unable to find a javac compiler,
- Unable to find a javac compiler---JBOSS
- Ant 编译时 Unable to find a javac compiler的解决(转) ,果断选择了MyEcplise
- Ant 编译时 Unable to find a javac compiler的解决(转)
- Unable to find a javac compiler错误之解决办法
- eclipse ant 的时候 Unable to find a javac compiler
- java 调 ant 出现 Unable to find a javac compiler
- web maven jetty Unable to find a javac compiler
- build.xml:278: Unable to find a javac compiler;
- build.xml:278: Unable to find a javac compiler;
- configure: error: Unable to find a workingC++ compiler
- CocoaPods导入第三方库时报错 [!] Unable to find a target
- Unable to find a javac compiler;Perhaps JAVA_HOME does not point to the JDK
- python装饰器
- 一年了---胡思乱想
- C++实现Linux下弹出U盘的方法
- 深入浅出Java多线程(1)-方法 join
- 2016码农谷全国大学生程序设计邀请赛(测试赛)
- 编译opencv3.1.0时报错unable to find a javc compiler
- 自定义ImageView实现拖动、旋转、缩放功能
- SVN版本控制与分支设置
- 92.UITableView键盘收起,点击UITableView空白处收起键盘
- 如何停止java线程
- 动态规划——物品无限的背包问题
- Java多线程sleep(),join(),interrupt(),wait(),notify()
- MVC+IOC框架下基于构造器注入的原理分析
- 浅谈C语言中"#ifndef/#define/#endif"的作用