Setting up/Install JDK in Ubuntu/Linux

Friendz first little look on Java and Ubuntu ( you are chosen best combination for development).

Java is a programming language originally developed by James Gosling at Sun Microsystems (which has since merged into Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. Java is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA), meaning that code that runs on one platform does not need to be recompiled to run on another. Java is currently one of the most popular programming languages in use, particularly for client-server web applications, with a reported 10 million users.

Ubuntu
 is a computer operating system based on the Debian Linux distribution and distributed as free and open-source software, using its own desktop environment. It is named after the Southern African philosophy of Ubuntu ("humanity towards others"). Ubuntu is designed primarily for use on personal computers, although a server edition also exists.

Start with Java-JDK, to get started with Java development on Linux(ubuntu ).

Here we need first to install JDK in ubuntu...
 

  • How can I install JDK latest or supporting version?
    First, open Terminal window from ubuntu which ll looks like black or transparent screen with white letters in that type
   

    javac
    rohantu@ubuntu:~$ javac 

  • If Java is already installed in your machine will give u
rohantu@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 JDK is not installed then will give you a list of Java-JDK's available for your Linux system.
  • 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 name_of_jdk

OR If u r trying to install manually click on <Get JDK> and try it out.

Just give your best.

Comments

Post a Comment

Popular posts from this blog

Set JAVA_HOME / PATH variables In Linux OS

SQLite Setup on Windows