How can i open "my computer" in java

How can i open ]my computer[b in java                                                                                                                                                                                                                       

Two options:
1) Execute
Runtime.getRuntime().exec("explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}");2) Look at javax.swing.JFileChooser
The first option will do what you want, but it is specific to Windows only (I tested it on XP, I don't know if it'll work on other versions). The second is cross-platform, but won't give you the same view as a native explorer.

Similar Messages

  • How can i open the popup from java class

    Hi,
    Please tell me how can i open the popup from java class.
    I am using jdev 11.1.1.7.0
    I have used the below code which works fine in jdev 2.1 but it will have some errors in 11.1.1.7.0.
    Please tell me some way to do this in all jdev versions.
    Bean obj = (Bean)RequestContext.getCurrentInstance.getExternalContext.getPageFlowScope(“obj”);
    Code for hide pop-up
    FacesContext context = FacesContext.getCurrentInstance();
    String popupId = obj.getPopUpBind().getClientId()
    ExtendedRenderKitService service = Service.getRenderKitService(FacesContext.getCurrentInstance(),
    ExtendedRenderKitService.class);
    String hidePopup = "var popupObj=AdfPage.PAGE.findComponent('" + popupId +
    "'); popupObj.hide();";
    service.addScript(FacesContext.getCurrentInstance(), hidePopup);
    Code to Show pop-up
    StringBuffer showPopup = new StringBuffer();
    showPopup.append("var hints = new Object();");
    showPopup.append("var popupObj=AdfPage.PAGE.findComponent('" +
    obj.getPopUpBind().getClientId() + "');popupObj.show(hints);");
    service.addScript(FacesContext.getCurrentInstance(), showPopup.toString());
    Code need to be added in jsff pop tag
    binding="#{pageFlowScope.bean.popUpBind}
    Variable need to be added in Bean.java
    private RichPopup popUpBind;

    Hari,
    Since you're using a non-public build of JDeveloper, you should be using a non-public forum.
    John

  • How can we open any file using JAVA...

    Hi all
    i trying to make code in that code i choose a file using a filechooser then put that file name in FILE object like (File file = fileChooser.getSelectedFile();)
    but the thing is how can i open that file for example if that file is HTML file then opens in IE or if that file is MS Word document that open in Word, like that
    is there any suggestions
    Thanx
    Regards
    Satinderjit

    start is a windows command-line utility.
    start foo.doc will start Word (or Star Office or Word Perfect or whatever is registered for the .doc extension),
    start bar.htmnl will start your registered browser etc.

  • How can I open a program using Java and then perform certain tasks with it?

    For example, and this is just an example, I want to write a Java program that opens MS Paint and then manipulates that program. This can be useful to automate certain tasks.
    My question is whether this can be done writing Java code and if so how? If not possible, would I need to use a scripting language instead?

    write a Java program that opens MS Paint and then
    manipulates that program. This can be useful to
    automate certain tasks."manipulates" is a too wide term. Let me narrow down:
    1. If you want to open (run) the program and then shut (kill) it down it is possible and fairly trivial to do in java. Look up Runtime and Process classes in java.lang package
    2. If you want to open the program and edit some image/document in the opened program. It is very difficult in java. May be possible... using some Java/COM bridge, assuming your native program is COM/Active-x compliant. Note: these things go beyond the boundary of JVM and needs to interact with host OS and involves shared memory, ipc and all "low level" stuffs.
    If you want to be able to play around with these COM/Activex apps- choose .NET instead :-)
    3) You can open the program from java and pass it some command line arg as in (1) above and then the program will load that document/image at startup automatically. You may then edit the doc/image thru that program itself. However, Java is not doing anything for you here, other than just starting off your native mspaint.exe ot notepad.exe.
    -BJ
    Message was edited by:
    Bimalesh

  • How can I open tabs on one computer from another computer

    I used to be able to open a tab from my home computer while using my computer at work. Now, I don't seem to be able to do it. I have a sync account set up. How can I open a tab from one computer at a different computer?

    First, be sure you're Syncing correctly:
    https://support.mozilla.org/en-US/kb/how-do-i-set-up-firefox-sync?esab=a&s=Sync&r=4&as=s
    As far as I know, Last Session is synced, too, so you can use
    History -> Restore Previous Session
    or
    History -> Recently Closed Tabs

  • Help--How can I open only one java program at one time?

    How can I open only one java program(same program) in Windows at one time?

    In Java 1.5, you can use the JVM's own monitoring APIs to examine what other JVMs are running on the system, and what applications they're running.
    It's general and powerful, but complex. The socket/file/whatever approach is cleaner, and probably more suited to your usage.
    Don't bother trying to use the Windows task manager for this sort of thing. You have to write messy native code, and it isn't reliable after all that anyway.

  • How can I get my computer to open Adobe Reader Standard?

    How can I get my computer to open Adobe Reader Standard?

    Install it. Open it.
    If you could give us some more detail about what you've done, what you are doing and what exactly happens when you do it I might be able to give a better answer.

  • How can I tell my computer what applications to open upon start up?

    How can I tell my computer what applications to open upon start up?

    If your Mac is running OS X 10.9 Mavericks.
    Choose Apple menu > System Preferences, then click Users & Groups.
    Select your user account, then click Login Items.
    Do one of the following:
    Click Add below the list on the right, select an app, document, folder, or disk, then click Add.If you don’t want an item’s windows to be visible after login, select Hide. (Hide does not apply to servers, which always appear in the Finder after login.)
    If you want to remove an automatic startup item,
    Select the name of the item you want to  from opening automatically, then click Delete below the list on the right.

  • How can i open my Java aplication...

    Hi everybody!
    I was wondering how can i open my Java Picture Viewer by presing an picture.
    When i am running the program with an argument like this
    --> java JPic <path to picture> its ok.
    But i want to press the image and automaticly open my Java Program.
    How can i do that?
    I have to use a native method?
    The source of my program is here:
    http://aetos.it.teithe.gr/~athoik/myprograms/jpic/jpic.html
    Every help IS ACCEPTABLE AND NECESSARY.

    I find it how it works. Al you need to do is make a script. So by presing a picture with your
    mouse or on shell the program run with the specific picture as input :)
    Cool!!
    ##### For Windos Script .bat ######
    @cd C:\
    @cd "C:\path to program\"
    @java -jar JPic.jar %1
    @pause
    ###### For Linux Script ########
    @cd /where the program is
    @java -jar JPic.jar $1

  • How can I open MWS (Maple) and WXM (wxMaxima) files directly by click on their links, without necessity to save them on my computer? Thanks in advance.

    How can I open MWS (Maple) and WXM (wxMaxima) files directly by click on their links, without necessity to save them on my computer? The links are present at a htm file.
    In the Internet Explorer it works. Mozilla isn't even able to recognize these applications to enable me to select a regime of their handling.

    hello TurZ, please set media.windows-media-foundation.enabled back to its default value and turn '''media.play-stand-alone''' to '''false '''instead.

  • How can I make my computer restart with all the same windows that were open when a shut it down?

    How can I make my computer restart with all the same windows that were open when a shut it down?

    That is the way Mac OS X 10.8 (aka Mountain Lion) works by default. Are you actually running that system? (See About This Mac in the Apple menu.) If so, make sure the check box in the shut down alert is checked:

  • How can I open OS 9 files from my old computer on my 2012 MacBook Pro?

    How can I open OS 9 files from my old computer and use them on my 2012 MacBook Pro?
    David

    GriffinParkCondos wrote:
    How can I open OS 9 files from my old computer and use them on my 2012 MacBook Pro?
    David
    What type of files?
    Pete

  • E_LIC_ALREADY_FULFILLED_BY_ANOTHER_USER after I switched from authorized by computer to authorized by ID on the same book,  how can I open open that same book?  I downloaded the book again, reinstalled the digital edition but no help? If anybody can answe

    E_LIC_ALREADY_FULFILLED_BY_ANOTHER_USER after I switched from authorized by computer to authorized by ID on the same book,  how can I open open that same book?  I downloaded the book again, reinstalled the digital edition but no help? If anybody can answer that would be a great help.

    Hi Shreya,
    That answer seems to work in purchased books but in my case I dont know who is the ebook provider in lebrary.  I asked library people and they did not give me any contact to reset the activation.  I will try again to find out that contact. I was wondering if there is any way at our side so we can fix this.  Probably there is nothing. Thanks anyway.

  • I have a 2007 iMac with version 10.6.8.  When downloading "some" files to my computer, these files become "zip files."  When I open the zip file, it produces a document in some coding language. How can I open the file to produce a legible document?

    I have a 2007 iMac with version 10.6.8 and 4GB of expanded memory.  When downloading "some" emailed documents, the downloaded file becomes a "zip file," which when opened looks like a coded message.  How can I open the "zip file" so that it produces a legible document?  Please, help!!  thank you!!!

    A "zip file" is a compressed file. "Zipping" in principle does not and cannot change the contents. So that if the contents before zipping are garbage, or unreadable on a Mac, when you expand the file you will get garbage or an unreadable file.
    The first thing to verify therefore is whether the file, before it was zipped, was in a "Mac friendly" format. Can you do that?
    You do not need an App to zip or unzip. These functions are built in on our Macs.
    And yes, zipping and unzipping using the built in functionality, work fine in OS 10.6.8. And 10.7 and 10.8 and 10.9.

  • How can i open my iBook on my Mac, not just on my iPhone

    Hi,
    how can i open my iBook on my Mac, not just on my iPhone?  I ask this questions in hopes that I can eventually find a way to have the iPhone read a non "Enhanced" iBook to me.
    I used the Accessibility reader for a brief time but it's very persinickety.  Move the phone a tiny bit and it threw me out from page 70 and back to page 48.  Changing pages when you are in Accessibility is excruciating. Now, I cannot get back there at all.
    I downloaded 2 apps that claim they can read to me but the closest I can get in the instructions says I need to open the iBook from my Mac computer with my iPhone connected and then I will be able to open the iBook in the app called "Read text to me".  Only when I go to open the book on my Mac it says "This book can’t be viewed using this computer. You can view this book using iBooks on your iOS device."
    Thank god, I only have a brain tumor and am not yet completely blind.
    I've been to the Apple store twice, checked out a youtube page with all it's comments and I am still nowhere, over the course of a week.
    Can anybody help me?
    thank you,
    Ellen

    antdude wrote:
    roaminggnome wrote:
    "how can i open my iBook on my Mac, not just on my iPhone?"
    You cannot.
    Ibooks are only for iphone/ipod touch/ipad
    So, there are no third party readers/emulators in Mac OS X and Windows to read them from iTunes? I don't even own an iOS device. I just redeemed Action Comics' Superman #1 from Starbucks and iTunes.
    This one?
    Where the REQUIREMENTS spell out that an iOS device is needed to read it?

Maybe you are looking for