cmake can't find java, but it's installed

后端 未结 1 1055
不思量自难忘°
不思量自难忘° 2021-01-26 23:34

I am trying to build a project with cmake. This project is using java among other things. The problem is that at the code

find_package(Java REQUIRED)


        
相关标签:
1条回答
  • 2021-01-27 00:02

    If you are using the linux os then you have to set the java home like export

    JAVA_HOME=/home/aqeel/development/jdk/jdk1.6.0_35   
    export PATH=$JAVA_HOME/bin:$PATH
    
    0 讨论(0)
提交回复
热议问题