Create directory using pure java(urgent)

i am doing a project in java.
my program asks user for directory to create .
the program will check whether it already exists if not
it will create a new directory
i don't know what function can be used for this.
someone pleae hepl me put
i have to submit the project by wed.
today is sun

i think that u shud check file class in java api..... i do remember that there is a method to create files, in that class.... as java treats files and folders simultaneously.... so by changing some of the parameters u may be able to create a directory... just check the API

Similar Messages

  • Devloping graphs using pure java without applets and swings

    Hi Guys
    i want to devlop bar graphs,pie charts,line graphs using pure java.i don't want to use applets and swings..does any body help on this asap..
    IT'S VERY URGENT
    cheers
    ANAND

    Go to
    http://java.sun.com/docs/books/tutorial/information/download.html#OLDui
    and get: Creating a User Interface (AWT Only) Archive (tut-OLDui.zip)

  • How to read the content of ms-word file use pure java???

    how to read the content of ms-word file use pure java???

    hi,
    check this: http://jakarta.apache.org/poi/

  • How to Create Symbolic link using pure Java code?

    Hi,
    I would appreciate if someone can tell me how to create symbolic link using JAVA API. I have looked into many forums but couldn't get a better answer.

    Java is likely not the tool to use here, as symlinks are not present in Windows while "pure" Java attempts to be platform independent. You could use Runtime.exec to execute the ln -s command
    http://forum.java.sun.com/thread.jspa?threadID=664475&messageID=3892685
    Good Luck
    Lee

  • Creating webservice using webdynpro java calling bapi from r/3

    hi all,
    as i am new to this area can anyone provide me a guide to create a simple webservice using webdynpro java to call bapi's from r/3?
    i want to consume the created webservice on a .net client.
    Thanks in advance,
    Raghunandan

    You can use the SAP .NET Connector to do it.
    Download from [http://service.sap.com/connectors|http://service.sap.com/connectors].

  • Create directory (using RMI)

    Hi all,
    I would like to create a directory in the server part of a RMI application.
    It appears that I don't have permission to do that...
    Can anyone tell me which permissions do I need to be able to create a directory ??
    My policy file is:
    grant codeBase "file:/M:/project/-"  {
         permission java.net.SocketPermission "127.0.0.1", "accept, connect,resolve";
         permission java.io.FilePermission "M:\\project\\Demo\\*", "read, write";
         permission java.io.FilePermission "M:\\project\\Demo\\Playlists\\*", "read, write";
         permission java.io.FilePermission "M:\\project\\Demo\\log\\*", "read, write";
         permission java.io.FilePermission "M:\\project\\Demo\\Pages\\*", "read, write";
    };And I would like to be able to create directory in the Page directory.
    I have been told that I should allow access to read and write to all the super-directories of the Page directory... Is is true ???
    Thanks for any help,
    Karau

    Here are some standard system properties:
    grant {
         // "standard" properies that can be read by anyone
         permission java.util.PropertyPermission "java.version", "read";
         permission java.util.PropertyPermission "java.vendor", "read";
         permission java.util.PropertyPermission "java.vendor.url", "read";
         permission java.util.PropertyPermission "java.class.version", "read";
         permission java.util.PropertyPermission "os.name", "read";
         permission java.util.PropertyPermission "os.version", "read";
         permission java.util.PropertyPermission "os.arch", "read";
         permission java.util.PropertyPermission "file.separator", "read";
         permission java.util.PropertyPermission "path.separator", "read";
         permission java.util.PropertyPermission "line.separator", "read";
         permission java.util.PropertyPermission "java.specification.version", "read";
         permission java.util.PropertyPermission "java.specification.vendor", "read";
         permission java.util.PropertyPermission "java.specification.name", "read";
         permission java.util.PropertyPermission "java.vm.specification.version", "read";
         permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
         permission java.util.PropertyPermission "java.vm.specification.name", "read";
         permission java.util.PropertyPermission "java.vm.version", "read";
         permission java.util.PropertyPermission "java.vm.vendor", "read";
         permission java.util.PropertyPermission "java.vm.name", "read";
    You should know which resources your application needs to access and to provide the required permissions for them.

  • Automatically creating database using core java by runnin an application

    hi evryone...
    My question is how to create a database automatically usin core java by runnin an application i mean to say tat Is it possible to create a DSN
    where we can directly create a database when we run a java application... plz... help me by solving dis query...
    Thank 'U'

    Your requirements are vague, but it sounds like you want an embedded database. Here are two:
    http://db.apache.org/derby/derby_downloads.html
    http://hsqldb.org/
    You can't create a database directly using "core" java, unless you equal serializing with real dbs.
    Edited by: Brynjar on Jan 26, 2008 4:49 AM

  • Need to change the directory using the java program

    hi,
    can anyone give me the code to change the directory in the java program by using the system command.
    as in C where we use the system call system("cd");
    the same way how to do that in java. please help me with that!!!

    Please search the forums for "runtime.exec", there are dozens of examples posted.
    Although this may not do you any good, since changing the os's directory is not likely to change anything you're using in Java. What are you trying to do?

  • Creating Hyperlink using POI Java API

    Hi
    I am using HSSF Cell and row for creation of my excel report. Now is it possible to create an external hyperlink to my data in the excel. If so can anyone tell me the process.
    Is it possi ble by any other process
    Regards
    Kalyan

    Ok, thanks for your quick answer. I saw you last blog posting regarding simple bar codes, I hope your next one turns up soon (read: today ;-) ).
    I did take a swing at writing my own class according to the user guide, using JDeveloper. One of my problems is that I am not that familiar with the whole java world, my experience lies almost entirely within .NET development. So when I read stuff like "make sure the class is available in the classpath for the JVM" and things like that, it is not a detailed enough description for me in order to make anything out of it. Do you think you can clarify that for me?
    I also wonder if you have any tips and tricks on how to trace/log information from the class when it executes? Because I think that I can actually get it to be called, it's just that something goes wrong and the generated PDF becomes badly formatted and has no content. I can see that some calls are made to a Logger class inside the example class. I guess that I need to set up some runtime configuration for that information to turn up in a file, but again me lacking experience from the java world prevents me from accomplishing that :-)
    Regarding tracing and logging from the java classes for the BI Publisher, can I get them to trace or log debug information in some clever way?
    The app I am developing is a .NET app that calls these classes using a product called juggerNET. I am developing a print direct application for JDEdwards EnterpriseOne since BI Publisher is not entirely integrated into it yet.
    I would greatly appreciate a quick reply this time as well if you can find the time!
    Best regards, Jörgen

  • Error while saving report after creating it using webi java panel?

    Hi,
    Whenever i create report through java panel & RE SDK and then try to save it i got below error
    Could not save the document to the repository for the following reason: [repo_proxy 30] InfoStore::ObjectExport::commit - (Helpers::InfoStore::ObjectExport::commit) Failed to commit objects to server :
    Invalid parent id.(hr=#0x80041e0e)(Error #-2147213810 (WIS 30567)
    Actuallly i want to  save report in User's personal category.
    For that i retrive the ID of that User's personal category then pass it to variable to save
    Code while saving
    //JavaScript
    if ("<%= strSubmit.Equals("submit")%>"=="True")
              var value = new Array();
               value[0] = "<%= strName %>"; //Given value of Report
               value[1] = "<%= strComments %>"; //Value ""
              value[2] = "<%= strkeywords %>"; //Value ""
              value[3] = "<%= strFolderId  %>"; //Value ""
              value[4] = "<%= strCategories  %>"; //Value ""
              value[5] = "<%= strPersonalCategories %>"; //Here i assign the ID of User's personal category
              value[6] = "<%= strRefreshOnOpen %>"; //Value ""
              //save the document
                window.opener.saveDocumentCall(value[0],value[1],value[2],value[3],value[4],value[5],value[6]);
                window.close();
    any help?
    Thanks in Advance
    Amol Mali

    Hi Teda,
    Thanks for the reply.
    Actually i'm setting User's PersonalCategory id to Parent ID not setting Folder ID to Parent ID.
    How can i proceed?
    Please help.
    Thanks
    Amol Mali

  • How to create a setup.exe from a pure java program

    i have some program using pure Java Swing.... i already created jar files to make it executable everytime you click on the icon... but i want to create a installer type like setup.exe just like in VB....
    How on earth can I do that?!?
    Thanks!

    This is one...
    http://www.excelsior-usa.com/jet.html
    And there are a lot more like jexe n stuff.
    But look out. Only some convert it to pure native
    form. The rest are only launchers - you would still
    need a JRE to run yer program.
    extremely sorry. Didnt read the post properly .Sorry

  • Which application of Netweaver will be useful for JAVA professionals

    Hi,
    I am new to Netweaver and need to know which application of netweaver will be useful for me. I am basically a JAVA Programmer.
    What exactly i can learrn in netweaver. EP,Webdynpro or XI.
    Regards,
    Sujan.

    Hi,
        Netweaver Portal(EP) is a frontend which provides one solid interface to all your applications, whether they are SAP or not. It runs on the java platform.
    You can develop pure j2ee applications using the Netweaver Developer Studio, it has plug-ins which help in developing SAP technologies such as Web Dynpro, but you don't have to use it, you can develop your application using pure java technologies like EJB, jsp, etc. It also provides a solution for deploying your apps to the web application server.
    In EP & WebDynPro, you can easily code if you have Java knowledge.Java is a big part of being a Portal Developer.
    Hope this helps.
    Regards,
    Pooja.

  • Creating aVirtual directory Using java

    Hai ,
    I am Using windows XP Operating system, I know how to create a directory using java,
    can you please suggest me a procedure to create a virtual(web share ) directory using java.
    waiting for your reply
    Thanks & Regards,
    Naga Raju

    Virtual Programmer is in the to share the directory
    over the Internet.No, that's a file/web server. :) I see, it's a Microsoft term.

  • How do I create a user, in my context in OID using the Java API

    How do I create a user, with subschema, in my context in OID using the JAVA API
    I need to be able to create new users in my OID, I was doing it in our old iPlant Directory, but I don't seem to see the same methods in the Oracle LDAP API. I figured out how to get and modify the attributes of a user, but I can't seem to figure out how to add a new one.

    Try this code , modify it accordingly
    ------- cut here -------
    import oracle.ldap.util.*;
    import oracle.ldap.util.jndi.*;
    import javax.naming.NamingException;
    import javax.naming.directory.*;
    import java.io.*;
    import java.util.*;
    public class NewUser
    final static String ldapServerName = "yourLdapServer";
    final static String ldapServerPort = "4032";
    final static String rootdn = "cn=orcladmin";
    final static String rootpass = "welcome1";
    public static void main(String argv[]) throws NamingException
    // Create the connection to the ldap server
    InitialDirContext ctx = ConnectionUtil.getDefaultDirCtx(ldapServerName,
    ldapServerPort,
    rootdn,
    rootpass);
    // Create the subscriber object using the default subscriber
    Subscriber mysub = null;
    String [] mystr = null;
    try {
    RootOracleContext roc = new RootOracleContext(ctx);
    mysub = roc.getSubscriber(ctx, Util.IDTYPE_DN, "o=dec", mystr);
    catch (UtilException e) {
    e.printStackTrace();
    // Create ModPropertySet with user information
    ModPropertySet mps = new ModPropertySet();
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"cn", "Steve.Harvey");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"sn", "Harvey");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"uid", "SHarvey");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"givenname", "Steve");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"mail", "[email protected]");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"userpassword", "welcome1");
    // Create the user
    User newUser = null;
    try {
    newUser = mysub.createUser(ctx, mps, true);
    System.out.println("New User DN: " + newUser.getDN(ctx));
    catch (UtilException e) {
    e.printStacktrace();
    ------- end cut --------
    Enjoy.
    Suhail

  • How to use directory alias in Java stored procedure ?

    hi everyone !
    I want use Directory alias in Java strored procedure
    I 'hv created dir alias as
    Create Directory BFILE_DIR AS 'C:\MyImages'
    my java statements -
    myfile="C:\MyImages\myPH01.jpg"
    File binaryFile = new File(myFile);
    instead of giving absolute path I want give directory alias BFILE_DIR
    myfile= BFILE_DIR + "myPH01.jpg"
    File binaryFile = new File(myFile);
    can anyone pl suugest how should I write this in Java procedure
    thanks
    SPD

    hi everyone !
    I want use Directory alias in Java strored procedure
    I 'hv created dir alias as
    Create Directory BFILE_DIR AS 'C:\MyImages'
    my java statements -
    myfile="C:\MyImages\myPH01.jpg"
    File binaryFile = new File(myFile);
    instead of giving absolute path I want give directory alias BFILE_DIR
    myfile= BFILE_DIR + "myPH01.jpg"
    File binaryFile = new File(myFile);
    can anyone pl suugest how should I write this in Java procedure
    thanks
    SPD

Maybe you are looking for

  • Literal too long when inserting 4000 chars to long or clob

    How to avoid getting the 'literal too long' error when inserting a string >4000 chars to a long or clob field?

  • Anyone else seeing this board wonkiness?

    I post a message[.|http://feed3.rxu.d2g.com/9cV.html] Later on I check "My Posts" and see that there has been a reply posted to the thread I['|http://feed2.sep.d2g.com/0jB.html]d posted to earlier[.|http://feed9.sep.d2g.com/9dP.html] Later I check my

  • Preview 5.0 - Case sensitive search

    Is it possible to do case sensitive search in Preview 5.0? I am searching a PDF file for a combination of capital letters but I get hundreds of results of the same letters inside words. Is there any "advanced find" in Preview? thanks!

  • Checkbox that refers to one number(1) table field

    Hi, Did anyone experience this, like having an ASP check box that refers to one number type Oracle table field, in a Gridview. I now even have used one number(18) Oracle table field instead (since in ASP, it seems I have to choose one int16 as the ty

  • Determining audio volume every time iTunes opens

    The library I maintain for my iPod is located and managed on my desktop computer. Any time I open the library remotely using my laptop, it goes through that "Determining Audio Volume" thing for about 1300 songs. I let it run its course last time, thi