Labels

Tuesday, September 6, 2011

स्वातंत्र्याचे डोहाळे

विजय 'सिंघ' सोबत असावे
'देवी'त 'प्रतिभा' उजळ दिसावे
घरट्यात 'चिमण्या' आणि
गुहेत फक्त 'वाघ' बसावे....

संघ परिवार सोबत असावेत
असा आपला भास आहे,
ओरडणे आत्ता सोपे आहे...
सत्तेकडून 'गळफास' आहे...

इन'कम' टक्स ची नोटीस
किती दिवस धरील वेठीस?
खूप दमछाक होईल आपणास
आपटून या गार'गोटीस'....

अण्णांना झेड सुरक्षा
हे बिगुल वाजू लागले
दिवसा, कोण?, कोण?, म्हणाल
'मौनमौनसिंग', स्वप्ने पाहत बसाल...

मोर्चे दिवसा ढवळ्या निघावेत
रात्री फक्त कातडे निघावेत...
कायदे कानून संसदेत
आव्हान मात्र कोर्टातच असावेत...

स्वातंत्र्याचे डोहाळे सुरु झाले
'राष्ट्रध्वज' रस्त्यावर उतरू लागले ...
- सचिन धनुरे (सगध)

Tuesday, July 26, 2011

Join Hands With India Against Corruption

The 20 more days to go... An indegeneous missile man Anna without arms in his hand will lead India towards corruption free .
Join hands with India against corruption. Not in your own fashoin but it needs to be integrated , intellectual, peaceful, trustworthy too. Ignited minds with ignited actions ,like the sparks will transform this movement to what it to be. What Anna had shown that was the battle.
We are on the path of winning whole war not the battle.
Let Us Ignite ,momentize, and magnetise the spirit for JAN LOKPAL BILL.

Tuesday, April 26, 2011

Thursday, April 21, 2011

Creating An Executable Jar File In Java

1 Create a java file.
२ compile it
३ Create a text file
which must contain the following code:
Manifest-version:१.०
Main-class:ClassName
note :The ClassName must be your class in which the main method is present for the application to start।
save the above file with the name manifest.MF or manifest.MFT
४ Create a jar file on command prompt as below
c:\your folder path>jar cvfm YourJarFileName manifest.MF *
c:\your folder path>jar cvfm YourJarFileName *.class
५ you will see the excutable jar file inside your folder.

Another way:::::
c:\programfiles\java\bin> jar cvf jarname.jar [classes/*/*.class/*]

To create a jar in which a module, submodules or some strucure is there we should go to root directory and then execute the jar command as

C:\Project\ABCProject\WEB-INF\classes>"C:\program files\bin\jar.exe" cvf jarname.jar [*/.class*.class]

YOu can find the class in jar as it is in the module directory.
To execute the stucture and jar should be in the dirctory structure as it is in the

Thursday, March 17, 2011

How to check your system is 32-bit or 64-bit

Method 1 Click Start, then click on Run or Start Search.
Type msinfo32.exe and then press Enter key.
In “System Information”, review the value for the System Type item:
For 32-bit editions of Windows, the value of the System Type item is x86-based PC.
For 64-bit editions of Windows, the value of the System Type item is x64-based PC.

Method 2
Click Start, click Run, type sysdm.cpl, and then click OK.
Click the General tab. The operating system appears as follows:
For a 64-bit version operating system: Microsoft Windows XP Professional x64 Edition Version appears under System.
For a 32-bit version operating system: Microsoft Windows XP Professional Version appears under System.

Method 3
Click Start, click Run, type winmsd.exe, and then click OK.
In the details pane, locate Processor under Item. Note the value.
If the value that corresponds to Processor starts with x86, the computer is running a 32-bit version of the Windows operating system.
If the value that corresponds to Processor starts with ia64 or AMD64, the computer is running a 64-bit version of the Windows operating system.

Wednesday, March 9, 2011

Java basics ---Using Java Utilities

Consider a file you have created in java named "Hello.java".
(1) Javac(java compiler) -
used for compiling java file and producing .class file.
--use following  command line at shell prompt
javac Hello.java
--if the code is correct it will compile and it will create "Hello.class" file.
--to see  what javac is doing behindthe scenes use following command line
javac -verbose Hello.java

(2) java(java Interpreter) -
to run a .class file or  runing an application
java Hello
It will give output of your source code.
Note: no extension is needed when  invoking the interpreter.
--to view execution details of comipled code use command line
java-prof Hello

