Wednesday, December 22, 2010

Java Vs JavaScript

1) javaScript dos not have any graphics capability only handle some function such as image ,table etc
2)javaScript do not allow writing and reading of file
3) javaScript not support any type of networking
4) javaScript doesn't support multithreading
5) javaScript based on object-base but java support object-oriented(class based)

JavaScript

1)JavaScript is a script based programing language developed by NetScape.
2) it support the development of both client
and server side component of web Application .
3)javaScript is a case Sensitive scripting language
4) programming language syntex similar with C ,C++ and Java language
5)original name of JavaScript is LiveScript
6) javaScript are not a part of java Language
7)JavaScript can control browser behavior and content
8) JavaScript capabilities is it replace image on a page without reload the page
9) JavaScript are platform independent

Tuesday, December 21, 2010

Web Archives file (WAR FILE)

A WAR file means Web application Archive file i.e all the component and file are used to make web page to make
together into a JAR file used to distribute
as a collection of jsp, servlets and Java class,it XML files, tag libraries, static Web resources are stored. etc . to take together into a
single unit for used to build a Web application.one major disadvantage to make war file they are not update at run time .
that why we move to more advanced technology to create file i.e EAR FILE

Monday, December 20, 2010

Method how to extract JAR FILE ?

Step:: type command

jar -xf jarfile.jar

option ::
1) c option for create a JAR file.
2) f option for that you want the output to go to a file


Note ::
The c and f options can appear any order, but there no space between them.

Method How To Create JAR(Java Archive) FILE?

JAR files a way of making collection of class into a single unit i.e package of .class file . JAR files also use
compression,
step 1 :: Go directory your classes and type a command :-

jar -cf jarFile.jar *.class

Example :: jar -cf jarFile .\java soft\jakarta-struts\*.class

option ::
1) c option for create a JAR file.
2) f option for that you want the output to go to a file