Netbeans 4.1 project directory - noob question

Hi all
I have the following code to load a properties file to a webapplication, the file is located inside the default package, on the Source Packages item of an Web Application project in Netbeans 4.1.
Properties env = new Properties();
env.load(new FileInputStream("webapp.properties"));
My question is how to refer the load method to get the file without indicanting the full path.
Sorry the bad english, thanks in advance....

Yes, but this way isn't workingThen the file is not in the "root" directory. I don't know how Netbeans organizes its files. Try placing it in the project root.

Similar Messages

  • Noob Question: Flowing Input Dataset Row/Record IDs Through to the Score Model Output

    I've got a noob question that I'm having difficulty finding the answer to:  if my input dataset contains row/record IDs and I want to flow these through to the Score Model module output but *don't* want to include this column in model training (because
    it's just an arbitrary row tag), how do I go about accomplishing this?  
    I am able to Project Columns and eliminate the IDs entirely early in the process but then can't really determine which input row a prediction is associated with because I've lost the IDs.  I'm not quite sure how to accomplish what I'm trying to do via
    the Metadata Editor, either.
    Surely somebody else has dealt with this same question.  If the solution is implemented somewhere in a Gallery experiment that you'd like to point me at, too, that would also be just as good as a written explanation.
    Thanks in advance,
    Kevin

    Hey Kevin!
    Sorry for making this process unclear :( Azure ML has a notion of Feature Columns
    (by default everything is a Feature), that is columns/variables that are intended to be treated as part of the observation vector. You can use the Metadata Editor
    and (after selecting the column(s) you want), mark the column as
    Fields -> Clear Feature. This will have the semantics you desire - data attached to the input data while not being used for training.
    Regards,
    AK

  • Noob Question Re: Encoding to DVD

    This is my first post in the adobe forums , so hello all!
    I've been trolling this, and numerous other sites, hoping to understand the basic process of editing -> CD creation.
    So here it begins...I am working on "work-out" video tape. The footage was shot using a Canon H10 to removable memory card. All files are .MTS, which don't pose too many challenges for my computer (i7 processor w/ 6MB memory) after the most recent PP update. Editing, adding AE, titles, graphics, or using Sound Booth is relatively painless. I have a total of (4) timelines that comprise the total video (Trailer, Intro, Instructions, and Workout). As I edited the video I'd often render what I had testing formats such as avi, MPEG2, FLV/4, Blu-Ray H.264, etc. I was amazed with the clarity and sharpness as I stayed with in the confines of 1980x1020. So I have no problems there. Once the editing, I first created a blank timeline and pulled into it the other timelines to make on timeline called "Video Complete". I dynamic linked that timeline to Encore and found out that amount of data, in that format, created a very unstable Encore - it screamed and hollered about running out of memory, etc. I watched several tutorials and found that dynamic linking the indvidual timelines gave me a much more stable Encore.
    So I had the untranscoded .MTS files in Encore. I created my menu, linking the timelines, etc and built my project using the standard 720x480 (I believe) format. To say the least, I wasn't at all happy with the final product when watched on the television. Very pixalated/jagged around letters, etc.
    I don't mind shopping around for the correct answer or putting my time in on research, I'd just like to know if I am on the right playing field and/or headed in the right direction.
    So basically my questions are:
    1) Is dynamic linking .MTS files to Encore the correct approach as opposed to rendering the .MTS files in PPro to avi or MPEG2 before bringing them into the Encore project? (Based on wanting the best DVD quality possible)
    2) Transcoding settings for individual timelines should remain on automatic or should I adjust them and transcode before clicking on build project?
    3) Since I was able to see MPGE2 renderings (from PPro) on my computer screen as sharp and clear, should I expect the same quality from a DVD product?
    Any information would be helpful - thanks so much.
    Joe

    Re: Noob Question Re: Encoding to DVD
    Hi, great questions:
    I think this is a sound approach. MTS is short for MPEG-2 Transport Stream, so it's already MPEG-2 but will of course have to be re-transcoded for DVD to standard definition. If you want to experiment with high definition, you could try stripping the streams out of the MTS using a third party tool such as what you might find at videohelp.com - or not. Less transcoding is always better, but may not be practical. There's probably little advantage to doing this on the DVD side, but it might be worthwhile for Blu-ray? Or not.
    First, try using Interpret Footage on the asset (the MTS file itself) - set it to SD Widescreen. You may need to Revert to Original if it's already transcoded. Try building another DVD and check the footage.
    For the most part, yes. Of course, they will be standard definition on DVD.
    Message was edited by: jbowden
    Jbowden,
    Thanks for the response. I will check out "Interpret Footage" on the asset of the MTS file and toggle to SD Widescreen. Will do that tonight so I can compare the two for quality.
    Joe

  • Change project directory for Workshop?

    The default project directory for workshop is
    C:\bea\weblogic700\samples\workshop\applications. How do I change that.
    For example I want my project to be in the directory c:\work\webservices
    thx

    Yes Raj. That helped, it worked!
    "Raj Alagumalai" <[email protected]> wrote in message
    news:[email protected]...
    Dave,
    You can change the server with which Workshop communicates by modifyingthe
    Config directory entry available under the Tools->Preferences->Pathsoption
    on the IDE.
    In your case the config directory should be c:\
    and the domain should be foo.
    also make sure you change the port number entry to the one the server infoo
    is listening on.
    Hope this helps.
    Raj Alagumalai
    WebLogic Workshop Support
    "Dave Remy" <[email protected]> wrote in message
    news:[email protected]...
    OK. I added a new domain (e.g., foo) and pointed the directory to one
    of
    my
    choosing (c:\foo). Weblogic then created a c:\foo\applications
    directory.
    Ok, how do I get workshop to use that directory for my development
    project(s)? When I start if from my start menu it uses the cgserver
    instance and when I create a project it creates it in the samples
    application directory.
    "Raj Alagumalai" <[email protected]> wrote in message
    news:[email protected]...
    Dave,
    When you create a project in Workshop, the project will be created
    under
    the
    applications folder of the server with which Workshop is
    communicating.
    For
    every project that you create via Workshop there is a corresponding
    fully
    exploded web application that is created on the WebLogic Server. This
    restricts the ability to have the project reside in a different
    location
    other than the applications folder.
    If you do not want the project to be created in the samples directoryyou
    can configure a new domain via the domain configuration wizard. But
    the
    project would still be under the applications folder of the newdomain.
    >>>
    Hope this answers your question.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Dave Remy" <[email protected]> wrote in message
    news:[email protected]...
    The default project directory for workshop is
    C:\bea\weblogic700\samples\workshop\applications. How do I change
    that.
    For example I want my project to be in the directoryc:\work\webservices
    thx

  • Netbeans + Open Remote Project

    Greetings,
    I'm trying to open a project in NetBeans 5.5 that's stored on my company's network. The project is contained in a folder named 'myProject', and I'm certain that it would run correctly if I were only to open it the right way.
    When I go to [File-> Open Project-> \\network-drive\...\projects\myProject ], I'm unable to open the project. Apparently, this folder isn't recognized by NetBeans as a "project folder". However, since it contains sub-folders named 'build', 'dist', 'nbproject', 'src', 'test', 'web' and a file named 'build.xml', it does appear to be a valid web application project folder. (Right?)
    Interestingly, if I create a new project, save it to \\network-drive\...\projects\, close NetBeans, and then try to open it through the "Open Project..." dialogue, I'm unable to do so. The reason: That folder isn't recognized by NetBeans as a "project folder." However, if I create a new project, save it my local hard drive, and then try to open it through the "Open Project..." dialogue, I don't have any difficulties. This appears to suggest that the locations in which these folders reside dictate whether or not NetBeans can open them as projects. What's the deal with that?
    Thanks in advance!

    Open My Computer, click Tools -> Map Network Drive. Where it says "Folder" type "\\P" into that box and click finish. Try to access the project using 'P:\Projects\ESAO_ITS\Legal\myProject' instead of the double slash in the beginning.

  • Syncing & Streaming from the same Library? - Noob question

    Good Evening - I have a silly noob question that I can't believe I can't find the answer to on my own: I have been trying to determine if it is possible to sync and stream from the same library simultaneously.
    I purchased the 40GB aTV and it has been syncing just fine with my Windows iTunes. I told it not to sync a few albums I never listen to so I wouldn't have issues with other songs or movies. I am upgrading to a new iMac and I am am going to re-rip many of my existing CD's to get them into a consistent audio quality of 192 AAC or above. This is going to push my library size to well over the 40GB limit in just music, not including any movies or TV shows I choose to pull in.
    The manual does not make it obvious (or I am not reading clearly) what happens to items that don't sync over - I assume they are still playable but will have to stream. Is there anyway to mark "preferred" albums or artists that should get synced and not streamed in case the iTunes library is unavailable for whatever reason?
    Also, when I change libraries is the aTV going to completely re-sync even though the music is must going to be migrated?
    Thanks for taking the time to answer these silly questions.

    That's not quite what I was looking for.
    My question remains, what happens to the items that can't be synced from my main library to my aTV? My library is just a smidge bigger than the available space on the aTV and not everything syncs over. Does that mean I won't be able to play those items not synced from my main library...
    As my library grows I don't want to have to choose what does and doesn't get synced from my library by mood. For example, every year my wife buys new christmas music - right now I could exclude it and everything else gets copied over, but come thanksgiving that stuff better be there for her and I don't want to choose other music or movies to remove.
    I guess I will just have to play to try it out.

  • The package file is missing from the project directory

    Today after working in SSIS all day with no problems, I re-opened one of my projects and got the message:
    The package file ‘package_name.dtsx’ is missing from the project directory. This package has been skipped, and project will continue to load.
    So two of my packages loaded and all remaining packages where skipped, one pop-up dialog for each “missing” package. I then looked in my project directory and all my packages are still there.
    1. Has anyone experienced this and found why this happens?
    2. Can I just import my packages again and be good to go?
    Update:
    I discovered that this had to do with renaming my packages in SSDT. For some reason the name changes did not get saved into the project .dtproj file. I was able to correct by renaming the .dtsx files in the project directory to their original name. Then
    I re-opened the project, renamed the packages to the new names, saved and closed all packages. At this point you need to save the project, which actually wasn't really straight forward. You need to highlight the project name in Solution Explorer
    and then from the File menu select 'Save Selected Items'. This updates the .dtproj file.
    Upon closing SSDT, a dialog SOMETIMES appears asking you to save the project, after selecting Yes, the .dtproj file also updates. However, I've realized that upon closing the project, that the dialog asking to save the project does not always appear,
    depending on what has changed in the project. To be safe, use method previously described, especially after renaming packages. Also, if SSDT happens to crash after you have renamed a package, the project will not re-open properly.

    I remember one such occurrence when I used Source Control (if I recall right it was TFS), and yes, you can simply right-click on the packages folder and choose 'add existing package'.
    But check for project file perhaps it has a wrong reference. E.g. something from the outside manipulated on the package files.
    Arthur
    MyBlog
    Twitter

  • Strange folders appearing in LiveType Project directory

    Running FCP 5.04 under 10.4.7. LiveType 2.0.2 Just upgraded from OS X 10.3.9, FCP 4.5 and LiveType 1.2. We did not see this issue prior to the update.
    LiveType is placing 0 Kb folders in my LiveType project directory every time I save (as) a LiveType project. The directory is on a SAN volume. The system creates the folder name "com.apple.LiveType_hughnumberstring-n". The "hugenumberstring" appears to change after logging in for the first time each day. "Hugenumberstring" remains the same for each day, while "n" increments everytime I save the project.
    The sturcture of the filename suggest somthing to do with preferences, but, being a folder, it has no pref file extension.
    Any ideas where this is being generated, and what to do about it?

    Try saving to an internal drive and then tell us what happens.
    Any ideas where this is being generated, and what to do about it? < </div>
    It must be a function of your particular drive software. I've never seen it in all of my years of LT/FCP work.
    bogiesan

  • Changing Default Project Directory

    Does anyone know how to change the default project directory?
    I can move events; that's no problem.
    But I can't seem to move the default project directory off my main MacBook Pro drive.
    Thanks.

    I ran into this issue and found a work-around for it.
    The problem is that OS X Finder Aliases work a little differently than UNIX links. A UNIX link will do what we need it to do because it is lower-level in the operating system (not a Finder trick), but if you cross physical disk boundaries you then need to then use a "symbolic link."
    If you know how to make a sym-link, then you should be good to go -- if not, there are directions below.
    To do this [you should have some UNIX command-line familiarity]:
    In the Finder, copy your Projects or Movies folder to the drive/destination where you want it.
    When the copy is complete, rename the original folder (I copied my whole Movies folder and renamed the old one "Movies2").
    Open Terminal (~Applications/Utilities/Terminal) -- it should put you in your home directory.
    You will now want to figure out what the UNIX path to your new projects or movies folder is. Get Info in the finder on your new folder, and note the "Where:" field -- as you will need to type this by hand.
    You create a UNIX symbolic link by typing the link command, followed by the symbolic-link flag (-s) then the source directory (your new folder) and the target for the link (where you want it to point FROM), from your home folder.
    I moved my Movies folder to a disk that I called "500GB" so I wanted the Movies folder to point TO the Movies folder on the disk called "500GB".
    To create the symbolic link, with the Terminal program, and my current directory as my home folder, I typed:
    ln -s /Volumes/500GB/Movies ./
    And that created a "Movies" symbolic link in my home folder that points to "/Volumes/500GB/Movies"
    iMovie'08 now works with the relocated projects, etc.
    Once you are done with this, launch iMovie and make sure that it is doing what you need it to do. If it is not, you still have the original Movies or Projects directory that you started with. If it is working, then you can backup and/or discard the safety backup you made when you renamed the original folder (i.e. "Movies2").

  • How to view all directory under project directory.

    I'm eclipse user and want to try JDeveloper. The performance of JDeveloper was good and the debugger was much better. But I have some problem with the Navigator view of JDeveloper.
    I can only see directory under "Java Content" and "Resources". Under the project directory, I have some other directory like log, doc and images, which should not been copied to target folder. If I add them to "Java Content" or "Resources" I will see them, but they will been copied to target folder, which is not what I want.
    Can I see them without add them to "Java Content" or "Resources"?
    Regards

    Hi gurus,
    I think this looks like a bug :(
    Pay attention: user574665 apparently means not to add a Resource path in addition to (or instead of) the default one.
    This (at least with me) works properly.
    What really doesn't work is when you having one Resource path try to specify a list of subfolders to be included.
    The content of those subfolders will then be copied to the output directory.
    Funny is that when you have more than one Resource path it also works fine!
    Hi user574665, try to get a workaround out of this hint :)
    Regards,
    alexandre.

  • Another Noobie question - readLine()

    Hi all
    This is another one of the extreme noob questions. I wrote a small program to read form a text file
        String NetworkLine = new String();
        try{
            FileReader inputFile = new FileReader("Test.txt");  //
            BufferedReader in = new BufferedReader(inputFile);
           try{
               while (in.readLine() != null){
                NetworkLine = in.readLine();
                System.out.println(NetworkLine);
           }catch (IOException e){
                System.err.println("Error in reading the file");
        }catch (FileNotFoundException e){
            e.printStackTrace();
        }My Test.txt is
    One
    Two
    Three
    Four
    Five
    Six
    without the *
    The output I get is
    Two
    Four
    Six
    I cannot figure out why only even no. lines are being read. I inserted a breakpoint at the line
              System.out.println(NetworkLine);This shows me that only even no. lines are being read by readLine(). Any help will be appreaciated.
    Thanks
    Ayesha

        String NetworkLine = new String();
        try{
            FileReader inputFile = new FileReader("Test.txt");  //
            BufferedReader in = new BufferedReader(inputFile);
           try{
               while (in.readLine() != null){  // <-- This reads a line, checks it for null ,and drops it
                NetworkLine = in.readLine(); // <-- this reads the next line
                System.out.println(NetworkLine);
           }catch (IOException e){
                System.err.println("Error in reading the file");
        }catch (FileNotFoundException e){
            e.printStackTrace();
        }So the upshot is that you print every other line.
    Corrected:
        String networkLine = new String();
        try{
            FileReader inputFile = new FileReader("Test.txt");  //
            BufferedReader in = new BufferedReader(inputFile);
           try{
               while ((networkLine = in.readLine()) != null){
                System.out.println(networkLine);
           }catch (IOException e){
                System.err.println("Error in reading the file");
        }catch (FileNotFoundException e){
            e.printStackTrace();
        }

  • Sun recommended Java EE project directory structure?

    Hello,
    It's said that there's a Java EE project directory structure recommended by Sun.
    How to get it?
    I find a link as following,
    http://java.sun.com/blueprints/code/projectconventions.html
    The article is my want? Thanks!
    a cup of Java, cheers!
    Sha Jiang

    I got this worked out.

  • Noob questions...windows emulation on mac OS 10.4

    getting my ibook later this week and was wondering about windows emulation. i don't have an intel processor in my ibook (obviously), so what's your recommendation for a product that runs windows on a mac? and, total noob question, do i have to buy a copy of windows? i already have windows on my dell laptop.
    thanks in advance for your help.

    Hello,
    so, do the new macbooks have some kind of software
    pre-installed that runs windows? my friends who just
    got a macbook tells me he can run windows programs if
    he needs to.
    The MacBooks have Intel processors in them. So, no emulation is necessary. They can directly install and run Windows if they want.
    The reason you need a program like Virtual PC on an iBook is because it uses a PowerPC processor which Windows cannot communicate with. And, the PowerPC Mac's architecture is completely different.
    So, that means you need a program like Virtual PC to completely emulate an entire PC computer. Basically, it is a program that simulates a real computer and then translates those Intel instructions into PowerPC instructions that your iBook can understand.
    There is a severe performance penalty for all this translation. The iBook G4 will not perform like a regular Windows PC. It will be much slower, and you will need to be more patient. With a G4 iBook, you could reasonably expect your performance to be comparable to a 300 MHz PC running Windows XP.
    With a 1.8 GHz iMac G5 and 2 GB of RAM, I was experiencing performance comparable to a 1.3 GHz Intel Celeron system with 256 MB of RAM (which I happened to have around for comparison).
    But, for more intensive tasks, the performance was more comparable to a 500 MHz system.
    Anyway, back to the Intel Macs. Those machine's only need a free Apple Utility "Boot Camp" to provide the drivers and create a Windows compatible boot partition:
    http://www.apple.com/bootcamp/
    And, then they need Windows XP Home or Pro. That's it.
    With programs like Parallels, they can run Windows inside the Mac OS (or along side it) much like you would with Virtual PC:
    http://www.parallels.com/en/products/workstation/mac/
    i am trying to figure out where this might be useful
    in the first place.
    It is useful if you need to be able to run Windows software, but don't want to buy a PC. It's more convenient to have one machine that can do everything than it is to have a Mac and a separate PC.
    Feel free to ask additional questions if you have them. Or, if you like, hit solved on the post if you feel everything is answered.
    But, do let me know if I can answer any additional questions or need to re-state something clearer.

  • Openbox noob question on menus.

    I really do apologize about this insanely noob question but this is driving me up a wall.
    I've read several several different resources on openbox (particularly trying to find information on the root menu)
    i'm either looking in the wrong place - or I totally saw it and didn't put 2 and 2 together. *shrugs*
    so, here is the dealio -
    I'm trying to edit the root menu (or as I like to call it right clicky drop down thingy)
    I'm running LXDE and from everything I've gathered over the last couple of days trying to tackle this
    with lxde you edit the lxde-rc.xml instead of the menu or rc.xml
    although after reading through it a plethora of times I noticed that it pulls off of the menu.xml as well...
    *basically*
    Which file do I actually edit to add stuff to the root menu?
    and i've seen dozens of actual templates for editing the menu.xml and lxde-rc.xml but whenever *I* try to follow that I get a syntax error on openbox --reconfigure
    and insight or even a swift kick in the ass that will land me on a site that has info that actually works would be ever so appreciated (even if its a search term - I think my problem now is that i've spent so much time looking for this one thing that I might actually be insanely over complicating this and not picking out the right information   )

    stlarch wrote:An easy way is to install obmenu
    I can agree with that even though I'm not sure how to use that program very well. I'd rather learn how to manually edit the stuff, and not have to rely on another program
    the main reason I got away from ubuntu was to be semi/forced to learn everything.
    JackH79 wrote:Have you read this here as well?
    I did glance at that but didn't think that was referring to the root menus...I can decifer through the xml those menu files to some extent...the stuff on freedesktop is straight crypic to me atm...but at least now I know I need to take a much closer look hehe.

  • Noob question use dng converter or let LR convert to dng

    Sorry for the noob question but I'm transitioning over to LR from aperture and I believe DNG is  a good move for me.  Now then, is there any advantage to using the converter over letting LR do it?

    It really is the same integrated tool, yes. All the same preferences are there.
    The only thing I am not aware if Lightroom can do is Extract Embedded Originals. But that's not something I'd ever do to my own RAW files.
    Cheers

Maybe you are looking for

  • Plz provide the alv report

    The purpose of the report is to serve as an indicator for when an existing Purchase Requisitions is updated, and requires a Purchase Order to be changed.  Standard SAP offers no real efficient way to communicate changes/updates between Purchase Requi

  • How do I remove white space on top of panelTabbed

    I have a menu bar on top of a panelTabbed. I would like no gap between the the content inside of the panelTabbed and the menu bar. Even if I set the tabs to below I still have a gap. Any ideas? Thanks justin

  • Imported Objects Option Not available Under SWCV ?

    Hi Experts, I need to Import Idoc from R/3 system. But I am Unable to See Imported Objects Option Under SWCV. How Can I Import Idoc in PI 7.0 if any screen shots are available please share it It helps me So much. Thanks and Regards, Ravi

  • PDF TOC Issues

    I am using RoboHelp 8 and the topic titles are truncated in my PDF table of contents. For example, the topic title is Java SDK and it appears as SDK in the TOC. Why are the topic titles truncated and how do I fix this issue? The TOC appears quite goo

  • Screen capture in J2ME

    Hello, Is there a way to get a screen capture on a mobile device of the current display in J2ME? Does anyone know how to do this (even if it is another way)? Thanks in advance.