How to get the path of the cache directory ?
Hi everyone,
I need to get the path of the cache directory to copy files into it (these files are security files that are necessary to encrypt data).
Maybe there is a jnlp.jar to have object that implements a method getCachePath() ? But I can't find it.
Any ideas ?. thanks.
you can find the cache location by finding the location of the jar file you are running from:
URL resource =
this.getClass().getClassLoader().getResource("testResource");
if (resource != null) {
String s = resource.toString();
if (s.startsWith("jar:")) {
int index = s.indexOf("!");
if (index > 4) {
String fileurl = s.substring(4,index);
if (fileurl.startswith("file:")) {
String path = fileurl.substring(5);
// now path is the path to the jar file in the cache containing the resource
/Dietz
Similar Messages
-
How to get file path in the form \\filer01\dir\index.htm
Hi,
after selecting a file using the FileChooser dialog, i would like to convert the file path like "H:\index.htm" into a form like "\\filer01\dir\index.htm".
On my system, the logical device name H:\ is mapped to a directory on a file server "filer01".
Is there any possibility to do this conversion?
Thanks in advance.hi,
i dont think java has a way of figuring out the actual mappings for a drive, you can retrive all drives that are present using the following code
File [] roots = File.listRoots();
then you could just iterate through the roots some of which may be mapped (but you cant figure out which is mapped and which is not).
So i guess the best way to do it is to have a Properties file with key,value mappings. for eg
h:\\, \\file01\dir\..
and then read the value from the Properties file, now if you want this for accessing a resource across the network you dont require to get the actual mapping, you can still use the mapped drive as you would use a unmapped drive.
hope this helpz
cheerz
ynkrish -
How to get the Path of the Current File using Import & Export File -Reg.
Dear all,
I have a mega (big) doubt. I have manually inserted the Figures from the figure folders. Now i need, fully automated. So How can I get the Figure path
Example :
PMString path = "E://development/Figures/";
now i checked, How many subFolders is there in "path", get the All Subfolders and check to the Article Name.
Example
Article Name == subFolder name then get the Files from the SubFolders(E://development/Figures/ChapterF/*.eps files").
now I paste the Document using to For Loop.
Please any one can suggest me, How can We get the Path in SDK.
Note:
Should I have to create the relative path by myself?
No method supplied in SDK to do this directly?
Please I need a help of this Query as soon as posible.
Thanks & Regards
T.R.Harihara SudhaNhttp://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp?frame=true
When a file is uploaded, the file name is also submitted. The path of the file is available only to the machine within the Local Machine security zone. The value property returns only the file name to machines outside the Local Machine security zone. See About URL Security Zones for more information on security zones.
i need to know on how to get the compelete path /directory of the filename
using <input type="file"> tag You can't. Its a security thing.
is there any other way to get an input file from a local host aside from <input type="file"> tag?No. Not using just html.
You could always go into activex components, but thats different again.
Cheers,
evnafets -
How to get the Path of the WebDynpro page
Hi All,
Can any one say how to get the path of the JSPDynPage ina Portlet in Portal Application.
Becoz i have to display that Page in another JSPDynPagee
Thanks in Advance....Hi,
You can call your JSPDynPage component by calling the URL as:
http://localhost:50000/irj/servlet/prt/portal/prtroot/YourApplicationName.YourComponentName
Check this:
Calling portal component
Greetings,
Praveen Gudapati
[Points are welcome for helpful answers] -
How to get the path of the image stored in sap??
Hi All
The problem is
While making an entry in standard there is a field called documents through which we attach our images in sap.
How to get the path of the image stored with the corresponding order so that the image can be displayed while we are creating a report.
I know how to upload the image while creating a report using docking control.
I am not able to get the path of the image stored...
Please Help
Thanks in advance..
PoojaI am not aware of exactly which tables are used for storing the attached doc. details, but we have worked in the similar requiremnent.
What you can do is .... before uploading the image to any order, try swich on the SQL trace ST05 and after upload switch off.
The log will display what are the tables involved while storing the image. And you can easily find out the image location. -
How to determine the path of the jar file cache of javawebstart?
Hello, I need to know how to determine where the java web start application
file jar cache is stored on windows system hard drive.
I would have launch of the inner processes
I have need to know the path of file jar .
example if my application is myAppliation.jar
in code generic class of myAppliation.jar i have the command runtime
String strCmd =
System.getProperties().getProperty("java.home") + "\\bin\\java" +
" -cp " +
System.getProperties().getProperty("java.class.path") + ";"
+ " anotherClass.class ";
Runtime.getRuntime().exec(strCmd);
the anotherClass.class has need
of the contained library in myAppliation.jar.Thanks i have tried this metod and function
java.net.URL resource = classLoader.getResource("myResource");
if (resource != null) {
String s = resource.toString();
if (s.startsWith("jar:")) {
int index = s.indexOf("!");
if (index > 4) {
String fileurl = s.substring(4, index);
if (fileurl.startsWith("file:")) {
String path = fileurl.substring(5);
// now path is the path to the jar file in the cache containing the resource
System.out.println("file jar: "+path);
} -
How do i get the path of the file selected for opening in JFileChooser
hi
I need to get the path of the file selected for opening or saving in the JFileChooser dialog box.Is there any method available.if not how do i get that?
Thanks and Regards
Saminathan.don't know if its the best/only way, but you could use the getSelectedFile() method in JFileChooser which returns a file and then use the getAbsolutePath() file method
-
How to get absolute path of a form within the Forms
Aslam o Alikum (Hi)
How to get absolute path of a form within the Forms 6i or 9i
For example
i am running a from "abc.fmx" from C:\myfolder directory
can i get the form path 'C:\myfolder' by calling any any function from "abc.fmb"There is no direct call that will always work. What you need to do is call get_application_property(current_form). This may have the full path in it, depending on if that path was defined when the form was launched. If there is no path, then you need to use TOOL_ENV.GETVAR to read the Forms<nn>PATH and the ORACLEPATH, parse those out into individual directories and then check for the FMX in each.
I already have some code to do all this for you see:
http://www.groundside.com/blog/content/DuncanMills/Oracle+Forms/?permalink=4A389E73AE26506826E9BED9155D2097.txt -
Difficult: Drag and Drop: how to get the path of the drag-source ??
I have to write an applet, after a "Drag&Drop"-Operation from a MS-Word-document to this applet, the applet is supposed to show the path of the document.
Does anyone know how to do this ?
thankshttp://forum.java.sun.com/thread.jsp?forum=4&thread=300727
-
How to get the path of the web-archive on the local filesystem?? [Apache]
Hello all,
Im running a webapplication on a tomcat server.
I need to find out the path of the web-archive on the local filesystem to access several files.
How can I do that with out having an instance of HttpRequest or whatever??Hello Bruce.
Please take a look at the following KBase article. It has a sample that will retrieve the folder structure for a specified Crystal Report template based on the instance name in the file store. The sample there can be easily modified so that it is based on a specific infoObject id.
1549728 - How to find the folder structure in the CMC of a report template based on the instance file name in the output file store.
The KBase can be retrieve from the following link:
https://bosap-support.wdf.sap.corp/sap/support/notes/1549728
Please note that the KBase article is retrieved through the Service MarketPlace.
I hope this helps.
Regards.
- Robert -
How to get the path of the image stored in DMS
Hi everyone..
My question is that I have attached an image with an order through transaction jha2n..
Now my requirement is to get the image in report..
I know the Logical id in ISM_l_ord class and physical id in ISM_P_Ord class.
I know that link between image and order is in SKWG_BREL.
But i am not able to get the path so that i can show the image in docking control.
pls help to retrive the path of the image stored...
Thanks
PoojaEpicMaster wrote:Now the problem is when I run the application through the .jar file in the dist/ directory the images simply wont load...
..lblProduct.setIcon(new ImageIcon("Resources.zip/res/Product.png"));
Now the problem is when I Build&Clean the whole project which creates a /dist directory containing the complied and execulatble .Jar file for the application AND a folder called "lib" which contains the Resource.Zip folderThe String based constructor to ImageIcon presumes the String represents a File path. File objects do not work with resources inside Jar or Zip archives, for those, you need an URL. Gain the URL using something like..
URL urlToImage = this.getClass().getResource("/res/Product.png"); -
I am using the window xp and firefox 6.
I watch the youtube videos online.
How I get that video from the catch folder and where that catch folder are situated in the window xp.''How can I view or retrieve a video from Firefox's cache''
To actually view/retrieve the file from the cache and its web address you can use
the "Cache Viewer" extension 32.8KB
* https://addons.mozilla.org/firefox/addon/cacheviewer/
* http://dmcritchie.mvps.org/firefox/firefox.htm#cacheviewer
For you to be able to view the cached file you would have had to have watched the entire file.
The latest version of the extension is 0.7b available in all versions you would have to override compatibility by any of these methods
* checking or pick up one of the xpi versions in the reader comments for Firefox 6.0
* extensions.checkCompatibility.6.0 set to False
*: http://kb.mozillazine.org/Extensions.checkCompatibility
* or with an extension "Add-on Compatibility Reporter" (84.0 KB) seems preferred in this group
*:https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
There are also extensions such as Video downloader 132.8 KB
* Download YouTube Videos + Flash Video Downloader / Download-Helper
*:https://addons.mozilla.org/firefox/addon/download-youtube-videos/
<br><small>Please mark "Solved" one answer that will best help others with a similar problem after you've tried several things.</small> -
Is it possible to personalize the size or the Path to your cache, history, temporary files and others? If it is, how can I do it?
I explain why. I am willing to create a RamDisk partition where I would place that kind of files with support to a bigger size, that way increasing my speed in Internet, and avoiding permanent writes in the SSD drive.
I am in i7 920 CPU, with system and programs working in a SSD drive and have 24 GB of RAM memory.Hi cor-el
In my Desktop I have the 9.0.1 version of Firefox.
I don’t know if it is or not the portable one, but I presume not.
I couldn’t follow your first link, because page is not found.
The second link takes me to somewhere where I have already been and that gives no solution to my question.
I don’t want to disable cache in Firefox. By the contrary, I want it enabled and I’m trying to make it more efficient, making it bigger and placed in a very fast driver (A RamDisk driver, which is a driver made from RAM memory).
'''''What I want is to configure by myself the place where the cache and other temporary files are placed in my computer, and their size.'''''
So, I repeat my first question. Is this possible?
Although I am Portuguese you don´t need to redirect me to Portuguese pages, cause I’m perfectly familiar with English. -
How to retrieve the path and the name of the destination file in a link annotation
Hi,
In C++:
How to retrieve the path and the name of the destination file in a link annotation and a Launch action.
Sample of my code:
//Determine if the annotation is a Link annotation
if (PDAnnotGetSubtype(annot) == ASAtomFromString("Link")) {
//Determine if the action is a Launch action
if (PDActionGetSubtype(action) == ASAtomFromString("Launch")) {
// What is the method ?
Regards
David GIn general, get the annotation as a Cos object and examine it, in
accordance with the PDF Reference.
Aandi Inston -
How to get maximal value from the data/class for show in Map legend
I make WAD report that using Map Web Item.
I devide to four (4) classes for legend (Generate_Breaks).
I want to change default value for the class by javascript and for this,
I need to get maximal value from the class.
How to get maximal value from the data/class.
please give me solution for my problem.
Many Thx
Eddy Utomouse this to get the following End_date
<?following-sibling::../END_DATE?>
Try this
<?for-each:/ROOT/ROW?>
==================
Current StartDate <?START_DATE?>
Current End Date <?END_DATE?>
Next Start Date <?following-sibling::ROW/END_DATE?>
Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
================
<?end for-each?>
o/p
==================
Current StartDate 01-01-1980
Current End Date 01-01-1988
Next Start Date 01-01-1990
Previous End Date
================
==================
Current StartDate 01-01-1988
Current End Date 01-01-1990
Next Start Date 01-01-2005
Previous End Date 01-01-1988
================
==================
Current StartDate 01-01-2000
Current End Date 01-01-2005
Next Start Date
Previous End Date 01
Maybe you are looking for
-
Looking for help-------"application failed to start because UID.mr.dll"
I've been having troubles with my Windows Vista PC recently and had to even system restore it just to be able to turn the computer on successfully, though it is still being buggy. However, I have been working these out and now all that remains is thi
-
Flash, Adobe Air, Time Machine, Safari not working with Snow Leopard
Really need some help with this. Did an archive and install of Leopard then installed Snow Leopard. No problems yet. 90% of Video sites would not work. Uninstalled and reinstalled Flash. Uninstalled ShockWave, could not reinstall with 10.6.1. Attempt
-
I downloaded the new Itune SW and all my music is gone. How do I recover it?
I downloaded the new Itune SW and it wiped out all my music, how do I recover?
-
Replication overwrites the AAA servers table in the secondary server
Hi, I've configured two ACS servers with replication but i noticed that when the replication takes place it overwrites the AAA servers table configured in the network configuration of the secondary server and that makes the next replication to fail b
-
Validation of select-option in module pool
Hi experts, I want to make a check according to a field on my dynpro 100. The dynpro has a subscreen area and there is a select-option which I want to check (so_matnr). According to the check I want to update my table control on the same dnypro. How