Articles in the Linux Java Category
setting java in .bashrc – linux
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export PATH=/opt/java/jdk1.x.x.x/bin:$PATH
To activate the changes you can just use the next command:
source .bashrc
after the above stepĀ logout and login.
Tomcat change the working folder in linux
Note : Before doing changes to the server.xml make a backup of it
mkdirs:
/home/username/tomcatwork
edit the server.xml file
admin@smartproteam$ vi /etc/tomcat6/server.xml
host name=”localhost” appbase=”/var/www/html/webapps/” workdir=”/home/username/tomcatwork” upackwars=”true” autodelpoy=”true” xmlvalidation=”false” xmlnamespaceaware=”false”
Installing and configuring the Eclipse java in Linux
Download the eclipse from below link
click here to download
tar xzf eclipse-jee-ganymede-SR2-linux-gtk.tar.gz
sudo mv eclipse /home/user_name/eclipse-jee
then cd to /home/user_name/eclipse-jee and change the ownership using belwo comamnd
sudo chown -R root:root eclipse
Sudo chmod -R +r eclipse
This is whats done in the original tutorial.
tar xzf wtp-all-in-one-sdk-1.0-linux-gtk.tar.gz
sudo mv eclipse /opt/eclipse cd /opt …


