Posted on October 15, 2009 by Narayan
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 »
Filed under: Jar File | Tagged: create, from, how, jnlp, launcher, netbeans, start, web | Leave a Comment »
Posted on September 15, 2009 by Narayan
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:
- Java preinstalled (1.5 or greater)
- Windows Platform
- 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
- 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 »
Filed under: Jar File | Tagged: executable, files, how, jar, make | Leave a Comment »
Posted on September 15, 2009 by Narayan
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 »
Filed under: Jar File | Tagged: files, IDE, jar, merge, netbeans, single, to | Leave a Comment »
Posted on September 14, 2009 by Narayan
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
Filed under: Object Core | 8 Comments »
Posted on June 18, 2009 by Narayan
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 »
Filed under: Applet | Tagged: containers, height, java, JFrame, positon, programmer, setBounds, trick, width, x, y | Leave a Comment »
Posted on June 10, 2009 by Narayan
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
Filed under: Advance | Tagged: Bootable, java, JBS, JNode, JVM, System | Leave a Comment »
Posted on June 6, 2009 by Narayan
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 »
Filed under: Classes, Object Core | Tagged: java, key, properties, System, windows | 2 Comments »
Posted on May 28, 2009 by Narayan
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 »
Filed under: ABC of Object | Tagged: classpath, compile, java, path, value, variable | 7 Comments »