--this will generateThis will generate a profile which shows

->methods called in order of decreasing frequency.
->how memory is used.
->list of variable  and bytes necessary to store them.

(3) javadoc(javadocumentation)- generate source code documention
--To generate this documentation, use thecommand line 
javadoc Hello.java
---it generates four html documents:

1.packages.html,
2.HelloWorld.html,
3.AllNames.html,
4.tree.html.


-All methods including the main method(function) are inside classes.
-Every java application must main method except Applets.
-Signature of main method is:

public static void main (String args[])


• For the main method
– public is the access specifier.
– static is the storage class.
– void is the return type.
 String args[] is an array of strings
(4) jdb(java debugger)-
Sometimes the program compiles but does not work as intended.

• In this situation the java debugger can be used.

– to generate full debugging info use the
javac -g Hello

--> to invoke the  debuggeruse command line.
jdb HelloWorld
--To set a breakpoint, use the command
 stop in HelloWorld.main
followed by run
-- >When the breakpoint is hit, type
list
-- >to see the code,Type
clear HelloWorld.main
followed by cont


Java programs are commonly of two types

– Applications
– Applets
• A piglet is to a pig as an applet is to an application.
• Applications are stand-alone Java programs.
• Applets are programs that require a browser torun. Applets are typically downloaded from the
Internet and run in an applet window within a browser.

Tuesday, February 1, 2011

Checking Java Version Installed In Your system

On MS-DOS
1. Run dialog box
2.command prompt
3.type java -version

On Microsoft windows
1.open Internet Explorer
2. tools menu--->Internet Options--->Advanced tab--->scroll the scroll bar to
check in the list containing java Version.

Thursday, January 27, 2011

Difference Between PATH And CLASSPATH In Java

PATH:-
It is a system variable used to tell to OS all locations of exec file.

Setting the PATH in Microsoft Windows XP
1) Right click on My Computer
2) Select Properties
3) Select the Advanced tab.
4) Click the Environment Variables button
5) In System Variable section path variable will be present. Click on edit for
modifying it .
enter variable name:CLASSPATH
value should be your path as c:/program files/java/bin and put semicolonat the end.
6) Click ok.
7) Click ok.
8) Click ok.


CLASSPATH:-

It is user management variable, which is used to tell locations of all jar/zip (classes) files to Compiler.



Both PATH and classpath are Environmental variable.

1) Right click on My Computer 4) Select the Advanced tab
2) Select Properties
3) Select the Advanced tab.


5) Click the Environment Variables button
6) Click the New button to create a CLASSPATH or the Edit button to edit an existing CLASSPATH
7) Enter CLASSPATH as the variable name
8) Enter the list of directories or jar files in your CLASSPATH as the variable value, using a semicolon to separate entries in your list.
9) Click OK.
10) Click OK.
11) Click OK.

Shortcuts about windows applications

access.cpl - Accessibility Options


hdwwiz.cpl - Add New Hardware Wizard


appwiz.cpl - dd/Remove Programs


timedate.cpl - Date and Time Properties


desk.cpl - Display Properties


inetcpl.cpl - Internet Properties


joy.cpl - Joystick Properties


main.cpl keboard - Keyboard Properties


main.cpl - Mouse Properties


ncpa.cpl - Network Connections


ncpl.cpl - Network Properties


telephon.cpl - Phone and Modem options


powercfg.cpl - Power Management


intl.cpl - Regional settings


mmsys.cpl sounds - Sound Properties


mmsys.cpl - Sounds and Audio Device Properties


sysdm.cpl - System Properties


nusrmgr.cpl - User settings


firewall.cpl - Firewall Settings (sp2)


wscui.cpl - Security Center (sp2)


Common Tasks with Run

Common Tasks with Run


Below are lists of commands you can type into the Run dialog:

Run Calculator                                                   calc

Run Command Prompt                                        cmd

Run Firefox (if installed)                                       firefox

Run Internet Explorer                                            iexplore

Run Microsoft Word (if installed)                          winword

Run Microsoft Excel (if installed)                          excel

Run Microsoft Outlook (if installed)                       outlook

Run Notepad                                                        notepad

Run Wordpad                                                      wordpad

Open Control Panel                                             control panel

Open Program Files folder                                 %programfiles%

Shutdown Windows                                          shutdown

Restart Windows                                              shutdown -r

Log Off Windows                                             logoff

Registry Editor                                                  regedit

Task Manager                                                  taskmgr

Windows Update Launches                              wupdmgr