Directory struture

Hi there,
A am new to java technology, learning java in private classes and do not have any live project experienced. My query is, how to make folder structure at the time of doing own project so that, in future, if I get the chance in the Co. to work on live project, it should not be confusing for me. I have heard some package concept is there, what is that ?
Any help would be appreciated.
Thanx

Many questions are answered here: http://java.sun.com/learning/new2java/index.html Have a look at Step 3: step-by-step programming. It explains how to setup a directory structure for a simple project.

Similar Messages

  • Directory structure in a JSC project

    Hi, I apologize if this is covered somewhere but I can't find it. I'm trying to set up a JSC project in a directory struture that is already defined. I can't find a way to tell JSC where the source, lib, and web files are relative to the project directory. Is there a way to change these defaults? JSC is not the only IDE in use for this project and rearranging the file tree strustuce to suit JSC is not an option.
    Again this should be obvious but I've spent a lot of time trying to get the answer and haven't. Thanks for any pointers.

    Hi,
    Could you provide a link to the "Jakarta source structure"? I understand the standard for web apps but normal practice is to keep java source and libraries separate from web content. Web content has a fixed structure imposed by the servlet spec and that's fine, however it doesn't include source code as far as I know. Its also pretty standard practice to copy "Lib" files to Web-Inf/lib as part of the build process. Look at the standard WAR task in Ant to see what I am talking about.
    I'm not asking for an arbitrary structure just an industry standard one. Currently it is difficult to use this tool in our organization since it will have to coexist with others (Jbuilder and Eclipse for the time being).
    Thanks
    Jim

  • Problems with the path

    Hi
    1. I am using WSAD 5.0
    2. I have created a web project it has the following directory struture
    Java Source
    MyFile.java // This file needs to access the xml in MyData
    Web Content
    // MyData contains few xml and js files
    MyData // POSITION 1
    META-INF
    WEB-INF
    classes
    lib
    MyData // POSITION 2
    MyShow.jsp
    3. In the buildpath the source is set to Java Source
    **Question 1: Which is the correct POSITION of the Folder 'MyData'?
    1. Assuming the folder is placed in POSTION 1
    Java file
    -- What would be correct relative path access the xml file in MyData
    (i tried ../Web Content/MyData/abc.xml,
    ./Web Content/MyData/abc.xml and
    /Web Content/MyData/abc.xml but NOTHING worked)
    <I know the ./ is for current directory and ../ is for parent one and / is for the root >
    Jsp file
    I am ABLE to access the javascript files with path /MyData/abc.js
    2. Assuming the folder is placed in POSTION 2
    Java file
    -- I am ABLE to acces the xml file with the path /MyData/abc.xml
    Jsp file
    -- The file is NOT ABLE to access the path /WEB-INF/MyData/abc.js (WSAD automatically also creates the same path)
    **Question 2: Depending on the position of folder how would i access MyData from JSP or Java file
    -- One more important thing is that in WSAD 5.1 the folder created is 'WebContent' instead of 'Web Content' <without space>, Does it has any thing to do with it?
    Any help would be highly appreciated, any links which would give my insight on this will also be of immense help
    regards
    Tarun Dhillon

    I am not sure i understand your problem, however you need to arrange your directories so that they are in a logical order from the context root for your application
    for Websphere Developer questions, you should probably try an websphere newsgroup as well.

  • No ActionResult returned for action [/strutsModule/login] in Struts module

    Hi these are the steps followed by me in developing a struts portlet.<br>
    1) I created an Application <br>
    2)Created a new Portal project in the application.<br>
    3)I created a struts project and i placed all my jsps in the folder strutsModule.<br>
    4)In the WEB-INF src folder i placed my actoinClasses and actionForms.(package struture followed like com.portal).<br>
    5)Renamed struts-config.xml to struts-auto-config-strutsModule.xml.<br>
    6)Created a portlet and Portla Pages.<br>
    7)Build an ear and run.<br>
    <b><b><b>Directory struture is as follows.
    <br>strutsInter(Applicaton name)<br>
    data<br>
    strutsInter(Project name)<br>
    campaigns<br>
    framework<br>
    resources<br>
    strutsModule(all jsps kept inthis directory)<br>
    visitorTools<br>
    WEB-INF(.pageflow-struts-generated<br>
    classes<br>
    lib<br>
    -src<br>
    -com<br>
    +bea<br>
    -portal<br>
    +action(LoginAction.java)<br>
    +form(LoginForm.java)<br>
    ApplicationResources.properties<br>
    Controller.jpf<br>
    error.jsp<br>
    index.jsp<br>
    Inter.portal<br>
    Inter.portlet<br>
    Modules<br>
    Libraries<br>
    Security Roles<br></b></b></b>
    Still following these steps i get an <b>No ActionResult returned for action [strutsModule/login] in Struts module [strutsModule]. </b>
    <br>Any corrections else any basic struture i must follow to avoid these errors.Plz give me the directory struture i must follow.<br>
    Thankx,<br>
    RAGHU
    <b></b>

    hi ;
    if it's the first time you try to create a struts module portlet please ensure that you have the following node in your web.xml :
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>com.bea.wlw.netui.pageflow.PageFlowActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/.pageflow-struts-generated/jpf-struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>config/-global</param-name>
    <param-value>/WEB-INF/.pageflow-struts-generated/jpf-struts-config--global.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>moduleConfigLocators</param-name>
    <param-value>com.bea.netuix.servlets.controls.content.StrutsContentModuleConfigLocator</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>

  • Image.createImage() problem with eclipseME IDE

    I create directory struture like this:
    PhotoView
    |- class
    |- deployed
    |- res
    |- src
    |- verified
    Images was put in res.
    However, I am allways catched exception with the bold line.
    Please, help me.
    Thanks.
    private void showImage(int index) {
    imageForm.deleteAll();
    Image img;
    try {
    img = Image.createImage("/pBirds.png");
    } catch (Exception e) {
    img = null;
    e.printStackTrace();
    ImageItem imgItem = new ImageItem("pBirds.png", img,
    ImageItem.LAYOUT_CENTER, "Image");
    imageForm.append(imgItem);
    display.setCurrent(imageForm);
    }

    Maybe you should try to add the res folder to your project path?
    project properties-> build path add folder....

  • How much effort in upgrading mid-size app from WorkShop 8.1 to 9.2.2?

    Hi all,
    We have a mid/large size J2EE app built using WorkShop 8.1 SP5 that we are now thinking of migrating to 9.2.2. Our application uses most 8.1 features like pageflows/netui/controls/schema projects/ejbs etc, and can be considered relatively mid/large size (around 200 jsps, 200 tables, etc). My understanding is that we cant simply ungrade just the Server to 9.2, we need to upgrade the source-code too to be 9.2 compliant. Is that true?
    Also, has anyone ever undertaken, or heard of, such a migration effort? I am trying to scope it down, but have no clue. Also, is WorkShop 9.2.2 the right version to upgrade to? We dont want to goto 10 yet as our data center doesnt support it, so am guessing 9.2.2 is the latest 9.2 version available.
    Thanks in advance for any answers...they will be a HUGE help.

    Hi Jacob,
    Thanks for your help so far...I was wondering if someone could answer a question: Our old 8.1 application was organized as an EAR project in workshop 8.1, under which there were multiple other projects, such as schema projects, ejb projects etc.
    The upgrade wizard that we ran to upgrade to 9.2.2 created a new directory structure, where the EAR project was at the same level (more of a peer than a parent) of the other projects.
    My question is: I am thinking this new structure is not the "split directory" struture that i read in WLS docs. If so, how do i generate the EAR file for our entire application? Do i need to first modify the properties of the EAR project to refer to the other projects and then export its build file? I dont think that will work, because i tried exporting the build file for the EJB project and had to make tons of customizations (mainly coz our EJBGen needed to use the properties file option etc), to get the EJBGen to properly generate the descriptors etc.
    I think my main stumbling block right now is I cant imagine in my mind how our application can be deployed on our local machines as well as prod servers: I will be able to correct the compilation errors we have so far, but then what? How do I then get the application compiled and deployed?
    Am sorry for this long winded question, but i got thrown off by the dir structure the upgrade wizard created, and need some pointers.
    Thanks in advance.
    Vik.

  • FTP catalog to client - He can't see changes I made to files

    Client sent me all his images which I edited in LR3 on a Mac. I have exported catalog without negs and FTP'd to him using FETCH to his server. What does he need to do now?  The original folder name has changed from my end. Does that matter? He has all his original files. Does he import into his LR Cat. and then link to original images?
    Please advise.  Thanks.  I'm In Texas.

    If I understand what you are asking correctly, then a couple of issues are involved.
    Firstly; when he sent you the images and you imported them, did you use Add or Copy/Move to import them into LR?  If you used Add, then the original directory structure is still the same as what he sent you.  So by exporting a return catalog file, if he simply opens the catalog file (not importing or anything, just opens it) then all he should have to do is right click on the top level folder and navigate to his own location of the directory struture.  LR will fill everything in from there.
    If you did Copy/Move, then all bets are off, since he would have to right-click and locate each and every image (or at least each folder) in order for them to reconnect to the image.
    In the future, if you plan on doing it again, make sure you use the exact same directory/folder structure as your client. You could even name a temp drive the same if you wanted to make it even easier for the return catalog to open correctly.
    Cheers!

  • Unsupported media

    Warning
    100EOS7D contains unsupported media or has an invalid directory struture.  Please choose a folder whose directory structure matches supported media.
    I did not knowingly change anything that I have been doing for months... any ideas??  Thanks.

    This type of message appears when there is material in multiple formats on the same card.
    You may want to go through the card while it is in the camera and verify that all the material is in the same format and that none of the files are corrupted.
    x

  • Recovery the database

    Hi,
    I have 2 DBs primary and standby, and i did a full back up on Saturday for the primary DB, and now i am doing recovery for the DB in the standby ( rebuild the standby DB), everything is went smooth but not i have this error which i dont know if it is good or bad
    ORA-00279: change 6555156022 generated at 07/14/2008 12:35:16 needed for thread
    1
    ORA-00289: suggestion :
    /data/oradata/xxxx/archive/xxxx_1_8766_657631822.arc
    ORA-00280: change 6555156022 for thread 1 is in sequence #8766
    ORA-00278: log file
    '/data/oradata/xxxx/archive/xxxx_1_8765_657631822.arc' no longer needed
    for this recovery
    should i become worry or not, and if should i should become worry, what should i do?
    byw, it is stilling running right now
    my DB is oracle 10.1.0.5.0
    OS is linux
    Thank you

    Always post your query in lower case.
    Look at the metalink Note: 419137.1 -- Restoring Database Using rman On a Different Node with Different Backup and Database Directory Strutures
    With best regards
    Shan

  • Run Servlet Class on Sun Application Server  PE 9.0

    Hi,
    I have a problem to run an servlet class on Sun Application Server PE 9.0.
    My directory struture are given below :-
    C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\test.class
    C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\web.xml
    please give me answer in detail.

    Did you web archive the WEB-INF into .war file and then deployed it with AppServer admin console?

  • RUNNING PROGRAM IN BACKGRUND

    I'm running a program that should create a file with 'opendataset for output...' and it create the file.
    When I run the same program in background the file is not created.
    Same user then same right!
    do you have any idea to help me?
    regards,

    Hi Stephen,
    Typically in a multi-server environment, load balancing takes care of distributing the background jobs to different application servers. So, there needs to be a file handling strategy in place. Here is how it works.
    1. Create a file structure for all your requirements.
    2. Mount this file directory struture on all the application and database servers. OS people will be doing this. By doing this, you will remove the dependency on which server program runs. Also, any file can be created/changed/deleted from ABAP, irrespective of which server it is run on.
    3. Create logical filenames so that all programs can use them as a standard. This will also help in centralizing the changes to the directory structure. Suppose, you want to point a logical file directory to a different physical directory, you do it in one place not in every program(if you don't use logical files).
    Hope this helps,
    Srinivas

  • URLs for CSS & Javascript

    Can someone please tell me why DW does not automatically enter the "dot dot slash" (../) in the head portion of a HTML file for a url?  If I select my CSS file in the CSS Styles pane and insert the link DW enters it into the head portion just fine.  However, I have to manually type in the "../" portion.
    I could not figure out why Thickbox for JQuery (both being scripts) were not working.  After I manually typed in the "dot dot slash" in front of the url it worked just fine.  The same problem occurs when I place a graphic as in the body portion of the file well.
    While I understand that Dreamweaver is supposed to better, it does handle CSS much better, I still find it frustrating at the idiosyncrasies.  And the Live View is just not as good as good as GoLive's Layout view which shows you a better representation of a complex page.  DW's Live View will at times show the page in a distorted fashion.
    Thanks in advance.

    Bregent,
    Thanks for the reply and to answer your question.
    After clicking on "Attach Style Sheet" in the CSS Styles pane DW creates the link in the head of the file as:  <link href="css/1896.css" ...>.  My CSS file resides in a sub-directory where I put all my CSS files.  To make it properly work I have to change it to read <link href="../css/1896.css" ...>  The same also applies if I have an image url reference within the CSS file.
    This also applies to any scripts I place in the head of the file using the Insert pane.  If I don't make the change then the scripts for jquery and thickbox do not work.  Make te change and thickbox works just as advertised.
    Meanwhile down in the body portion of the file if I place an image within a DIV I have the same problem.  After placing the image file it reads <img src="images/00a.png" ...> and I have to change it to <img src="../images/00a.png" ...>.  If I do not change it then the image does not display either in Live View or Live Code.  And it does not display in IE7 either.
    My directory struture is as follows:
          1896
             /css (1896.css, overflow.css, thickbox.css)
             /images (00a.png, 00b.png, 000.png, ... 050.png)
             /pages (00a.html, 00b.html, 000.html, ... 050.html, overflow-00a.html, overflow-00b.html, ... overflow-050.html)
             /java (jquery.js, thickbox.js)
    If you like I could post to my site a copy of each file structure.  Though I showed what all the html and png files would be I only have the first html file generated.  It will be the boilerplate for all the others.  The png files have all been created  You can view a working example of the first file on my site here.
    All this having been said I finally figured out what is going on.  When selecting a CSS file I need to manually type the "dot dot slash" into the "File/URL:" box.  The same applies to a script or an image.
    An odd behavior of the software.  Why should I be forced to manually type in the relative path?  DW is defaulting to "thinking" that all the files for a site will be in one large directory.  I do appreciate the site management tools of GoLive more as I get into DW deeper.

  • ECM 10GR3 and Active Directory

    Hi all,
    Somebody can give me some explanation how Active Directory works on ECM?
    My ECM is installed over an Linux machine.
    On ECMs Admin Server>Internet Configuration i enabled the option Use Microsoft Security > Active Directory Security
    On login page the button Microsoft Login appear.
    How can i configurate ECM to work with my AD struture now?
    Any material for reading can help.
    Best regards
    Daniel

    aha... Well i needed a few days figuring out how to configure my ecm for an AD.
    The thing is.... Your ECM is installed on a linux server so you can't configure the AD as an AD. You will have to add an LDAP provider instead. You also need an extra component witch adds a special class for the provider so you can add the AD as an LDAP. Just look at the topics, you will find one from me about ldap.
    edit: here is the topic:Using ldap for user auth.
    Message was edited by:
    Passero

  • Remove Portal Content Directory  From Personalization window

    Hi,
    I have requirement...   we have a home page, which contain a set of iview and page. When logged in user personalize this page, he is able to see portal content directory and its folder structure provided he has end user permission.
    Is there any option to avoid displaying folder struture. Or is there any option to hide portal content directory in personalization even user has end user permission.
    Regards
    Baby

    Hi,
    please check your permissions of the PCD. (Right click on folder -> open -> permissions)
    End Users can only see PCD folders which have the "End User" flag enabled.
    All permissions are inherited by successing folders. So don't set the End User flag in general.
    Additionally check this discussion:
    Best regards,
    Olaf
    Edited by: Olaf Böttcher on May 11, 2009 1:46 PM

  • Refresh System Data in Integration Directory PI 7.11

    Hey,
    I have setup a new technical system and a business system in SLD, but now I still can't find it in Integration Directory.
    I knew from the later PI Version, that there was an option to transfer SLD data to integration directory, but now I can't find it
    anymore.
    Can anybody help?
    Thanks!
    Michael

    I have setup a new technical system and a business system in SLD, but now I still can't find it in Integration Directory.
    I knew from the later PI Version, that there was an option to transfer SLD data to integration directory, but now I can't find it
    Tools (or right-click in ID) --> Assign Business System --> follow the wizard...it will assign the business system from SLD to ID

Maybe you are looking for