Posts Tagged java

JNode (Open Source Project)

JNode is the open-source project for making a Java Platform OS(Operating System). This project had take a exclusive track of making all the software in Java in itself. As Java Virtual Machine(JVM) only accepts bytecode so the Compiler used to develop native binaries out. In this way, nearly the entire system is able of being written in the JAVA programming Language.

Ewout Prangsma firstly started work of developing the Java Bootable System(JBS) during 1995 .He had caught special feature of Java. In his mind he himself imagined a system that was not only a VM, but a complete runtime environment that does not need any other form of operating system. So is had to be a light weight and most important flexible system. The author was not satisfied with the C and assembly language required and head towards on to a new attempt called JBS2.

Jnode uses only two languages i.e. Java and Assembly Language. This system presently understands the FAT,NTFS,ext2 and ISO 9660 file system. It also has a GUI(Graphical User Interface) with USB peripherals and TCP/IP network protocol. It can be boot from CD or run in any popular emulator. It uses GNU Classpath Java Library and can run any Java Programs.

The latest version of JNode can be found in :

For more Detail :

Tags: , , , , ,

Some of the System Properties of Java

If we want to programmatically determine what version of the Java Runtime Environment

(JRE) is being used to execute a given application then, we can get the version via the following code illustrates:

Some of the java System Properties based on JDK 1.5 are given as follows:

Key Description of Associated Value

java.version Java Runtime Environment version
java.vendor Java Runtime Environment vendor
java.vendor.url Java vendor URL
java.home Java installation directory
java.vm.specification.version Java Virtual Machine specification version
java.vm.specification.vendor Java Virtual Machine specification vendor Java Virtual Machine specification name
java.vm.version Java Virtual Machine implementation version
java.vm.vendor Java Virtual Machine implementation vendor Java Virtual Machine implementation name
java.specification.version Java Runtime Environment specification version
java.specification.vendor Java Runtime Environment specification vendor Java Runtime Environment specification name
java.class.version Java class format version number
java.class.path Java class path
java.library.path List of paths to search when loading libraries Default temporary file path
java.compiler Name of JIT compiler to use
java.ext.dirs Path of extension directory or directories Operating system name
os.arch Operating system architecture
os.version Operating system version
file.separator File separator (/ on Unix)
path.separator Path separator (: on Unix)
line.separator Line separator (\n on Unix) User’s account name
user.home User’s home directory
user.dir User’s current working directory

The following table describes some of the most important system properties BASED on JDK 1.6

Key Description of Associated Value

"file.separator" Character that separates components of a file path. This is
/” on UNIX and “\” on
"java.class.path" Path used to find directories and JAR archives containing class files.
Elements of the class path are separated by a platform-specific character specified in the path.separator property.
"java.home" Installation directory for Java Runtime Environment (JRE)
"java.vendor" JRE vendor name
"java.vendor.url" JRE vender URL
"java.version" JRE version number
"line.separator" Sequence used by operating system to separate lines in
text files
"os.arch" Operating system architecture
"" Operating system name
"os.version" Operating system version
"path.separator" Path separator character used in java.class.path
"user.dir" User working directory
"user.home" User home directory
"" User account name

Tags: , , , ,

Java Software Development Kit Installation (Windows)

First of all if you have already java then uninstall that java and download Java Sdk from Sun Microsystem :
For download: jdk (Java Development Kit)
Then choose your appropriate Operation System and download and Install the *.EXE program

This is one of the tough point for beginner to install java Beginner.

Some of the steps to maintain Path of Java compiler are given as follows:

STEP 1: Right click on My Computer and Go properties.

STEP 2: Dialogue Box Appears (given in fig 1.1) Go to Advance Tab > Environment Variables..

Fig 1.1

Fig 1.1 A Dialogue Box of Advance Tab

STEP 3: Now in New Dialogue box (given in fig.1.2 ) You can click on New Tab for creating new variable Read the rest of this entry »

Tags: , , , , ,

Hardest Programming Language

In my view the toughest programming language is C# and JAVA cuz they have very vast library and their code are tough enough.

Post comment according to your opinion about this topic:

Tags: , , , , , ,

A simple Lucky draw Program

Here I’m going to show a simple program which picks random 6 character and assigns the point for that code no.

If it consists vowel letter then

a =1, e=2, i=3, o=4,e=5

and if no any vowel letter then it is awarded by 100 pts.

If you to download code then (CLICK HERE)

The program is given below:
//import directives for Input of Keyboard
import java.util.Scanner;

public class LuckyDraw
static String name;
static int point = 0;
char[] code;
String setOfAlphabet;

public LuckyDraw(){
code = new char[6];
setOfAlphabet = “abcdefghijklmnopqrstuvwxyz”;

//looping the random character
public void loop(){

//handling two side :
//one at loop
//other at assgning the char in char array;
int i=0;

//flag of the while loop
boolean flag = true;


int b = (int)(Math.random()* setOfAlphabet.length());
code[i] = setOfAlphabet.charAt(b);

//condition for stopping loop
if(i == 6) flag = false;


//assigns the points
public void points(){

System.out.print(“Your code No\t\t\t:”);

for(char a : code){
//assing the score
if(a == ‘a’)point += 1;
if(a == ‘e’)point += 2;
if(a == ‘i’)point += 3;
if(a == ‘o’)point += 4;
if(a == ‘u’)point += 5;
//exception if there are no any vowel letter
// then give 100 point
if(point == 0) point = 100;


System.out.printf(“Your have scored\t\t:%s pts\n”,point);


//main method
public static void main (String[] args)
//giving input of name
Scanner scan = new Scanner(;
System.out.print(“Please enter your name\t:”);
name =;

//invoking the methods to display
LuckyDraw lucky = new LuckyDraw();



Tags: , , , , , , ,