Uncategorized

Ubuntu: Minti: Fix for Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar

Ran into this nasty error today while trying to build irccat.  Perhaps you’ll see something like this at the end of the output as well:

BUILD FAILED /home/lucas/irccat/build.xml:22: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to “/usr/lib/jvm/java-6-openjdk/jre”

Get the Sun JDK
$ sudo apt-get install sun-java6-jdk then run
$ sudo update-alternatives –config java and select the option that has the path /usr/lib/jvm/java-6-sun/jre/bin/java

No more errors.

Uncategorized

Editting .bashrc

In case you have just downloaded a package for maven from the internet, you need to add or define the paths below in the .bashrc file in your /home directory, if you don’t do this when you forexample logoff or restart your pc, those settings will be lost but can be run automatically at all those instances when you add the following in your forexample /home/k-joseph/.bashrc
Notice that your paths may change according to where your mvn path and java home

#definitions of maven3
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export M2_HOME=/home/k-joseph/myProgs/maven/apache-maven-3.0.4
export M2=$M2_HOME/bin
export MAVEN_OPTS=”-Xms256m -Xmx512m”
export PATH=$M2:$PATH

Uncategorized

INSTALLING MAVEN 3 IN LINUX UBUNTU, MINTI

$ sudo add-apt-repository ppa:natecarlson/maven3

And press Enter key one more time for confirmation of adding PPA. Then all we need is run this command:

$ sudo apt-get update &&
$ sudo apt-get install maven3

That’s all. Check that out, by running either, mvn3 –version or mvn –version to confirm

you should see some thing similar to: in terminal

$ mvn –version
Apache Maven 3.0.4 (r1232337; 2012-01-17 11:44:56+0300)
Maven home: /home/k-joseph/MyProgs/apache-maven-3.0.4
Java version: 1.6.0_27, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk-i386/jre
Default locale: en_US, platform encoding: UTF-8
OS name: “linux”, version: “3.2.0-17-generic-pae”, arch: “i386”, family: “unix”

Uncategorized

Not Found The requested URL /phpmyadmin was not found on this server. Apache/2.2.20 (Ubuntu) Server at localhost Port 80

LINUX-PHPMYADMIN/error

hi every one, i have installed phpmyadmin, when i put localhost/phpmyadmin in a browser i get error, Not Found The requested URL /phpmyadmin was not found on this server. Apache/2.2.20 (Ubuntu) Server at localhost Port 80 please help me fix this, thanks a lot ok,

That is quite very easy to solve, hope you have correctly installed all the packages neccessary on linux for running phpmyadmin,

good, if yes, now open terminal,

1) do you have a /etc/apache2/conf.d/phpmyadmin.conf file ?

2) k-joseph, ok, open a terminal and run : sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf && sudo service apache2 reload

3) that’s fine, you should be able to load phpmyadmin now

Uncategorized

Installing git and accessing it through the original command prompt on windows.

Download a git package, which may be zip file from any of your most trusted sites,

Unzip the zipped folder containing git[] = new {git bash, git gui}

Notice that by installing git via running the setup, you will have access to git bash which is a command prompt view of git where you can normally run git commands, while using that, i noticed that git bash complies to terminal commands mostly, which is good for linux users than window’s

Now if you want to be able to run your git commands from the cmd, on windows, you will need to add the path to git bin, for example: c:/program files/git/bin to your environmental variables, under path so that you can have something like:

git

C:\Program Files\java\jdk1.7.0\bin;C:\Program Files\maven\apache-maven-3.0.4\bin;C:\Program Files\Git\bin; in Variable name:

notice that C:\Program Files\java\jdk1.7.0\bin is path for my jdk, C:\Program Files\maven\apache-maven-3.0.4\bin is path for maven and finally C:\Program Files\Git\bin which is path for git, we separate the different paths with a semicolon, and put a semicolon at the end of the path so that we can keep on adding another path if any.