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 list of items from Java other wise as shown below -:


------------------------------------------------------------------------------------------------------------------------

jassi@ubuntu:~$ javac

Usage: javac

where possible options include:

-g Generate all debugging info

-g:none Generate no debugging info

-g:{lines,vars,source} Generate only some debugging info

-nowarn Generate no warnings

-verbose Output messages about what the compiler is doing

-deprecation Output source locations where deprecated APIs are used

-classpath Specify where to find user class files and annotation processors

-cp Specify where to find user class files and annotation processors

-sourcepath Specify where to find input source files

-bootclasspath Override location of bootstrap class files

-extdirs Override location of installed extensions

-endorseddirs Override location of endorsed standards path

-proc:{none,only} Control whether annotation processing and/or compilation is done.

-processor [,,...] Names of the annotation processors to run; bypasses default discovery process

-processorpath Specify where to find annotation processors

-d Specify where to place generated class files

-s Specify where to place generated source files

-implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files

-encoding Specify character encoding used by source files

-source Provide source compatibility with specified release

-target Generate class files for specific VM version

-version Version information

-help Print a synopsis of standard options

-Akey[=value] Options to pass to annotation processors

-X Print a synopsis of nonstandard options

-J Pass directly to the runtime system

-Werror Terminate compilation if warnings occur

@ Read options and filenames from file

------------------------------------------------------------------------------------------------------------------------


If java is not installed then you will get a list of Java-JDK's available for your Linux .
Just follow the instruction provided in your terminal on how to install the Java JDK .

The command to install Java JDK will be somewhat like


sudo apt-get install


------------------------------------------------------------------------------------------------------------------------

→ is the name of the Java JDK listed in the list which will appear .

**I am not providing the list because it will depend on your Linux machine . I know you guys are really smart that you will indentify the list :-] , thats why you are using Linux instead of Windows (It really sucks ...).




Comments

Popular posts from this blog

What happened to the blog ?

Why I love to be a programmer ?