A question regarding Directory Structure

hi....
can ne one tell me how to display a directory structures using JTree....
how can i get or retrieve a directory information from a disk
BYE

Take a look at this. This is a complete example.
http://manning.com/sbe/files/uts2/Chapter17html/Chapter17.htm
You can even download the book for free. http://manning.com/sbe

Similar Messages

  • Guidelines regarding directory structure for multiple Oracle homes on Unix!

    Hi All,
    Are there any guidelines published regarding directory structures that should be defined while using multiple Oracle homes on Unix/Linux box?
    I am looking for guidelines regarding admin and oradata folders so that we dont accidentally mess up with the DB contents with a wrong Oracle home.
    Its a development server with 8i and 10g. 11g might also get loaded on the same server in future.
    Thanks in advance...
    Regards

    Thanks Maran.
    I have already checked many installation guides before posting here. All of them mention about creating folders like /admin or /oradata on various mount points but none of the naming conventions really indicate whether it is a 8i database or a 10g database.
    This is required when you are having multiple Oracle installations under /opt and databases are running from different mount points.
    Regards,

  • Regarding directory structure

    hi every one,
    any one plz help me to let me know the reason why we need to create the directory strucutre like the doucument root under which the WEB-INF under which the classes and lib directories.I am a beginner in J2EE,so plz let me know why we need to follow this kind of directory structure.
    krishna gopal.

    Hi,
    The files inside WEB-INF is protected and they cannot be accessed without proper request. Thats the main reason.
    Publicaly accessible files such as html, jsp, gif files can be placed inside the document root. No need to place these files in the WEB-INF.
    All jar files must be placed in the Lib directory, loose class files must be placed in the classes directory.
    I hope, it will help you to start your j2ee from scratch
    all da best
    bye for now
    sat

  • Regarding directory structure in sap

    At OS level in which directory oracle alerts are stored?

    Hi Praveen,
    just some additional information for your question.
    The most important information is written to the alert_<SID>.log. In an SAP environment you usually place this log under %SAPDATA_HOME%\saptrace\background (Windows), $SAPDATA_HOME/saptrace/background for Linux/Unix.
    If you cannot find it there then you are not using the default location for the alert_<SID>.log. In this case you need to check the value of the oracle parameter background_dump_dest  - the value of this parameter tells you where the alert_<SID>.log is written to. You can check this by logging on to the database and showing the parameter:
    sqlplus "/as sysdba"
    show parameter background_dump_dest
    If an error occurs that requires additional logs to be written then you can find them under %SAPDATA_HOME%\saptrace\background or %SAPDATA_HOME%\saptrace\usertrace
    But if Oracle writes some traces to the last 2 directories mentioned, you will see an explicit information about this in the alert_<SID>.log,  e.g.
    Tue Sep 27 08:34:58 2005                                             
    Errors in file /oracle/Q72/saptrace/usertrace/q72_ora_27044.trc:     
    ORA-00600: internal error code, arguments: [stsRelSlot_1], [], [], [],
    Regards,
    beate

  • Question regarding event structure

    I made a vi that controls a stepper motor with controls such as relative angle, maximum frequency, and acceleration. I use an event structure to update the values after new ones are entered by the user. However, recently I was given the task of integrating this with a larger vi that controlled other parts for an experiment (I will refer to this as the motor control vi). 
    Would event structures in both vi's be necessary? If I want to have the controls and update button in the motor control vi, does this mean that the event structure should be completely eliminated from the stepper motor vi? I was advised to use local variables to store the values for relative angle, max freq, and acceleration and then pass all of it when the update button is triggered and creates an event. I have found this to be faulty. Would it be possible to have event structures in both vi's then? 
    Basically, now everything will be updated and passed from the main vi to a stepper motor vi that originally depended on an event structure. Does this require the event structure to be present in only one or both vi's? Thanks.

    Hey, sorry for not including it before, I'll try my best to explain all the parts because I didn't want to overcomplicate things.
    For the Stepper Motor vi, I have none of the DAQ drivers on my laptop at home so I excluded it in the file attached and simply put a text box in there place. The program starts after the run button is pressed, and then the acceleration, f max, and relative angle is entered. Afterwards, pressing update displays the appropriate waveform graph. Pressing "next task" (depending on the state of the use task button) will allow the user to input other values. The use task button simply indicates whether anything will be passed to the drivers or not.
     The main Motor Control vi was done by another person. For my part (all on the right side), acceleration could be set to 3 different speeds and pressing the button triggers the event that sets a certain value to the local variable acceleration. When the update button is pressed on this vi, the new values for max speed, angle, and acceleration are sent to the Motor Client vi. The state of the run, stop, use task, and next task are also passed, and my current problem is how do I use the update button in this vi? Would passing its value create an event in the stepper motor vi? Or would it be much better to just send the controls without placing them in an event structure?
    Attachments:
    Motor Interface.vi ‏60 KB
    Stepper Motor.vi ‏33 KB

  • Data guard directory structure query

    my OS IS WINDOWS2003
    ORACLE VERSION 10GR1
    i have a query regarding directory structure.What i did is i kept exactly the same directory structure on both primary and standby..please clear me on that
    Its what i did
    Primary SID- PROD
    Directory--- D:\oracle\product\10.2.0\PROD\abc.dbf(all datafiles,redo,control are in this directory)
    Archive location on Primary D:\PROD\ARCHIVE\.arc(all archives)
    Now what i did on standby.i created different sid--PROD2
    But i have kept exactly the same directory structure on standby too as
    datafiles in D:\oracle\product\10.2.0\PROD\abc.dbf(all datafiles)
    Archive location on standby D:\PROD\ARCHIVE\.arc(all archives).
    As i kept the same directory structure so i didnot set parameters db_file_name_convert and log_file _name_convert
    Please clear me on this before i move forward to check for archive shipping because i get confused that may be i followed wrong and i should have kept as
    Standby datafiles = d:\oracle\product\10.2.0\prod2\.dbf
    standby archives = d:\prod2\archive
    please tell.i really need your reply urgently
    can this approach of same directory structure affect the primary in bad way or is that fine

    please clear me on my above note
    i have taken the same directory structure as it was on primary even the sid name in directory is same.
    PRIMARY SID= PROD
    STANDBY SID =PROD2
    but datafiles,redo,control and archive location i have kept the same sid as of primary.
    D:\oracle\product\10.2.0\PROD\.dbf
    D:\oracle\product\10.2.0\PROD\.ctl
    D:\oracle\product\10.2.0\PROD\.redo
    i just changed control file with standby and also i did not created standby redo's as i read in document its needed for switchover.so i thought i 'll create later on.
    i am getting error in trace file of standby
    0ra-19527 physical standby redo log must be renamed
    ora-00312 online log 1 thread 1: D:\oracle\product\10.2.0\oradata\prod\reo01.log
    error 19527 creating /clearing online redo logfile 1

  • Jaxb+classpath+directory structure

    I have generated the files using xjc by giving xjc -b work\ItemList.xjs -dtd work\itemList.dtd -p test.jxml -d work from bin directory...
    When i try to compile the generated java files....
    " com.sun.xml.bind"...cannot find...like this its giving for all....Think classpath is not properly set or some problem with directory strcture.can someone help me...
    my cp is
    set JAVA_HOME=C:\j2sdk1.4.2_03
    set JWSDP_HOME=C:\jwsdp-1.4
    set JAXB_HOME=%JWSDP_HOME%\jaxb
    set JAXB_LIBS=%JAXB_HOME%\lib
    set JAXP_LIBS=%JWSDP_HOME%\jaxp\lib
    set JWSDP_LIBS=%JWSDP_HOME%\jwsdp-shared\lib
    set PATH=%JAXB_HOME%\bin;%JWSDP_HOME%\jwsdp-shared\bin;%PATH%
    set CLASSPATH=%JAXB_LIBS%\jaxb-api.jar;%JAXB_LIBS%\jaxb-ri.jar;%JAXB_LIBS%\jaxb-xjc.jar;%JAXB_LIBS%\jaxb-libs.jar;%JAXP_LIBS%\jaxb-api.jar;%JAXP_LIBS%\endorsed\xercesImpl.jar;%JAXP_LIBS%\endorsed\xalan.jar;%JAXP_LIBS%\endorsed\sax.jar;%JAXP_LIBS%\endorsed\dom.jar;%JWSDP_LIBS%\jax-qname.jar;%JWSDP_LIBS%namespace.jar;.
    According to me classpath i think its ok....Problem regarding directory structure.Pls xplain.
    Thanks in advance

    Right ... I just realized that %JAXP_LIBS%\jaxb-api.jar doesn't exist.
    Run any of the examples with "ant -v" to see what the classpath should be.
    -- Ed

  • Question re: Blaze DS Directory Structure Following Turnkey Installation

    Hello. I've been building client-side apps with flex for a while and have started getting into backend development.
    I have read up a fair bit on blaze ds and have downloaded the turnkey installation and successfully ran a few of the samples...but i have a couple of questions re: the directory structure if someone could help...i unzipped the turnkey into Blaze_ds folder on the desktop...
    a) .........\Blaze_ds\tomcat\webapps\blazeds\WEB-INF  - could u please explain the concept of the WEB-INF directory and the folders inside it (flex, src, classes, lib, etc.)
    b) ......... \Blaze_ds\tomcat\webapps\samples - there are all the samples in here (eg. testdrive-chat, testdrive-101, dashboard, etc.)...and there is also a WEB-INF and META-INF folders...just wondering why there isn't WEB-INF/META-INF inside each sample folder
    Finally, can someone also let me know the concept of localhost and the port number 8400 and are there any good books on blaze ds?
    thx!

    There's really not much difference. In some cases, you might already have a web application you are using so you could just copy the contents of the blazeds web app into your existing web application.
    Application servers can host more than one web application and a Flex application that uses BlazeDS can be deployed on a different web app than the one where BlazeDS is running or a different server entirely so it really just depends how you want to set things up.
    Hope I'm not just making things more confusing for you. . .
    -Alex

  • Directory structure question...

    I've been w/ three different companies doing Java development now, and each time I've come in once the project is already in progress and the directory structure is set up. What I see is a similarity:
    com.<company name>.<project>.<sub-units>
    examples:com.delta.kiosk.server
    com.delphi.shipping.guiIs this a common way of laying out directories and if so, what is the benefit (other than standardization)?

    I always figures that it was primarily a namespace issue.
    org.apache.ecs.Attributes
    org.xml.sax.Attributes
    are examples of class names that would have resulted in a collision without the prefixes. A full class name has the package name before it so
    String
    java.lang.String
    are the same thing, String is just shorthand for the latter. But if there are two of the same class then the prefix will help the compiler know where the class is supposed to come from. com.<company name>.<project>.<class> is a good way to ensure that you will not encounter a collision.

  • Export images to a directory structure based on a collection tree?

    A question:
    Will lightroom have the capability to export images to a directory structure which mirrors a collections logical structure?
    The reason I ask this is that when I create websites using third party tools (eg, Jalbum) I typically generate a flash or HTML based site with an menu structure for navigating the images.
    So, the image interface is not simply a "flat-file" display as per the templates in Lightroom beta.
    To do this, with previous image management tools (eg, iMatch) I create a hierarchy of images based on the categories (or collections) that the images are assigned to, export the images in a folder tree reflecting their categories (or collection), then use, say, Jalbum, to generate the website with the menu tree reflecting the folders/images.
    This is extremely useful for more complicated image websites with categories and a large no of images.
    If this function was built into Lightroom I guess it would be in the export function such that the "write to folder" box could take an argument {collection name} which would create a folder tree reflecting the collections logical tree which is being exported.
    Apologies if this topic has been raised previously. But this function is extremely useful if you are using third party html tools or simply building websites by hand.
    Regards
    Alistair

    I started simmilar thread in Lightroom Feature Requests few months ago, but can't find it anymore since new forum version...
    What I can suggest as a new feature is export to directory structure from collections or second option from keywords. Probably more usable and easier to implement would be from collections.
    What I need it to export many photos to different directories pretty often, and this would be great help since I could arrange them in collections and collection sets. Then select collection set and export it in a manner that collection set would be main export directory, and each collection within the set would be exported to its own folder within main collection set export folder.
    This would be much appreciated feature in near future
    Thank you for great product by the way

  • Standby Redo Log Files and Directory Structure in Standby Site

    Hi Guru's
    I just want to confirm, i know that if the Directory structure is different i need to mention these 2 parameter in pfile
    on primary site:
    DB_CONVERT_DATAFILE='standby','primary'
    LOG_CONVERT_DATAFILE='standby','primary'
    On secondary Site:
    DB_CONVERT_DATAFILE='primary','standby'
    LOG_CONVERT_DATAFILE='primary','standby'
    But i want to confirm this wheather i need to issue the complete path of the directory in both the above paramtere:
    like:
    DB_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    LOG_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    Thanks in advance for your help

    Hello,
    Regarding your 1st question, you need to provide the complete path and not just the directory name.
    On the standby:
    db_file_name_convert='<Full path of the datafiles on primary server>','<full path of the datafiles to be stored on the standby server>';
    log_file_name_convert='<Full path of the redo logfiles on primary server>','<full path of the redo logfiles on the standby server>';
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    How are you creating the standby database ? Using RMAN duplicate or through the restore/recovery options ?
    You can create the standby redo logs later.
    Regards,
    Shivananda

  • Import already existing directory structure into DFS namespace?

    Hi all,
    I'm planning to migrate three file servers to a single DFS namespace and after reading the official docs and numerous blog posts I'm still unsure about the right way to do it.
    The "main" server already has a share with a complex directory structure, called \\server1\team, and that share shall become the root of the new DFS namespace, lets call it  \\domain.local\team.
    Part of that already existing directory structure is this folder: \\server1\team\admin\communication\archive. The folder "archive" contains thousands of files in numerous folders and shall become a dfs link to another share \\server2\archive. But
    before I can create the folder "archive" as a dfs link I have to create the folder "admin" in the dfs hierarchy of course, then below that the folder "communication"
    Question: When I try to create a folder "admin" in the dfs namespace, I get the error message "the folder cannot be created in the namespace. The file exists."
    Ok, the folder "admin" indeed exists, but how can I "import" this branch of the existing directory hierarchy into the dfs namespace?
    Do I have to rename the existing folder "admin" to e.g. "admin2", then create the dfs folder "admin" and move the complete directory structure below "admin2" to "admin"? Or can I simply make the existing folder
    "admin" a dfs folder?
    Thanks in advance!
    Regards
    Christoph

    Mandy, thanks for your feedback!
    I have to describe my problem more precisely: creating the root of the new DFS namespace is *not* the problem. This worked for me exactly as you expained it. The problem appears when I try to create a folder below that root in the DFS namespace. If that
    folder already exists in the share you cannot choose how to handle security settings but you get an error message, and that's it.
    This may be helpfull to explain what I want to achieve:
    Old structure:
    \\server1\team - folder admin - subfolder "archive" - lots of subfolders and files
    Now I want to move all files and folders from "archive" to \\server2\archive and link this share into the new DFS namespace, so that our users don't notice any change when they access that archive folder.
    new structure:
    1. Create DFS namespace root: \\domain.local\team  -> \\server1\team   (works!)
                |
    2. Create folder admin  (problem!)
                |
    3. Create subfolder "archive" -> \\server2\archive (not possible becaues "admin" couldn't be created)
    I could perhaps create a DFS namespace with the root \\server1\team\admin\archive and link that to \\server2\archive, but I would like to avoid creating a new namespace for each share which from \\server2 which I mount into some subfolder of \\server1\team...
    Thanks for reading.
    Regards
    Christoph

  • OVM 3.0.1 - directory structure & adding resources

    Afternoon everyone,
    I've got OVM 3.0.1 up and running, so far so good.
    I had a question about the repository directory structure. If this has been addressed already, my apologies.
    In OVM 2.x, it was possible to copy over a variety of data (.iso's, .img's, templates, etc.) directly into the seed, iso and running pools on OVS and then register them through OVM. Is there a way to do this in OVM/OVS 3.0.1? Is it a matter of getting the correct syntax in the 'download location' dialog box that refers to the OVS 3.0.1 box? Or do you need a remote staging resource set up in order to import data?
    Best regards,
    J.

    861743 wrote:
    In OVM 2.x, it was possible to copy over a variety of data (.iso's, .img's, templates, etc.) directly into the seed, iso and running pools on OVS and then register them through OVM. Is there a way to do this in OVM/OVS 3.0.1? Is it a matter of getting the correct syntax in the 'download location' dialog box that refers to the OVS 3.0.1 box? Or do you need a remote staging resource set up in order to import data?You need a remote server to import data. This can be the Oracle VM Manager machine itself, as long as you can access it via http/https from the Oracle VM Servers (as the import happens on the Oracle VM Server machines). Just install Apache on your VM Manager machine and stash your templates/assemblies in /var/www/html.

  • How to install an entire directory structure and files with the LabVIEW installer

    I think I may be missing something on how to do this - preserve a file directory structure in the LabVIEW build process.
    Is there an easy way to distribute an entire directory structure (multiple directory levels/text files) and have the LabVIEW build process properly preserve and install them?   I included a directory in my build specification but it completely flattened the file structure and then so when the installer builds it, the resulting structure in the /data directory is flattened as well.    I'd prefer not to go through each file (~100) and setup a specific target location.   Is there an easy way to preserve the file structure in the build process/installer process that I am missing (maybe a check box that I didn't see or an option setting somewhere)?
    -DC

    Hi DC
    Sorry for the delay in responding to your question.
    You should be able to do this using a 'Source Distribution' as described below:
     - Right click on 'Build Specifications' and select 'New' - 'Source Distribution'
     - Provide a name
     - Add your files to 'Always included' under 'Source Files'
     - Under 'Destinations' select 'Preserve disk hierarchy' and ensure that 'Directory' is selected as the 'Destination type'
    When building an installer your can then choose to include your source distribution and it will be installed to a location of your choosing.
    Hope this helps.
    Kind Regards
    Chris | Applications Engineer NIUK

  • Hana db filesystem directory structure and process command line

    Hi experts,
    Could someone provide please actual directory structure of Hana db filesystem?
    Generally speaking, I need to model some Hana db(of 1.0, 1.5 versions) entities. Among them:
    Schemas
    Data files
    Log files
    Important configuration files
    Database parameters(guess found in config files and command line)
    Database version
    The question is where i can find such information having access to filesystem?
    One another question is how common Hana db commandline looks like?
    Does it have one process or several?
    It would be perfect if someone give some ps -aef command result grepped with relevant Hana Db processes
    Thanks,
    Eugene
    Edited by: Eugene Kondrashev on Dec 28, 2011 12:51 PM

    Eugene Kondrashev wrote:
    > * What are the processes relevant to Hana Db?
    This is still changing pretty much ...
    Anyhow, just check the running services in HANA studio (landscape tab) and you have all the process at hand.
    > * What is the signature of starting command?
    What is that supposed to mean?
    > * How can I identify running Hana Db instance on a host having shell access?
    How about the HDB command?
    SUSE Linux Enterprise Server 11 (x86_64)
    /usr/sap/HAN/HDB00> HDB help
    Usage: /usr/sap/HAN/HDB00/HDB { start|stop|reconf|restart|version|info|proc|admin|kill|kill-<sig>|term }
      kill or kill-9 should never be used in productive environment!
    /usr/sap/HAN/HDB00> HDB info
    USER       PID  PPID %CPU    VSZ   RSS COMMAND
    hanadm   14682 14677  0.0  85580  2180 sshd: hanadm@pts/0
    hanadm   14683 14682  3.3  16768  2980  \_ -bash
    hanadm   14756 14683 18.1  13652  1680      \_ /bin/sh /usr/sap/HAN/HDB00/HDB info
    hanadm   14782 14756  0.0   6620   892          \_ ps fx -U hanadm -o user,pid,ppid,pcpu,vsz,rss,args
    hanadm   31638     1  0.0  42624  1820 sapstart pf=/usr/sap/HAN/SYS/profile/HAN_HDB00_vml3012
    hanadm   31645 31638  0.0 528216 151400  \_ /usr/sap/HAN/HDB00/vml3012/trace/HDB.sapHAN_HDB00 -d -nw -f /usr/sap/HAN/HDB00/vml3012/daemon.ini pf=/usr/sap/HAN/SYS/profi
    hanadm   31665 31645  0.5 5001972 1002844      \_ hdbnameserver
    hanadm   31723 31645  0.0 4367024 244336      \_ hdbpreprocessor
    hanadm   31744 31645  1.9 5664496 1779448      \_ hdbindexserver
    hanadm   31752 31645  3.6 7197924 3359440      \_ hdbstatisticsserver
    hanadm   31759 31645  0.6 5289164 1507684      \_ hdbxsengine
    hanadm   32017 31645  0.0 429188 124344      \_ sapwebdisp_hdb pf=/usr/sap/HAN/HDB00/vml3012/wdisp/sapwebdisp.pfl -f /usr/sap/HAN/HDB00/vml3012/trace/dev_webdisp
    hanadm   31527     1  0.0 292676 110380 /usr/sap/HAN/HDB00/exe/sapstartsrv pf=/usr/sap/HAN/SYS/profile/HAN_HDB00_vml3012 -D
    > * Does Hana DB started with SAP start profile? If so, could someone point me to the example of such a profile?
    ?? seriously... take a guess
    regards,
    Lars

