Results 1 to 7 of 7
  1. #1
    pradnya is offline Member
    Join Date
    Jun 2008
    Posts
    12
    Rep Power
    0

    Default how to set path and classpath on vista

    hi guys,
    I have windows vista business O.S on my laptop. I am unable to set up the path over there. Could you please anybosy helps me to overcome my problem ?

    Thx a mill.

    Pradnya..

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    843
    Rep Power
    6

    Default

    Are you not able to set the java path or other application path?
    Ramya:cool:

  3. #3
    pradnya is offline Member
    Join Date
    Jun 2008
    Posts
    12
    Rep Power
    0

    Default

    No NO.. I am able to set the path on console. But I want to set the path as enviroent variable (user variable) so that I dont need to set the path every tim eon console to run java programs. Like in XP, we can go to control panel-system then we can path and classpath, but I am unable to find those things in vista.

    Thanks,
    Pradnya

  4. #4
    Join Date
    Mar 2009
    Posts
    25
    Rep Power
    0

    Default

    winkey + pause/break
    select "advanced system settings"
    select the advanced tab
    select "enviroment variables"

  5. #5
    augustin is offline Member
    Join Date
    Jul 2009
    Posts
    1
    Rep Power
    0

    Default Problem with path names in Windows XP

    Hi

    I am not used to Windows as I mainly uses Linux but I have developed an addon to OO Writer that runs well in Linux. As it is written in JAVA thus I would like to make it available in Windows.
    I have trouble with the path of files
    I need to open a data files that is located inside the package.
    so I do :

    Java Code:
    XPackageInformationProvider xPackInfProv=PackageInformationProvider.get(m_xContext);
            stringURL=xPackInfProv.getPackageLocation("com.zoraldia.openoffice.Jilt");

    where com.zoraldia.Jilt is the name of the package.


    Then I have to complete the name with /description/resources/ as the files are located in that sub-sub-folder starting from the root of the package (\description\resources\ in Windows of course)
    Here is how I do it:

    File f=new File(stringURL);
    String sF=f.toString().substring(6);

    filePath = sF + File.separator + "description" + File.separator + "resources" + File.separator;
    It seems to give a good file name I use later in

    i = new BufferedReader(new InputStreamReader(new FileInputStream(dicFileName),"UTF-8"));
    where dicFileName=filePath+"edict_u" (edict-u being the file name)



    It works appparently in Windows 7 RC but in WindowsXP I get an exception with the following exception attached message
    D:\Documents%20and%20Settings\Shimakos\Application %20Data\OpenOffice.org\3\user\uno_packages\cache\u no_packages\64.tmp\Jilt.oxt\description\resources\ edict-u (the specified path cannot be found)
    The text between bracket is translated from French as the system is installed in French.

    However when I follow the path manually the file "edic_u" is present.
    May be it's due to the spaces in "Documents and Settings" and in "Application Data"?


    Thank you for help.
    Last edited by augustin; 07-17-2009 at 07:01 AM. Reason: complement

  6. #6
    lada314 is offline Member
    Join Date
    Jul 2009
    Posts
    5
    Rep Power
    0

    Default

    Steps:
    1. Right click the "MyComputer" icon or the item in the "start" menu
    2. select the "properties" item
    3. select the "advanced system settings" item listing in the pane
    4. switch to the "advanced" tab of "System properties"
    5. click the "environment variables" button
    6. set user variables or system variables for PATH and classpath

  7. #7
    rdtindsm is offline Member
    Join Date
    Feb 2009
    Posts
    92
    Rep Power
    0

    Default clarify

    I sometimes have problems because I misread instructions, or there is an assumption that I don't clearly understand. The instructions above are reasonably clear and accurate, BUT:

    I use Vista Home. This is not definitive, but "my computer" seems to have been replaced by Windows Explorer, and clicking the Propeties button didn't take me anywhere I wanted to go.

    In Home Vista, on the start menu, click "Computer" on the right side of the dialogue, under "recent items" and follow the above instructions.

Similar Threads

  1. Replies: 3
    Last Post: 08-14-2009, 01:57 PM
  2. Setting classpath in Vista
    By dawiz001 in forum New To Java
    Replies: 2
    Last Post: 02-25-2009, 06:00 PM
  3. Path and classpath
    By nisheeth in forum New To Java
    Replies: 2
    Last Post: 12-23-2008, 01:07 AM
  4. Jar Files on Vista
    By Cazrin in forum Advanced Java
    Replies: 4
    Last Post: 01-09-2008, 07:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •