I don't remember so much.
You must do 2 steps:
1) Right click my computer, click Advance tab, then click Environment
Variables.
Next, look at the System variables pane, go to "path", click Edit and
past your link (i see yours is c:\...\jdk\...\bin) after the separator
2) Continue, click New and then type twice:
1st line: types CLASSPATH
2nd line: past link to your folder you want which stores Java file,
e.g: c\java\jdk\bin\Grade Book
Enjoy! :)
On Tue, Mar 24, 2009 at 1:19 PM, * ^ * <[email protected]> wrote:
>
> On Mar 24, 3:24 am, Minhaj Siddiqui <[email protected]> wrote:
> > Hi every one I am new to Java , I would like to know that I have set the
> path for java
> > c:\java\jdk\bin , and that works absolutely fine
> >
> > but the problem is that I would like to run from any path , can I do that
> ???
> If I still remember correctly, one way is to run java with classpath
> argument like below:
> c:>java -classpath class-file-directory file-name
> > for example
> >
> > if I add a folder at bin directory or any where can I run my java program
> from there and if now so how can i do that otherwise I need to create every
> time at bin and that would be not documented
> >
> > I would like to run java from this path too
> > c\java\jdk\bin\Grade Book
> > can I do that ???
> > Please do let me inform
> >
> > Thanks
> > Regards
> > Minhaj
> >
> > _________________________________________________________________
> > Show them the way! Add maps and directions to your party invites.
> http://www.microsoft.com/windows/windowslive/products/events.aspx
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---