Viewing and Changine Settings

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • news

    Viewing and Changine Settings

    I want to see my settings for java. How do I see the settings using set on
    DOS screen??

    My problem is when I type in set and nothing shows. I go to the directly
    where java.exe is located and type set and nothing.

    How do I change the settings like CLASSPATH

    Thanks in advance



  • Chris Smith

    #2
    Re: Viewing and Changine Settings

    news wrote:[color=blue]
    > I want to see my settings for java. How do I see the settings using set on
    > DOS screen??
    >
    > My problem is when I type in set and nothing shows. I go to the directly
    > where java.exe is located and type set and nothing.
    >
    > How do I change the settings like CLASSPATH[/color]

    CLASSPATH is an environment variable. In all versions of Windows I've
    checked, it can be set through the "System" applet in the control panel.
    On my system (XP Home), it's on the advanced tab, reached with a button
    labeled "Environmen t Variables". That location might be a bit different
    depending on your exact operating system.

    I don't know what else you mean by "settings for Java". The classpath
    is the only environment variable I'm aware of that can affect the JVM.
    Some other settings are controlled by command line options on the
    interpreter, and Java PlugIn properties are configured with their own
    control panel applet on Windows... so there's a few more places to look
    for other settings besides the classpath.

    --

    The Easiest Way to Train Anyone... Anywhere.

    Chris Smith - Lead Software Developer/Technical Trainer
    MindIQ Corporation

    Comment

    • Anthony Borla

      #3
      [OT] Re: Viewing and Changing Settings

      "news" <[email protected]> wrote in message
      news:ezLCb.1561 $D66.980@nwrdny 03.gnilink.net. ..[color=blue]
      >
      > I want to see my settings for java. How do I see the settings
      > using set on DOS screen??
      >[/color]

      Type:

      set

      and press <ENTER>; you should find a number of items displayed:

      PATH=...
      CLASSPATH=...
      [color=blue]
      >
      > My problem is when I type in set and nothing shows.
      > I go to the directly where java.exe is located and type
      > set and nothing.
      >[/color]

      I find this a highly unusual situation. Ordinarily, you would have at least
      a couple of environment variables displayed.
      [color=blue]
      >
      > How do I change the settings like CLASSPATH
      >[/color]

      To create a CLASSPATH enviorment variable where none exists, do:

      set CLASSPATH=C:\XY Z;D:\ABC

      and press <ENTER>.

      To add information to an existing CLASSPATH [you can choose whether to place
      it before or after existing data] do:

      :: Before existing data
      set CLASSPATH=%clas spath%;C:\XYZ;D :\ABC

      or:

      :: After existing data
      set CLASSPATH=C:\XY Z;D:\ABC;%class path%

      and press <ENTER>.

      Note, though, this changes the settings for the current console window [i.e.
      DOS Window] only - the settings are lost once you close it. For a more
      permanent solution:

      * Edit 'autoexec.bat' file to include the above statements - this
      applies to older Windows versions

      * Use the System applet in the Control Panel to edit Enviromnent
      Variables [for W2K, and XP]

      I hope this helps.

      Anthony Borla


      Comment

      Working...