Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to set path in Java 2011

View previous topic View next topic Go down

GMT + 3 Hours How to set path in Java 2011

Post by Vuhelper Sun May 29, 2011 6:43 pm

[You must be registered and logged in to see this image.]

METHOD -1
open a notepad
enter this
set path=(drivein which java is stored):\program files\java\jdk(version)\bin;
set classpath=(drivein which java is stored):\program files\java\jdk(version)\lib;

save as "path.bat" in the folder where u have strored the javafile

open cammand editor
go to drive and folder
enter "path" click ENTER

now u can execute ur program

METHOD-2
open cammand editor
go to drive and folder and enter
set path=(drivein which java is stored):\program files\java\jdk(version)\bin;

set classpath=(drivein which java is stored):\program files\java\jdk(version)\lib;

METHOD-3

go to MY COMPUTERS
-->properties
-->advanced
-->environment variables

now u have user variables and system variables
below user variables u have 3 options

new edit delete

click on new

a box with varaiable name and variable value gets opened
enter variable name as 'class path'
variable value as

(drivein which java is stored):\program files\java\jdk(version)\lib;

egs: C:\program files\Java\jdk1.6.0\lib;

enter variable name as 'path'
variable value as

(drive in which java is stored):\program files\java\jdk(version)\bin;

egs: C:\program files\Java\jdk1.6.0\bin;

METHOD-3 SETS PATH PERMANENTLY.
METHOD-1,METHOD-2 SHOULD BE DONE EVERY TIME U OPEN A COMMAND EDITOR
avatar
Vuhelper
Deep Bench
Deep Bench

Posts : 97
Join date : 2011-05-29

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum