How to set path in Java 2011
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1 • Share
How to set path in Java 2011
[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
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
Vuhelper- Deep Bench
- Posts : 97
Join date : 2011-05-29
Similar topics
» Cookie in java 2011
» DML Statements in java 2011
» what are classes in java 2011 ?
» Association in java 2011
» paintComponent in java 2011
» DML Statements in java 2011
» what are classes in java 2011 ?
» Association in java 2011
» paintComponent in java 2011
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Mon Nov 25, 2024 6:33 am by ali001
» Ellipsis News: Stay Informed
Sat Nov 23, 2024 2:01 pm by ali001
» Goorevi App
Thu Nov 21, 2024 6:50 pm by ali001
» AMERICA EARNS! - Gift Card App
Mon Nov 18, 2024 11:07 am by ali001
» Kanba - Manage your Tasks
Thu Nov 14, 2024 12:21 pm by ali001
» Hemangiom'App
Tue Nov 05, 2024 11:25 am by ali001
» MindfulMe - Mental Health App
Mon Nov 04, 2024 10:50 am by ali001
» Learn Candlestick Patterns
Tue Oct 15, 2024 5:51 am by ali001
» Woh Pagal Si Episode 52 to 62 - Top Pakistani Drama
Sat Sep 21, 2024 6:26 pm by Mir Emmad Ali Khan Domki