Need Help in opening a Link or URL

Hi,
I need help in opening a URL (on the same server where CLM application is deployed). I have added a Button on ToolBar and added the code. but it's not working. the same java program is working on my local system. below is the code.
import java.io.*;
import java.util.*;
public class FileOpen
       public static void main(String[] args)       
             FileOpen deleteList = new FileOpen();
             String url="http://www.google.com/";
               try {
                    String[] cmd = new String[4];
                    cmd[0] = "cmd.exe";
                    cmd[1] = "/C";
                    cmd[2] = "start";
                    cmd[3] = "c:
amd_SCCMLog.txt";
                    System.out.println(" cmd"+cmd);
                    Process p = Runtime.getRuntime().exec(cmd);
                    System.out.println(" cmd1"+cmd);
                    Process process = Runtime.getRuntime().exec("notepad");
                    System.out.println(" cmd2"+cmd);
                    } catch (IOException ioe)
                         ioe.printStackTrace();
             //System.out.println("Memberfarm: " + memberFarm);       
Regards,
Puneet Aggarwal

Hi Puneet,
What exactly are you trying to do? Can you describe where in the system you are doing it? There are different options....
What about a document report with a link to the Web site URL you want to open?
What about a read-only URL field on the document, populated with the URL you want to open?
What about the desktop links channel?
Lots of different ways to skin that cat (sorry cat lovers) ..your code looks like it might be the most difficult approach.
-Howie Wexler
www.craftysystems.com

