Labels

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