background preloader

Basics

Facebook Twitter

Ubuntu java installer. Installing Java on Ubuntu systems. Introduction Java is a technology originally developed by Sun Microsystems, and acquired by Oracle. The following are the prevalent implementations: OpenJDK: The OpenJDK project is an open-source implementation of the Java SE Platform. This is the default version of Java that is provided from a supported Ubuntu repository. Currently, there are two versions available, openjdk-6 and openjdk-7. Oracle Java: Oracle Java is the proprietary, reference implementation for Java.

This is no longer currently available in a supported Ubuntu repository. OpenJDK Installation of Java Runtime Environment Install the openjdk-6-jre package using any installation method. Browser plugin Install the icedtea6-plugin package using any installation method. This plugin works with the browsers: Epiphany, Firefox and Opera. On Konqueror, go to Settings → Configure Konqueror... and from menu select Java & JavaScript, then tick Enable Java globally option. OpenJDK v6 & v7 SDK (Software Development Kit) Oracle Java 7. Why java has "String" type and not "string" When to use primitive and when reference types in Java.

OOP

Networking. Threading. How to Write Doc Comments for the Javadoc Tool. Javadoc Home Page This document describes the style guide, tag and image conventions we use in documentation comments for Java programs written at Java Software, Oracle. It does not rehash related material covered elsewhere: For reference material on Javadoc tags, see the Javadoc reference pages. For the required semantic content of documentation comments, see Requirements for Writing Java API Specifications. Contents Introduction Principles At Java Software, we have several guidelines that might make our documentation comments different than those of third party developers.

Thus, there are commonly two different ways to write doc comments -- as API specifications, or as programming guide documentation. Writing API Specifications Ideally, the Java API Specification comprises all assertions required to do a clean-room implementation of the Java Platform for "write once, run anywhere" -- such that any Java applet or application will run the same on any implementation.

Terminology javadoc getImage. Setting up Java with Windows CMD. This page is obsolete. This document instructs you on how to use the Windows Command Prompt with Java. These instructions are specialized to Windows 7, but are similar for Windows XP and Windows Vista. You will use the Java compiler javac to compile your Java programs and the Java interpreter java to run them. You should skip the first step if Java is already installed on your machine. Download and install the latest version of the Java Platform, Standard Edition Development Kit (Java SE 6 Update 27).

You will type commands in an application called the Command Prompt. Launch the command prompt via All Programs -> Accessories -> Command Prompt. You will use the javac command to convert your Java program into a form more amenable for execution on a computer. From the Command Prompt, navigate to the directory containing your .java files, say C:\introcs\hello, by typing the cd command below.

You will use the java command to execute your program. When I type, "java -version" I get an error. Java - Get the size of a 2D array.