Posts

Showing posts from January, 2012

Setting Up Java 7 , Netbeans , MySQL and a JDBC Connection in Linux -3

Image
Hi friends, I think this will be the last post on Setting Up Java , Netbeans , MySQL and JDBC Connection . The only part you are left with is setting up your JDBC connection . So what things you need to setup your JDBC connection -: 1 . MySQL Connector/J ( http://www.mysql.com/downloads/connector/j/ ) Download either or the .zip or .tar.gz file because both are platform independent files . After downloading it extract it and and find the mysql-connector.bin.jar . 2 . Now you have to copy this file in the Java directory . Here is a command to copy from your download folder to your jvm directory ----------------------------------------------------------------------------------------------------------------------- sudo cp /home/Downloads/jassi/mysql-connector-java-5.1.6-bin.jar /usr/lib/jvm/java-6-openjdk/jre/lib/ext/mysql-connector-java-5.1.6-bin.jar ----------------------------------------------------------------------------------------------------------------------- In this

Setting Up Java 7 , Netbeans , MySQL and a JDBC Connection in Linux -2

Image
Hi folks, this is the next part of setting up your Java environment on your cool Linux Machines . I hope you were successful in setting up Java . Now in this tutorial I am gonna tell you how install the MySQL client , server and admin . Yes you will install three things in just one post . But don't worry , this post is not lengthy at all . You just have to write three commands in your terminal and tadaaaa you will be successful in setting up MySQL . Just go to terminal and write -: ------------------------------------------------------------------------------------------------------------------------ sudo apt-get install mysql-server -------------------------------------------------------------------------- ---------------------------------------------- You will be prompted in the terminal once or twice to answer yes/no and enter the password for ur MySQL . Just enter any password you want but tell me because then I my try that password on you email id to hack your account (jus

Setting Up Java , Netbeans , MySQL and a JDBC Connection in Linux - 1

Hi everyone in this post I am gonna tell you , how you can setup a complete environment for Java Desktop and Web development in Ubuntu Linux with a complete Database Connectivity . As I am also a beginner in Java and Linux if anyone find any mistake in this blog feel free to correct it and let me know and simran5590@gmail.com . I will be more than happy to correct my self next time when I am using the same thing . First of all u need a Java-JDK to get started with Java development . In Linux there are mainly 2 option by which u can install JDK . Its either by downloading the Sun Java from there website (I think my audience is enough smart to google the link yourself :-] ) or the Open-JDK which also provides the essential Java Development environment in Linux . Following are the steps u have to follow to install Java in your Linux Machine (I am telling about Open JDK) . 1 . Type javac in your terminal . If Java is already installed in your machine will get a l