Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9038739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:33:38+00:00 2026-06-16T09:33:38+00:00

I have the following on my .bashrc : JAVA_HOME=/usr/bin/java GRAILS_HOME=/root/grails PATH=$PATH:$JAVA_HOME:$GRAILS_HOME/bin export JAVA_HOME export

  • 0

I have the following on my .bashrc:

JAVA_HOME="/usr/bin/java"
GRAILS_HOME="/root/grails"
PATH=$PATH:$JAVA_HOME:$GRAILS_HOME/bin

export JAVA_HOME
export GRAILS_HOME
export PATH

However, when I execute > grails in the terminal, I get:

root@localhost:~# grails
grails: JAVA_HOME is not a directory: /usr/bin/java

when I tried to replace to

JAVA_HOME="/usr/share/java"

then the outcome is:

root@localhost:~# grails
grails: JAVA_HOME is not defined correctly; can not execute: /usr/share/java/bin/java

what am I missing in there?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T09:33:39+00:00Added an answer on June 16, 2026 at 9:33 am

    I would expect JAVA_HOME to contain the bin directory containing java (and others).

    So clearly those two options you’ve selected are not correct.

    Looking at my Ubuntu installation, I have numerous Java packages under /usr/lib/jvm, and I would select an appropriate one there e.g.

    export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following entry in my .bashrc : PATH=$PATH:/home/user/abc/bin;export PATH; # ADDED BY
In my /etc/bash.bashrc file, I have following: export SYNCTOOL=/root/Desktop/gb alias synctest='python $SYNCTOOL/App.py' In App.py:
I have the following escript: #!/usr/bin/env escript %%! -name test_starter@127.0.0.1 main(_) -> NodeName =
In my .bashrc file I have included the following: GIT_PS1_SHOWDIRTYSTATE=true GIT_PS1_SHOWUNTRACKEDFILES=true GIT_PS1_SHOWUPSTREAM=verbose git export
So currently I have included the following in my .bashrc file. export RUBYLIB=/home/git/project/app/helpers I
I have the following line in my .bashrc: APP_HOME=/home/user/app/1.0;export APP_HOME; ## ADDED BY INSTALLER
I have a .bashrc file with the following commands: PS1=... export LC_ALL=... What are
I have the following in a file which is sourced both by .bashrc and
I have two users in Fedora: Wani root (quite obvious!) My contents of .bashrc
I have the following problem: I am using Tomcat 6.0.32 and Java JDK 6.0_26.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.