Similar Messages

  • Need help in embedding a link to url within a text edit

    Hi,
       We need to embed a LinkToURL within a textedit in a webdynpro view. We are extracting content from KM and displaying the content in the text edit. Immediately after the extracted content is displayed in the textedit, we need to embed a LinkToURL, which when clicked opens a new window and displays content extracted from a different file. 
    Could anybody help out in achieving this?
    Thanks much in advance,
    Sunitha.S

    There is no way to embed rich text neither in TextEdit nor in TextView UI controls.
    You may display such content using IFrame (easy way) or parse content yourself and create UI controls dynamically (extremely hard)
    VS

  • Need help to open and look for file by name

    Hi,
            Im needing help to open a folder and look for a file (.txt) on this directory by his name ... The user ll type the partial name of file , and i need look for this file on the folder , and delete it ....
    How can i look for the file by his name ?
    Thx =)

    Hi ,
        Sry ,, let me explain again ... I ll set the name of the files in the follow order ... Name_Serial_date_chanel.sxc ..
    The user ll type the serial that he wants delete ...
    I already figured out what i need guys .. thx for the help ^^
    I used List Directory on advanced IO , to list all .. the Name is the same for all ... then i used Name_ concateneted with Serial(typed)* .. this command serial* ll list all serials equal the typed , in my case , ll exist only one , cuz its a count this serial .Then i pass the path to the delete , and its done !
    Thx ^^

  • This Adobe muse site file requires a newer version of Adobe Muse. I want to comeback to old version Adobe muse i need help to open my file thanks

    This Adobe muse site file requires a newer version of Adobe Muse. I want to comeback to old version Adobe muse i need help to open my file thanks

    Hi,
    You may need to design the site again in older version OR may be copy and paste in place from new to old except what is new in the latest version.
    Hope that helps!
    Kind Regards,

  • I need help to open camera raw in cs6

    i need help to open camera raw in cs6

    Your post is devoid of the relevant information – what is the camera in question?
    Check this list to see if your version of ACR supports Raw files from that camera:
    Camera Raw plug-in | Supported cameras

  • I need Help with the dynamic link feature in CS3

    Hi I was wondering if anyone could help me with an issue I am having? I have the adobe cs3 master collection. Having watched tutorials on the dynamic link feature my version seems not to have the same options as those I have viewed. I wish to send my premiere video creation to encore using dynamic link, however when I click "file" and then "adobe dynamic link" the only options available are about "adobe after effects". I can export to encore however I am only alloowed to export one premiere sequence to one new encore file, I cannot create an encore file and import several premiere sequence into the same encore project. That means currently I can only have an encore creation with one premiere sequence in it, and I have no adobe dynamic link. Any help anyone could offer would be greatly appreciated.

    Thanks very much for that guys but my premiere media encoder only lets me export as: MPEG1, MPEG1-VCD, MPEG2, MPEG2 blu-ray, MPEG2-DVD, MPEG2-SVCD, H.264, H.264 blu-ray, Adobe Flash Video, Quicktime, Real Media, Windows Media. Are any of these formats DV AVI?
    Am I to export my videos direct to encore or save them elsewhere (e.g desktop). It seems that I cannot export sequences from different premiere projects to the same encore project.
    Sorry if any of these questions seem obvious, I am just new to premiere and keen to do things right from the off.
    Many thanks again guys.
    Date: Tue, 24 Nov 2009 19:32:47 -0700
    From: [email protected]
    To: [email protected]
    Subject: I need Help with the dynamic link feature in CS3
    Harm is correct.  For SD DVD, exporting as a DV AVI file from Pr will give you good results.  Encore's Automatic Transcoding will give you maximum quality for the available disc space.
    -Jeff
    >

  • Need help to find out link between process order and purchase order.

    Hi All,
    Need help to find out link between process order and purchase order.
    We have purchase order, we can find out associated process order in MD09 (No Purchase Requisition found in Purchase order). When I tired to replicate this scenario with same material in system but not able to do.
    Please suggest me what needs to check to get purchase order link to process order.. (this is not subcontracting )
    Edited by: SAP PQ on Sep 26, 2011 5:24 PM
    Thanks,
    SAP PQ
    Edited by: SAP PQ on Sep 26, 2011 5:24 PM

    MD09 is pegging. In SAP pegging is dynamic, meaning that there's no fixed link between purchase order and process order in your case.
    This is why you did not get the same result when you tried again later.
    Such a link can exist only if you do direct procurement for the order.

  • Need help with MC with links inside

    Anyone can shine some light on trying to reproduce something
    similar to this?
    http://www.focus.ca/home.html
    What I need is how to do one of those tabs that aniamtes down
    and reveals links inside. I have been at this for days.
    I am very new to flash and need more assistance on the
    construction of this project.
    So far, I know how to make a MC and animated it for
    rollover/rollout, but the link inside won't work because the action
    for the MC is interferring with the inside button actions. So, what
    is my next step? I have my MC on one frame in the main timeline and
    need to perform all animation inside that and add buttons also?
    Would I put an Insible Button in their too?
    I need help?

    As example of a text based navbar like Roddy suggested can be seen here: Text Based Navbar. With it you can have complete control of the font (just use a Web Safe Font, color, rollover color and size. You can then copy and paste the text box to each page.
    OT

  • Help me open a link in a new custom-sized window.

    I know how to open a link in a new window target="_blank" but I can't figure out how to get the window to open to a custom-sized window.
    Look at this page http://web.mac.com/theshow2/iWeb/weddings/Samples/Samples.html and hit the "Sample #1" link to see what I'm talking about. I want the window to open to the size of the movie instead of all the dead-browser space around it.
    Can anybody out there help me?

    Read through this topic for some ideas about using Javascript to open links in a new window.
    http://discussions.apple.com/thread.jspa?messageID=1960167&#1960167
    It may not include the custom-sizing you're specifically interested in, but you may well find general information which will be of help.
    Visit here for iWeb Tips, Tricks and Hacks ]

  • Need Help Regarding Dynamic Partner Link

    Hi all
    I am new to this Oracle BPEL.
    I need to configure dynamic partner link.
    need help with this.........
    any useful links.. pls.

    Hi',
    Check this
    http://blogs.oracle.com/dasoa/entry/11g_dynamic_partnerlink_example
    there are plenty like this.
    -Yatan

  • I need help with opening attachment on email?

    I need help to set  association to open attachment on email?

    First i would suggest update Reader to XI.
    To set the default application you may visit this article: http://windows.microsoft.com/en-in/windows/change-default-programs#1TC=windows-7 this article is for windows 7 but it will hold good for vista too.
    let me know the result.
    ~Ajlan Huda.

  • Need help to open audios attached in a PDF file

    Hello
    I just need help. I have ordered a reviewer online that has audios and texts in a pdf file. I was told to download the latest adobe reader on my computer. I have done the same thing on my ipad mini. I am not so technical with regards to these things. Therefore I need help. I can access the audios on my computer but not on my ipad.
    I want to listen to audios with scripts or texts on them so i can listen to them when i am on the go. I was also informed that these files should work in any device. How come the audios doesnt work on my ipad.
    Please help me on what to do.
    Thanks

    Audio and video are not currently support on Adobe Reader. :-<
    You need to buy a PDF reader that supports them. My suggestion is PDF Expert from Readdle ($US 9.99)

  • Need HELP! Opening a PDF file from different URL

    I have a application that links to viewpdf.class. This class file will go to the FTP where the pdf file is located and open it. How do i do this using java? Here is what I have.. .i'm stuck
    URL url = new URL("ftp://user01:[email protected]/"+ folder_name +"README.pdf;type=i");
    URLConnection urlc = url.openConnection();
    InputStream is = urlc.getInputStream();thanks Tony
    here is how it looks like if it is on the local host.
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class viewpdf extends HttpServlet
        private ResourceBundle rb;
        public viewpdf()
            rb = ResourceBundle.getBundle("LocalStrings");
        public static void streamCopy(FileInputStream fileInputStream, ServletOutputStream servletOutputStream)
            throws IOException
            if(fileInputStream == null || servletOutputStream == null)
                return;
            byte abyte0[] = new byte[8192];
            int i;
            synchronized(fileInputStream)
                synchronized(servletOutputStream)
                    while((i = fileInputStream.read(abyte0)) != -1)
                        servletOutputStream.write(abyte0, 0, i);
        public void doGet(HttpServletRequest req, HttpServletResponse res)
            throws ServletException, IOException
            ServletOutputStream servletOutputStream;
            String filename;
            String output;
            FileInputStream fileInputStream;
            servletOutputStream = res.getOutputStream();
            res.setContentType("application/pdf");
            ServletContext servletcontext = getServletContext();
            filename = req.getParameter("file");
            String folder_code = req.getParameter("fold");
            try{
                filename = servletcontext.getRealPath(rb.getString("file_location")) + "/" + fold + "/" + file;
            fileInputStream = null;
            fileInputStream = new FileInputStream(file);
            streamCopy(fileInputStream, servletOutputStream);
            catch(FileNotFoundException e)
            filename = servletcontext.getRealPath(rb.getString("file_location")) + "/filenotfound.pdf";
            fileInputStream = null;
            fileInputStream = new FileInputStream(file);
            streamCopy(fileInputStream, servletOutputStream);
    }

    That servlet already is Java. And the servlet code isn't what "opens" the PDF, it's the browser that sends the request that does that. I'm assuming that when you say "open it" you mean to start up an instance of Adobe Acrobat and ask it to display the document.

  • Need help/info on "database link of same name has an open connection"

    Hello,
    I am trying to create an application on html db (new in html db) to see if I can move data from one database (oracle 9i) say dbdev to another one called dbtest. I want to be able to select the data from html db app and by clicking on a button move them to dbtest ( right now only looking at data from one table ). This is what I have done so far:
    1. created a duplicated table of dbdev into html db with no data.
    2. created package with procedures to
    A. create a database link
    B. delete if there is a record on html db table
    C. go trough a loop (cursor) and get the data from dbdev
    D. drop the database link
    Now, when I do all of the above steps I get an error “database link of same name has an open connection" but when I don’t do the step C. I don’t get this error. So something is wrong in my step C. On my step C, I just open the cursor, do a for loop and insert the records into my html db table.
    Any idea!!!
    Thanks
    More questions to come…..

    never mind, I should not drop the database link with in the procedure.
    thx

  • Need help to open a blob from a report into another tab or browser window.

    Hello everyone.
    I'm looking for a bit of guidance on something I'm trying to do in Apex.
    I have a report that contains a blob. Users can click on the link to open it in same browser. I also know how to make it download if they click the link. But what I really want to do is to click the link and open the blob in another tab or browser window.
    Thank you in advance for your help.
    Dw
    I should have noted I'm using version 3.2
    Edited by: DW Brown on Feb 22, 2012 3:13 PM

    DW Brown wrote:
    It becomes a link from the column format section..
    DOWNLOAD:<tablename>:<column>:ID::MIMETYPE:FILENAME:LAST_UPDATE_DATE::inline:Click Here
    So far I haven't found a way to use something link "target=_blank"One way would be to use a Dynamic Action to apply the <tt>target="_blank"</tt> attribute to each link, or convert them to use APEX pop-ups or a jQuery lightbox like fancyBox.
    Create an example on apex.oracle.com if you need more assistance.

