JNLP on Desktop and Start Menu with Icon

As you have already heard about the extension (*.jnlp) which had made the java developer more easier to present their programs with a single file..

Actually the jnlp extension is a ext. of Sun Java. We can simply present the jnlp in both web(browser) and desktop .

The Web Start mechanism has made this jnlp to run at the top of Java 2 platform.

In this blog I’m going to show how can we make our program to display as a icon at Desktop and Start Menu.

As i’m just going through a sample jnlp file which is being resulted by NetBeans..see (how  to create jnlp from NetBeans).

Ok here is our JNLP code: Read more »

How to make Jar files and executable

Actually the jar files are the bundled file of all the classes, images and other resources which are need for running java application. Most of the JAR files are used for J2ME(Mirco Edition) purpose, i mean at Mobile Devices where java is compatible.
The JAR files can be easily made from numerous of processes but among them i’m going to demonstrate here through IDE NetBeans for creating JAR file and executable.

For making JAR files you must have following requirements:

  1. Java preinstalled  (1.5 or greater)
  2. Windows Platform
  3. One Manual Project which contains Swing Component or Applet

Ok now let’s begin to Bundle our Files in JAR format.

Firstly run NetBeans and make one Project which displays GUI or just download a Sample Project for NetBeans

  1. LoginPanel

Now Open the project which u downloaded or just use your own Project.

Press Ctrl+1 for enabling Project Tab and you can see your project there: Read more »

Merging JAR files to single JAR via IDE NetBeans 6.7

Actually I am going to  show the simple way to merge many jar files to a single jar file .

Requirements:

  • Firstly We need the NetBeans6.x.x
  • JDK 1.6

Here we’ll create a sample Project which is included in NetBeans.

I ‘m using NetBeans 6.7.1 and now i am starting my demonstration.

Let’s make a project File>New Project> …. and as your requirement you can make a project but there

is need of some extra jar files . If you are not familiar with adding jar files to Projects then , Read more »

Operator Precedence in Java

The Java Programming language has it’s operator which is similar to other programming language like C,C++ as well.
All the operator has it’s own rule . So while using these operator we must know how the operators are being compiled by the java
Operator Precedence of Java are given below:

Operator Precedence

Operator Precedence

Trick of Positioning the Containers of JFrame

Many developers want their own Layout Manager with user-defined so JAVA has provided a separate method for the every container of JFrame Component and that method is setBounds(). This method helps the developers to position the container as per their need .

About SetBounds() method:

This method consists four parameter

  Syntax:
     xxx.setBounds(int x_axis, int y_axis, int width, int height);
 Read more »

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 :

http://www.jnode.org/download_latest

For more Detail : http://www.jnode.org

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:

//IN WINDOWS PLATFORM

String ver = System.getProperty("java.version"));
System.out.println("This program is running under JRE version " + ver);

if (ver.startsWith("1.5")) {
// Pseudocode.
do something appropriate for newer versions of Java ...
}

else {
// Pseudocode.

do something the pre-5.0 way ...
} Read more »

Java Software Development Kit Installation

First of all if you have already java then uninstall that java and download Java Sdk from Sun Microsystem :
For download: jdk 1.6
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. Read more »