• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting Java Home Environment in Ubuntu 16.04LTS  RSS feed

 
Ranch Hand
Posts: 48
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am trying to run the command './gradlew appengineDownloadSdk' to setup a project on ubuntu, I have my java installed and also set up my JAVA_HOME, but I don't know why I am getting this error.
Can someone please help me out and I will be very much thankful.
Thank you.
JavaRanchLinux.PNG
[Thumbnail for JavaRanchLinux.PNG]
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your PATH variable shou‍ld end /bin not /java
You would have JAVA_HOME set to /usr/lib/jvm/java-8-oracle
so the line in .bashrc to set the PATH would read
export PATH=$JAVA_HOME/bin:$PATH
Why are you using Java7? Why haven't you set Java8 as your default version?

Don't post screenshots; your attachment is invisible to me.
 
Kelvin Okornoe
Ranch Hand
Posts: 48
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Your PATH variable shou‍ld end /bin not /java
You would have JAVA_HOME set to /usr/lib/jvm/java-8-oracle
so the line in .bashrc to set the PATH would read
export PATH=$JAVA_HOME/bin:$PATH
Why are you using Java7? Why haven't you set Java8 as your default version?

Don't post screenshots; your attachment is invisible to me.


Okay I will try and use java8 as my default version
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!