Skip to main content

Posts

Showing posts from October 11, 2009

Install Nvidia Driver in Ubuntu

Nvidia will be restricted in most ubuntu Versions. This is also a hurdle for people who like Desktop Effects. Installing Nvidia is not a big task Just requires some series of steps to do. Procedure: 1. Download the required driver from Nvidia website. Due to Nvidia's UDA , you cant get drivers exactly for your Video card. 2. Ctrl + Alt + F1. 3. Execute sudo /etc/init.d/gdm stop to terminate X-Server. 4. You will be dropped to a non-graphic console. 5. Login to the console and navigate to the Folder where you downloaded the Nvidia Driver. 6. Type sh .run 7. It will guide you to an interactive installation process. 8. In some cases, the installer will opt for compiling a version for your device when it fails to find a kernel module. Accept the offer in such case. 9. After the installation is complete, reboot your pc with sudo reboot .

Launching Ant Inside Java Program

Most of the time, we need to embed Ant in a java program. So if you need to call Ant task inside Java program, this piece of code will do it. Required Jars: Ant.jar Ant-Launcher.jar tools.jar * you can get the jar file by just using the class org.apache.tools.ant.launch.Launche through this Jar finder Website Source Code: import org.apache.tools.ant.launch.Launcher; public class LaunchAnt { public static void main(String args[]) { String[] parameters = new String[2]; parameters[0]="-buildfile"; parameters[1] = "build.xml"; Launcher.main(parameters); } } Note: tools.jar will be available at the location C:\ProgramFiles\ - Windows usr/lib/jvm/ - Linux Install Java in Linux

Installing Java in Ubuntu

Installing Java in Ubuntu is just a piece of Cake. You need not visit any Website to download some file and install. Just follow the procedure to do Complete it. 1. Connect to internet. 2. Open Terminal Application -> Accessories -> Terminal (or) alt+f2 and type gnome-terminal and press Enter 3. Execute sudo apt-get update 4. Execute sudo apt-get install sun-java6-sdk 5. Java will be installed. 6. .Open terminal and type java --version to confirm java installation.

Get Jar Files

Jar files are the base for developers. The most irritating thing for a developer is " ClassNotFoundException " and " NoClassDefFoundExcpetion ". The problem finally has a solution here. Visit the Site below and download your jar. Just mention the class name , that is enough for their engine. Example: Enter the search in this format, and you will be given your required jar. org.apache.maven. or org/apache/maven/ FIND JAR