libpq-dev python-dev
using sudo apt-get install
. and then easy_install psycopg2
libpq-dev python-dev
using sudo apt-get install
. and then easy_install psycopg2
sudo apt-get update
sudo apt-get install python-setuptools python-dev build-essential git-core -y
sudo easy_install pip
sudo pip install virtualenv
sudo pip install virtualenvwrapper
mkdir ~/virtualenvs
echo "export WORKON_HOME=~/virtualenvs" >> ~/.bashrc
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
echo "export PIP_VIRTUALENV_BASE=~/virtualenvs" >> ~/.bashrc
source ~/.bashrc
mkvirtualenv blog
deactivate
workon xxx
And finally if you want to remove the virtualenv altogether
rmvirtualenv blog
File -> New -> PyDev ProjectA window will popup asking about the project details. Alternatively if you have already created a project go to
Project -> PropertiesClick on "Click here to configure an interpreter no listed"
Click the New buttonA new window will popup
Interpreter name: VIRTUALENVNAME (or whatever you like)
Interpreter executable: ~.virtualenvs/VIRTUALENVNAME/bin/python (or your custom location to the virtualenv/bin/python)
#Java Environment Variable
JAVA_HOME=/usr/lib/jvm/jdk1.7.0/
export JAVA_HOME
JRE_HOME=/usr/lib/jvm/jdk1.7.0/jre
export JRE_HOME
PATH=$PATH:$JAVA_HOME:$JRE_HOME
export PATH
"gksudo gedit /etc/default/tomcat7"
and uncomment the line that sets the JAVA_HOME variable:compile
and provided
when artifact is builded as a JAR? If it was WAR, then I understand -
artifact would be attached or not to WEB-INF/lib. But in case of the JAR
it doesn't matter - dependencies aren't attached. They have to be on
classpath when their scope is compile
or provided
. I know that provided
dependencies aren't transitive - but is it only one difference?This is the default scope, used if none is specified. Compile dependencies are available in all classpaths of a project. Furthermore, those dependencies are propagated to dependent projects.
- compile
This is much like compile, but indicates you expect the JDK or a container to provide the dependency at runtime. For example, when building a web application for the Java Enterprise Edition, you would set the dependency on the Servlet API and related Java EE APIs to scope provided because the web container provides those classes. This scope is only available on the compilation and test classpath, and is not transitive.
- provided