• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting Java Home Environment in Ubuntu 16.04LTS

 
Ranch Hand
Posts: 130
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 130
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic