Eager to Code, Enjoy to Debug ~ Embark into Each Stage with Your Heart

The BASEDIR environment variable is not defined correctly. This environment variable is needed to run this program

Posted by: Chyne on: January 12, 2009

After I had extracted the system installation file in the Linux environment, the startup script doesn’t work and it prompts out the following error message:

The BASEDIR environment variable is not defined correctly. This environment variable is needed to run this program

I tried to execute the setenv.sh and even change the permission file for the startup.sh but it still prompt out the same error message.

I made a research and found this URL which is quite helpful for me to find out the solution for the problem:-

http://www.ontopia.net/omnigator/models/topic_complete.jsp?tm=support-kb.ltm&id=basedir-not-set

Solution:
In the end, I change the permission files for all the .sh files in the /bin directory. I executed this command: chmod 777 *.sh but I guessed it’s not sufficient enough to resolve the problem. I think the most important is the .jar file in the directory. Anyway, to make it executable, I changed all the permission files in the /bin directory. Some users prefer to use 775 instead of 777 due to the security purpose. For this reason, I believe that the startup script needs to execute all the files in the directory to set up the environment path to startup the system.

5 Responses to "The BASEDIR environment variable is not defined correctly. This environment variable is needed to run this program"

Thank you very much chyne. It works.

It works buddy..:-)

Thank you very much Chyne!! It helped me a lot!! I was really in problem because of this issue.Now your solution worked to me as well!!

Oh!!
Development with out blogs seems impossible!!!

Thanks, it did the trick.

Leave a Reply

Friday’s Java Snack


In Java, "thread" means:

  • An instance of class java.lang.Thread
  • A thread of execution


An instance of Thread is just an object that has variables and methods, and lives and dies on the heap.
 
A thread of execution is an individual process that has its own call stack (one thread per call stack).

 

January 2009
M T W T F S S
« Dec   Feb »
 1234
567891011
12131415161718
19202122232425
262728293031  

Archives


StatCounter

free hit counters