Maybe you are looking for

  • Installation of Preferences Pane on remote Server OSX fails

    On an OSXServer mini which I connect to with RDC, I am unable to install any Preference Pane programs such as Slink or Squeeze. I have full admin access to that machine, it's a dedicated database server, nothing exotic running on it, latest OS10.6.4,

  • Vendor payment Advice Email Sending with PDF

    Hi Experts, I need to develop a program when the user completes his transaction from F110. It need to trigger a email to vendor about the payment terms along with the Reference Number & Invoice no. & Currency, as a PDF Attachment. I have searched in

  • Crystal Reports Versus Sharepoint Issue

    Hi, We recently purchased Crystal Reports Server 2008 for our company, we've installed it successfully onto our reporting hardware but when we come to install the portal integration kit on our sharepoint server it throws an error indicating that the

  • Table with n foreign key vs n tables or n foreign key vs 1 table?

    Hi, we have a scenario with n tables containing some attributes one table for one category of attribute (es: color, role, type, etc..) of a principal entity and 1 table for the principal entity with n foreign keys vs every attribute table. Some propo

  • Dreamweave cs3 install problem

    Currently running DW8 on Windows Vista, I thought I would have a look at CS3. I downloaded the trial version of DW CS3 and ran it. After extracting the files, the setup starts ('Initializing Adobe setup') but then immediately disappears with no messa