Eclipse doesn't use the path set in .bashrc
I can think of two options for this problem:
- write a small script, export those vars or source your .bashrc before you start your eclipse.
- define those variables in /etc/environment. then they are not user-scope any more.
I prefer the 1st option.
How to configure JDK environment path not JRE?
Just run update-alternatives --config java
this should gives you the path to the java home.
After this you can set your JAVA_HOME path simply. Just edit your ~/.bashrc
and add this line export JAVA_HOME=<path_given_by_the_command above>
. After this reload your bashrc.
How to export PATH for sublime build tool?
Ok I got it:
The problem is that the LD_LIBRARY_PATH variable was missing. I only exported it in .bashrc
.
When I add
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64\
${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
to ~/.profile
it's working (don't forget to restart).
It also works if I start sublime from terminal with subl
which passes all the variables.
How do you set java version in windows git bash?
You don't set the java version. You are seeking the $PATH
(bash) and the %PATH%
(Windows/DOS/cmd.exe) environment variables. When you run the command java -version
, the shell searches the directories on the $PATH
to locate the java
program and run it with the given arguments. If you get different results in different shells then that means you have different PATHs such that a different installation of Java is found.
mvn' is not recognized as an internal or external command, operable program or batch file
My problem solved, path
didn't resolve %M2%
. When i added location of maven-bin in the path instead of %M2%
after that commands works.
I would like to thanks to all those who try to solve the problem
Related Topics
How to Add an Icon to The Bash Prompt
Install Library in Home Directory
Identify Program That Connects to a Unix Domain Socket
Linux: How to Debug a Sigsegv? How to Trace The Error Source
Is There a Libc in Kernel Space
How to Get Yesterday and Day Before Yesterday in Linux
Limit Top Command to Only Display Top X Processes on Command Line
Splitting Bulk Text File Every N Line
Expect, Interact and Then Again Expect
How to Redirect Ip Address Using Iptables
How to Curl Using Ipv6 Address
How to Block Push to Master Branch on Remote
Kafka Console Consumer with Kerberos Authentication
Vagrant Ssh -C and Keeping a Background Process Running After Connection Closed