File storing problem.

hi,
i create one project using netbeans and also, i create one jar file for it(Car.jar)
In my project, i retrive information from remote device using snmp and store it in text file and show the path using dialog box as follows,
File file = new File("LOGFILE/Survey.log");                      
                file = file.getAbsoluteFile(); 
                javax.swing.JOptionPane.showMessageDialog(CarFile.CarMain.CarMain, "The LOG FILE is stored at => \t \t"+file);In windows, where we put the project and LOGFILE folder, the log file stored and show the path in dialog box.
But, in linux, when i try to get the information from remote device and store it in log file,
it automatically stored in root.
it doen't stored where i put the project jar and log file (i put jar and log ile in make folder).
So, when i click survey, the function doen't retrive information.
but, if i put the log file in root folder (i.e root/LOGFILE), the program correctly works.
my need is, where i put the Car.jar and LOGFILE folder, the program must works and store the detail in log file proferly.
what cani do.

ok,Thanks
It is working now.

Similar Messages

  • Opening pdf files stored on server

    Hi
    We have an application in which we display pdf files stored on the server.
    Pdf files opens in a new browser.
    User selects the invoice number from a list and based on the invoice selected, we get a pdf file from R/3 system. This file is stored in a particular folder on the server. We extract this file from the folder to show it to the user in a separate browser.
    This functionality works fine in the development system but not in test system.
    We have recently installed our test system and have done all required settings in config tool.
    Config Tool --> Display configuration --> HttpHttps --> Root and Alias folder.
    But despite this the functionality is not working.
    Is there some other setting that I have missed.
    Unfortunately these settings were done in the dev system by someone else and I do not have a document for it.
    Can anyone help me please.
    This is very urgent for me as we are plannning to migrate our production system as well. I may face the same problem over there as well.
    Regards
    Vineet

    Hi,
    We have the same requirement at our client end. Could you please guide me for the same?
    Regards,
    Sachin Mahajan

  • I can no longer see the files stored in my 160 ipod

    I had 42 gigas in files. I was trying to copy one of those files from the ipod to my laptop and suddenly it frozes. I had to restart the laptop. When i open the ipod to se the files stored, i was no longer abble to see the files, eventhoug when i see the memory ocuppied in the ipod, is still there, but i can access to them. The music still works perfect. I had a couple of smaller files, like 1Giga and they still there and I can access to them perfectly. But the problem is in the file with the 42 Gigas.

    Check your iPod's hard drive for errors. Open My Computer, right-click the drive, Click Properties, Tools, Check Now..., Select Options, Start.
    Some of your missing files/folders may be restored although their names may be lost. 4gb is the max. file size on FAT32 so are we talking a 42gb folder rather than a single file?
    tt2

  • I can't see from my PC the .pps files stored into Keynote in my iPad

    Hi all, i would want to know if it's possible to see from my PC the .pps files stored into Keynote in my iPad 2. When i am syncronyzing the iPad with the PC, in the iTunes tab called Applications, in its end part there's a double panel (Share files): on the left side, under 'Applications', a list of the Apps. installed on the iPad; on the right side, under 'Documents', a list of the documents that the selected app. on the left has in the iPad.
    No problem for Quicknote or Documents to go Premium: i can see the docs these apps. have in the iPad, and thus i can use the  'Save in' option to copy them to my PC, and also i can use the 'Add' option to transfer docs from my PC to the selected app.
    The problem is with Keynote application: while i have two docs in this app. in my iPad, i can't see them from iTunes; and also, i can't see in the iPad the docs i transfer to the Keynote app. with the 'Add' button.
    I have uninstalled and re-installed the Keynote app. on the iPad (without rebooting the device between the two things) without result.
    Any help on this matter would be appreciated. Regards.

    I have seen the solution: i have to explicitly share the files from Keynote options:
    - IPad --> iTunes: with the presentation open,  Configuration > Share and print > Send to iTunes.
    - iTunes --> iPad: '+' > Copy from: iTunes.

  • APEX- How to open world document (and other files) stored in a blob column?

    Hi,
    I have an application developed in Oracle Apex 3.2.1 and RDBMS Oracle 9.2.0.8 (SUN SOLARIS SPARC 64 BITS).
    I have a table called BAC_ARQUIVO, with the following structure:
    CREATE TABLE BAC_ARQUIVO
    (NAME VARCHAR2(4000), /* Name of the file stored in BLOB column */
    SUBJECT VARCHAR2(4000), /* A brief description about this file stored */
    ID NUMBER, /* An identification of this file - It´s a PK column of this table*/
    BLOB_CONTENT BLOB, /* Blob field that store diferent kind of files - XLS, DOC, PPT, PDF, EXE, ZIP, etc);
    MIME_TYPE VARCHAR2(4000) /* Identification about which kind of file is stored on BLOB field */
    The field BLOB_CONTENT of this table can store:
    - Executable files;
    - MS-World Documents (DOC);
    - Zip Files (ZIP);
    - Ms-Excel Files (XLS);
    - Ms-Powerpoint files (PPT);
    - Adobe documents (PDF);
    Actually, in this APEX application, i have developed a interactive Report in which the user can download these files to desktop without problems.
    But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
    My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
    For example, if the file stored in the blob column is ms-word type , so the application will open a MS-WINDOWS application with these file.
    Is it possible?
    I saw in this forum that it´s possible to open a file stored on "/i/" directory, but i need to open the file stored in BLOB column. I don´t want to store the file in operational system of the server.
    Could any one demonstrate to me how it could be done?
    Best regards,
    Sergio Coutinho

    Hi Sergio,
    This link might be helpful:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    Also refer the BLOB Download Format Mask :
    {message:id=9716335}
    Here I have given the format mask for APEX 4.0, which will slightly differ for 3.2.1 and proposed changes
    in the format mask are:
    1) Format Mask: DOWNLOAD
    2) Content Disposition: Inline
    This will be achieved with it:
    >
    But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
    My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
    >
    Hope it helps!
    Regards,
    Kiran

  • Load a file stored in a Jar Archive

    Dear all,
    I have a text file stored in a Jar Archive and I want to obtain a File instance of the text file from the jar file. The reason for this is because I have a method which read in a File instance of the file.
    From my understanding, one can obtain an byte[] array from a file stored in a text file. Is there a way to convert the byte[] into a File instance?
    Thanks.
    Sunny

    Once again, thank you for your prompt response. I agree that one can obtain an inputstream of a file from the Jar archive and work with it. The problem that I am having is that the method that I have is not written by me, to be precise, I am using Syslog and try to read in a configuration file packed in a Jar Archive. The Syslog library only provide a method, which only accept a 'File' instance as an input argument.
    Thanks.
    Sunny

  • In Mountain Lion - where are the calendar files stored?

    My wife synced her calendars with icloud and google calendar and wiped out her events. I have backups on a HD and Time Machine but I do not know where the calendar files are stored in ML.
    I previous OS's I would look in Application Support but that does not seem to work in ML.
    Where can I find these calendar files stored.
    Thank you

    They are in ~/Library/Calendars, where the '~' represents the user's home folder. The problem is that that Library folder is invisible now. You can easily access it by holding down the option key and choosing Library from the Finder's Go menu.

  • Are files stored in icloud backed up by Apple?

    Three related questions.
    I've started storing some Pages and Numbers files in my iCloud account so I can access them on my iPad with the iOS versions of those two applications.
    I use Time Machine on my Mac for backup, but if I have my only copy of a file saved on iCloud I want to known that Apple is backing up the files stored there. (1) Do they?  Is this documented somewhere?
    (2) Or is there a cached copy of the files kept on Mac OS X that is backed up by Time Machine? 
    (3) Maybe both occur?

    Here's what I have observed on my 10.8.3 system regards my questions about storing documents in iCloud from my Mac.
    1. Talked to Apple Support and they told me that Apple does not backup iCloud documents.  Also said documents are not encrypted in iCloud.
    2. I have found that there is a local cache of application associated documents kept in OS X on my Mac in ~/Library/Mobile Documents/.  Each application has a folder named like com~apple~<application name>; so Numbers documents are in ~/Library/Mobile Documents/com~apple~Numbers/Documents.
    The ~/Library/Mobile Documents/ is backed up by Time Machine.  So if Apple is indeed not backing up iCloud documents, the cached copy on my Mac and the Time Machine backup and my Crashplan cloud backup give me redundancy.
    3. If I turn off Wi-Fi on my Mac and open Numbers I can open the files I put in iCloud and make changes.  When I reestablish Wi-Fi networking the changed file gets synced with iCloud.  So that works pretty much like Dropbox does.
    I had some issues with one Numbers document not opening on my iPad (iOS 6).  I think there is some data in it that is the problem in the file as all my other larger and smaller Numbers documents open just fine on the iPad.  All were either created on the Mac or were converted from Excel using Numbers on the Mac.
    User documentation about iCloud operations is scant.  I'll see what is available to Developers.

  • Jsp page opening pdf file stored in an ORDDOC type column

    Dear All,
    i am building a jsp page that opens a pdf file stored in database. if column type is BLOB, i run the prepareStatement and store in a ResultSet, and then BufferedInputStream(result.getBinaryStream("FILE")). it works. page opens the pdf file.
    but when column type is ORDDOC, i get this error:
    Failure in java.sql.SQLException: Ongeldig kolomtype.: getBinaryStream not implemented for class oracle.jdbc.driver.T4CNamedTypeAccessor
    what more do i do to get a pdf(or txt, msword..) file to jsp page and open it?
    regards
    Jerry

    We are facing this problem with IE6 browser only. In firefox, it opens fine in a browser window. What configuration should we do in IE6?
    Thanks,
    Ananth.

  • New to MacBook - slow LAN file transfer problem

    My new MacBook is painfully slow when wifi-ing to my house LAN.
    I turned in my old G4 iBook for a MacBook (2GHz C2D, 2GB, 10.4.9, all updates). I have a LAN that consists of a wired 1G Ethernet backbone (a Mini and a Powermac G5 are wired in) and a Snow AEB that provides 802.11g wifi access to the LAN. The wired LAN connects to a D-Link GB Ethernet switch so the wired systems can exchange files fast. The switch connects to a D-Link EBR2310 router that connects to a cable modem to ComCast. The router has the latest firmware (1.05, it's an 'A' version router).
    The Mini, G5, and MB are static IPs on the LAN. The D-Link router passes out DHCP addresses >100, with addresses <101 reserved for static LAN IPs. I use static IPs for network reliability when recovering from power outages and other unforeseen glitches. The LAN has worked very well in this configuration, with fast file transfers among machines and good stability.
    With my old 802.11g G4 iBook, I was able to watch DVDs that are stored on an external FW drive connected to the Mini. No stalls, no pauses, no dropouts - MenuMeters showed an average throughput of about 700KBytes/sec on the iBook when viewing a DVD. I used both VLC and DVD Player with good results.
    With my new MacBook, I can't view my DVD files. 802.11g network transfer rates to the MB (indicated by MenuMeters and by Activity Monitor) vary rapidly from a high of about 1.1 MBytes/sec to 20 KBytes/sec. Movies stall, skip, etc.
    Simple file copies from one system to another are also much slower with the MacBook - an average of ~100KBytes/sec vs. ~ 1.5 MBytes/sec with my old iBook. In short, the MacBook is dog-slow in file transfers from the other machines compared with my old iBook when using the wifi connection, with no change to the network infrastructure in going from the old laptop to the new. I would like to fix this.
    My AEB is set up in bridge mode (simple access point) with WPA2 security. All three Macs are completely current with latest updates, as is the Snow AEB. The MB has 4 bars of signal strength. Slow file transfer problem does not change when moving the MB to or from the AEB.
    Curiously, when I download a large file (like the Intel 10.4.9 combo update), the MB shows a steady ~800KBytes/sec download speed, with none of the speed variation it shows with file transfers from either the Mini or the G5. File transfers to/from the MB to either of the other Macs are very slow.
    Both the Mini and the G5 have Airport cards: when I switch them from wired Ethernet LAN to wifi LAN, they transfer files between each other at ~ 2MBytes/sec - about what you'd expect from an 802.11g protocol. So the slow file transfer doesn't seem to be due to the AEB, it seems to be specific to the MacBook. When I connect the MB using its hardware Ethernet port, files transfer just as fast as the other systems.
    I have tried these measures, without effect on the problem:
    - power off/restart of every component in the system;
    - changing the AEB to an open network mode;
    - changing the MB from static IP to DHCP;
    - toggling IPv6 on/off;
    - running no applications other than Finder on all systems;
    Activity Monitor on the MB doesn't show anything sucking up CPU cycles during file transfers. I have plenty of RAM. The only thing I've changed in the network is the swap of the iBook for the MacBook.
    Can anyone suggest what else I can try to make acquisition of this nice shiny MacBook a step forward, rather than a step back? Thank you!
    G5 DP 1.8, Mini CD1.83 GHz, MacBook C2D,2GHz   Mac OS X (10.4.9)  
    G5 DP 1.8, Mini 1.83 GHz, G4 iBook   Mac OS X (10.4.8)  
    G5 DP 1.8, Mini 1.83 GHz, G4 iBook   Mac OS X (10.4.8)  

    Hi,
    Did you want to use the Live Migrations for that?
    We recommend that you configure separate dedicated networks with gigabit or faster speed for live migration traffic and cluster communication, and these networks should be separate from the network used by the management operating system, and from the network
    used by the virtual machines.
    For more and detail information, please refer to:
    http://technet.microsoft.com/en-us/library/ff428137(WS.10).aspx
    Regards.
    Vivian Wang

  • Read file stored in MIME folder

    Hello
    I have a word(.doc) file stored in MIME folder in webdynpro java.while clicking the filedownlad UI,I need to read this file from the MIME folder.I heard we can use binary chache and WDURLGenerator.Can someone please send me the details how to do it.
    regards
    John

    HI,
    Same problem but with HTML file was solved here Re: How to connect to a html using webdynpro
    Best regards, Maksim Rashchynski,

  • Creative centrale can't play music files stored on Zen X-Fi.

    <\I installed Creative Centrale, connected the player and it gets recognized alright, but for some reason I can't play the music files stored on it, is it normal? Centrale plays the files on PC just fine, but if I try to play the files on the player nothing happens. I wanted to know if this is normal and if it's not, how to fix this problem.

    Anyone has any clue if this is normal or not? I find it quite odd that a creative software is unable to play music stored on creative players.

  • File.applicationStorageDirectory problem

    Hello dear adobe air community!
    I'm new to air mobile development and i'm currently facing a weird problem with File API and its applicationStorageDirectory property.
    Please correct me if i'm wrong but it seems that every files stored in applicationStorageDirectory are not deleted during application update, true?
    In m'y case, I'm using applicationStorageDirectory to store application database with some user settings. Obviously, these settings should be kept during application update process. Unfortunately, they are removed each time I'm updating the application...
    Any ideas? Can this behaviour should result for a bad configuration of my air descriptor file?
    Thanks in advance for your help...

    Thank you Chris for your quick answer.
    My database file is copied when the application starts up.
    A check is performed before copying the database file.
    However, after application update, the database seems to be removed  and recreated...
    The following code performs the database initialization:
    * Init the database with a default database file.
    * @param dbFilePathSource
    * @param dbFilePathTarget
    public static function initDatabase(dbFilePathSource:String, dbFilePathTarget:String):void {
    trace("IN initDatabase.");
    // DB files lookup
    var embeddedSessionDB:File = File.applicationDirectory.resolvePath(dbFilePathSource);
    var writeSessionDB:File = File.applicationStorageDirectory.resolvePath(dbFilePathTarget);
    // If a writable DB doesn't exist, then we copy it into the app folder so it's writable
    if (!writeSessionDB.exists) {
    trace("DB file does not exist at path [" + dbFilePathTarget + "]. DB file file be created from reference file stored at path [" + dbFilePathSource + "].");
    embeddedSessionDB.copyTo(writeSessionDB);
    Thank you...

  • Download file servlet problem

    hello
    i have a file stored in a byte[] form now i am using a servlet call for a link it works fine
    i get byte[] from database no i want that instead of making a file i can use this byte[] for the user as a file
    in short i have a link which calls a servlet it get byte[] from database how can i use this for user to get file as download file with out writing to server as file i just want these bytes to flush out??
    advance thanks
    Shakeel abbas

    thanks BALUSC
    the problem is solved as
    ServletOutputStream op = response.getOutputStream();
                        int length = 0;
                        byte[] bbuf = new byte[invoice.getInvoiceFile().length];
                        ByteArrayInputStream arrayInputStream = new ByteArrayInputStream(invoice.getInvoiceFile());
                        DataInputStream in = new DataInputStream(arrayInputStream);
                        while ((in != null) && ((length = in.read(bbuf)) != -1)) {
                             op.write(bbuf, 0, length);
                        }

  • When I do a download, it is saved to a Binary File. Where are these files stored & how do you uninstall a program you don't want to keep ?

    I use firefox, when I download a file from another website, there is a pop-up that shows the name of the download, which shows it is saved to a binary file, (don't know what a binary file is) but my question is where are the binary files stored on my computer & if I can uninstall it if I don't want to keep it.

    read basic about svchost:
    [http://support.microsoft.com/kb/314056/en-us A description of Svchost.exe in Windows XP Professional Edition]
    find svchost services:
    [http://webcache.googleusercontent.com/search?q=cache:pa9PdGlHr0sJ:www.bleepingcomputer.com/tutorials/list-services-running-under-svchost.exe-process/+what+is+svchost.exe&cd=12&hl=el&ct=clnk&gl=gr a way how to determine what services are running under a SVCHOST.EXE process]
    One Temporary Solution is to disable the Windows Automatic Update service:
    http://ask-leo.com/how_do_i_fix_this_high_cpu_usage_svchost_virus_or_whatever_it_is.html
    (no '''it is not''' a virus)
    (works for me)
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

Maybe you are looking for