How do I import any extension file within project in netbeans ?

Can anybody tell that how can I add any text file or any extension file in netbeans project as I can import image within project and I can use that image when I run jar file..I do not have to move that image where I run my jar file..It will automatically take that image file from jar file...I want this thing same for files...In which I can read and write within project....(I m using netbeans 6.0 and jdk 1.6)
Thanks...

Thank you for yr prompt reply.
May i try to explain once again.. I want a way to store a file (*.txt) in a package called "files" within my project. Now after compiling and making an executable jar of this project i wish to read and write to this *.txt file lying within files package. Though I m able to read this *.txt file ( with the help of getClass().getResourceAsStream() ) but i m unable to make any changes to this file within xxx.jar.
ex:
FileWriter fw = new FileWriter("c:/xxx.jar!/files/xyz.txt");
Do u have ny idea? how can i do this ?
can u plz suggest the correct forum for netbeans. Thanks once again.

Similar Messages

  • How do you import a video file that has extension gp into i movie.  also rotating video

    How do you import a video file that has the extension gp into ivmovie?  Also how do you rotate a video . (the video was taken from a phone.)

    Hi, your video file needs to be converted to eg. a .mov or .mp4 file before iMovie will recognise. I use 4Media MP4 converter and it works excellent.
    For the rotating I do not have an answer, but if you would manege you would end up with a very narrow image either way.
    Good luck

  • How to write to a log file within a JSP

    Hello everybody,
    do you know how to write to a log file within a JSP.
    my code is (/space/SP/tlf/ExcepcionJava.jsp):
    <html>
    <body bgColor=#C4E1FF>
    <%@ page import="java.io.*" %>
    <%
         FileWriter salida = new FileWriter(response.encodeURL("log.txt"));
         salida.write(request.getParameter("errorMsg"));
         salida.close();
    %>
    </body>
    </html>.. I run under Solaris, Jrun 2.3.3
    I have also test with getServletContext().getRealPath(), but I get /netsrv/nes/docs/ instead of /space/SP/tlf/

    Hi,
    Give the full path of the log file to the FileWriter. Such as;
    FileWriter salida = new FileWriter(response.encodeURL("/usr/local/tomcat/logs/testlogs/log.txt"));
    nurettin

  • How do I import an MKV file into Premiere Pro CS6?

    How do I import an MKV file into Premiere Pro CS6?

    Premiere Pro CS6 doesn't support MKV formats. To import MKV to Premiere Pro CS6, a recommended solution is to convert MKV to AVI.
    I've been reading so many different forums on how to convert MKV to AVI. Finally, I summarised three solutions:
    First one: HandBrake . This tool is a free and open-source multi-threaded transcoding app. It supports nearly any videos including MKV format and has Mac version and Windows version.
    Cons:
    1. HandBrake is too professional to handle for most people;
    2. It doesn't support MOV as output format.
    Second one: there are many third party software which supports converting MKV to AVI. I just test one of them. It's professional yet easy to use and the service is excellent. And there is a step by step guide about how to use this tool .
    Cons:
    1. Most of them are not free.
    Third one: Online-Converter . This kind of converter does a great job on file conversion.
    Cons:
    1. Like most online converters, the free version of this tool only allows you to convert videos smaller than 100MB. It's too small for video conversion;
    2.Your MKV video should be upload to the internet to be converted. This means the risk of pravite information leak is possible.

  • How do i import director 7 files into current premiere pro

    how do i import director 7 files into current premiere pro
    I have a project created in Macromedia Director 7. I was told by sales that this would import into Premere Pro.
    However I have no Idea how! Any help would be appreciated.

    I'm happy to announce to you all that my "mp4 importing" issues has been sorted out. Now I import mp4 shot with the same Windows Phone 8 Device into Adobe Premiere Pro CS4. Only that for the moment, it doesn't play as fast as with ordinary player.
    But how did I get it to work, you may wonder;
    I simply installed Itunes on the system, I also installed an app called media monkey. I can't say which of the apps did the magic but the next time I tried to import mp4 files into Premiere Pro after these installations, it imported seamlessly.
    Obviously there's a link between the required codecs and the itunes itself.
    You may want to try it and hope it works for you.
    Kindly inform us if it works.
    Thank you all.
    Cheers.

  • How can I import MP3 audio files into premiere pro cs5?

    Can any one help?
    How can I import MP3 audio files into premiere pro cs5?

    It is really difficulty for me.If you still haven't found a satisfactory answer,please search it on google.Hope you can get your answer as soon as quickly!
    fifa 14 coins
    cheap fifa coins

  • How do I import binary data files (with header info) into DIAdem?

    We have lots of data acquired by nCode datagate. Files are binary data with header info. How do I import this into DIAdem? Typical (short) file attached. Also of interest, can I stream data from Sony PC208/SIR1000 recorders?
    Attachments:
    Propshft.dac ‏4 KB

    I have successfully imported your file into DIAdem using the nCode file filter included with DIAdem. You might have to make that file filter known to DIAdem by following these steps (this assumes you have version 8 of DIAdem):
    1. Go to the 'Window' menu in DIAdem and select 'Close all'
    2. Go to the 'Settings' menu and select 'GPI-DLL Registration'
    3. Click the 'Add' button in the window and select the 'GfSnCode' DLL in the 'DIAdem/AddInfo' directory
    4. The program will prompt you to restart.
    5. After you have restarted DIAdem, go to the DATA icon, select 'File - Open' from the DATA menu and in the dialog that appears, choose 'nSoft Data File Format' in the 'Files of type:' field.
    6. Select your data file and load
    That's it.
    With regards to your Sony reco
    rder data, I would need to get my hands on an actual data file to try it out. In general, DIAdem can import ANY binary file format by creating a header in the 'File - Import via header' section in DATA. If you have lots of data files from the SONY recorder, a DLL can be created for that specific file format with the free DLL toolkit included with DIAdem.
    Leave me a message here if you have any additional questions.
    Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • How do I import a .png file to iPhoto?

    How do I import a .png file to iphoto?

    The Save to iPhoto was fixed in yesterday's iPhoto update: iPhoto 9.4.3
    OT

  • How do I import my video files from old iPhoto - in time machine - to new iPhoto?  Photoes came across, video said incompatible.

    how do I import my video files from old iPhoto - in time machine - to new iPhoto?  Photoes came across, video said incompatible.
    i have moved from a mac pro to a mac mini,
    Mini now has mavericks and latest iLife stuff, I clicked import, was all good, then at end, no videos came across.
    Is Mavericks,/iPhoto having a compatibiltiy issue with some video formats....???
    Your help is appreciated gang.: )

    Please describe exactly what you did. In moving to a new machine no importing is involved. The best way is to simply connect the two computers together and drag the iPhoto library from the old one to the pictures folder go the new one and launch iPhoto
    LN

  • Just upgraded to Lion and can no longer import any .mov files ("file not supported") to 3.1.3.  Also can no longer view any .mov or .mp4 files already in library.

    Have been using Aperture 3.1.3 with no problems.  Importing from a Nikon D80 (RAW & JPEG), Casio (.MOV) and Flip (.mp4).  Could import and view all videos without issue prior to Lion upgrade.  After Lion installation, can no longer import .mov files (get "file not supported" error) or even view any .mov or .mp4 files currently in library (even though thumbnail is present).  Can watch the .mov files directly on my camera using Quicktime in Finder but can't even drag & drop that file into Aperture.  Anybody else having similar problems?

    Still no resolution and Geniuses at store could not assist.  Unfortunately, it looks like not all the applications were ready to support the Lion operating system.  We could not import any .mov files, could no longer view any .mov files already in my Aperture library and could not email any .mov files.  Totally frustrated.  Use Aperture almost daily and can't lose the video functionality.  Was also running dog-slow.  Constantly looking at the spinning wheel.  Geniuses suggested that I wipe out hard drive and reinstall Snow Leopard.  Had full backup on external drive with Time Machine. 
    Not an easy process though...had to reinstall several times (at 5 hours each time) because I continued to have issues.  Finally figured out that I needed to delete every backup file from Time Machine on external drive from the date I installed Lion because some of the hidden files were still migrating back to Snow Leopard.
    I had to:
    1. Delete all time machine backup files from date/time of Lion installation forward
    2. Do "clean" installation of Snow Leopard (wiped hard drive using disk utility and booted with Snow Leopard disc)
    3. Chose option to reinstall from backup off Time Machine which eventually got me back to Snow Leopard desktop
    4. Deleted Aperture program and reinstalled (I had to install Aperture 2 and then install Aperture 3 upgrade.
    5. Reinstalled iLife apps
    5. Applied all Apple updates available (again this took a few hours because there were several updates from Snow Leopard's original release plus Aperture 3 and other application updates)
    Still doing some tweaking on some of my other apps but got everything back to where I originally was.  Now plan to wait on a few version updates from Lion before reinstalling.
    I am one of Apple's biggest fans, but was very disappointed in the fact that I lost functionality in one of their own pieces of software (which I use the most!)  by installing Lion.

  • How can I import a .swf file in Adobe Flash CS4?

    Hi,
    How can I import a .swf file in Adobe Flash CS4?
    Thanks.

    you can use file/import but that would be a mistake.
    you should "load" your swf, not import it.
    if you want to load it and need help, are you using as2 or as3?

  • How can I import an AVCHD file to iMovie 11?

    How can I import an AVCHD file to iMovie 11?

    Support for eps was removed from Elements 11:
    Supported file formats

  • How can I import iPhone Garageband Files to Mac Garageband?

    How can I import iPhone Garageband Files to Mac Garageband? I've found lots of threads about this but no direct answers/how to.
    Thanks

    With the latest build of GarageBand on the device, move to the My Songs view, tap the Edit button at top right, select the shaking song you want to export, then tap the sharing arrow symbol at top left, tap iTunes, then GarageBand.
    Connect the device to iTunes, select it in the left-hand column, then select the Apps tab. You should find the exported file in the File Sharing area of the GarageBand app and from there you can copy it to your computer, then open it with the GarageBand application.
    tt2

  • So I updated to lightroom 3.6-now i cannot import any .nef files?

    so I updated to lightroom 3.6-now i cannot import any .nef files? is that what you call progress?

    Hi,
    I'm not sure why you think Lightroom 3 will support the D610 as it was only announced on October 8, 2013. Support for the D610 was released in the Lightroom 5.3 RC, see Lightroom 5.3 RC now available on Adobe Labs
    If you wish to use you D610 files in Lightroom 3.6 you will need to download the Adobe DNG Converter, convert your NEF to DNG and then import into Lightroom 3.6. The DNG Converter can be downloaded from http://www.adobe.com/support/downloads/product.jsp?product=106&platform=Windows
    Or, better option is to upgrade to the current version of Lightroom  

  • How do I import a .fcpproject file into final cut pro?

    How do I import a .fcpproject file into final cut pro?

    You don't. The application opens it when it recognizes it in the correct folder structure.

Maybe you are looking for

  • My podcast not showing up in searches, Any Ideas?

    When you search our podcast  "The Media Brothers" in the mobile Itunes app, it pulls up these podcasts that are not even closely related.  Any Ideas on how to get it to search correctly?

  • How can I resolve StackTrace data into a Method?

    Howdy, I am aware that using StackTraceElement will get me a method name, class name, and line number. I'd like to resolve this information to a java.lang.reflect.Method, but when method names are overloaded there is no indicator (other than line num

  • Help-can't see (canvas) item in viewer

    Hi I'm trying to position an 8 point garbage matte by use of the canvas, but can't see the positions because I can't see the item in the viewer while I am on the controls page in the canvas please excude dumb qstn, what am I doing wrong, how can i ge

  • Hello, i am trying to publish to my trial site,

    Hello, i am trying to publish to my trial site, all fine until this morning when i get this message... Internal error: 400 Bad request. (117007)

  • Reinstall Adobe Captivate

    Hi I had Adobe Captivate 4.0 installed on my computer. However the desktop was rebooted and new windows was installed. How do i reinstall Adobe Captivate on my system. I have the prodcut key and everything. Please help!!!