Results 1 to 7 of 7
- 05-21-2009, 09:00 AM #1
Member
- Join Date
- Jun 2008
- Posts
- 12
- Rep Power
- 0
- 05-21-2009, 11:52 AM #2
Are you not able to set the java path or other application path?
Ramya:cool:
- 05-21-2009, 07:48 PM #3
Member
- Join Date
- Jun 2008
- Posts
- 12
- Rep Power
- 0
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
- 05-22-2009, 06:25 AM #4
Member
- Join Date
- Mar 2009
- Posts
- 25
- Rep Power
- 0
winkey + pause/break
select "advanced system settings"
select the advanced tab
select "enviroment variables"
- 07-17-2009, 05:57 AM #5
Member
- Join Date
- Jul 2009
- Posts
- 1
- Rep Power
- 0
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)
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 06:01 AM. Reason: complement
- 07-17-2009, 07:53 AM #6
Member
- Join Date
- Jul 2009
- Posts
- 5
- Rep Power
- 0
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
- 07-17-2009, 06:39 PM #7
Member
- Join Date
- Feb 2009
- Posts
- 92
- Rep Power
- 0
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
-
Error : Invalid path, \bin\javac.exe -classpath
By Ed in forum JCreatorReplies: 3Last Post: 08-14-2009, 12:57 PM -
Setting classpath in Vista
By dawiz001 in forum New To JavaReplies: 2Last Post: 02-25-2009, 05:00 PM -
Path and classpath
By nisheeth in forum New To JavaReplies: 2Last Post: 12-23-2008, 12:07 AM -
Jar Files on Vista
By Cazrin in forum Advanced JavaReplies: 4Last Post: 01-09-2008, 06:19 PM
Bookmarks