Maybe you are looking for

  • I can't burn a working DVD from an ISO

    I'm running CS6 and burning a simple DVD with two timelines and one menu.  Should be easy. When I burn a DVD, it works just fine. But I want to make an ISO so someone else can burn the DVD for themselves.  The DVD burns just fine.  Its when I go to p

  • Problem with multichannel output, DTS and DD thru optical

    I am using my iMac as a media center in my living room, but I am having trouble playing files encoded with DTS and Dolby Digital audio -- they will only output a stereo signal. My equipment: - iMac G5 w/ Leopard - Pioneer VSX-D509S receiver - Toslink

  • How to read file asychronous and show progress bar??

    Hello Everyone, I am new here and this is my first post here. I made a desktop application in Adobe flex builder 3. In the application I took the path of a folder and merge all the file present in that folder in a new file. I want to show the progres

  • Not happy with window appearance

    The subtle gray window appearance is depressing especially when there are several window's open it's hard to tell which is which. To bad unsanities haxies shape shifter is not fully working in Leopard. Are there any altervatives to shape shifter ?

  • Problem connecting to Mysql using JDBC

    Hi Everyone, I am trying to connect Mysql ad java applet and I am using the Mysql jdbc connector. I Took the mysql-connector-java-5.0.8-bin.jar file and put that in the library of jdk. Now i used the following code to connect to the database using Ne