Problem opening a browser using applet

I am trying to open a browser window with the following applet. The applet executes fine with no exception and even prints out the debug statement "Browser Opened" I put, but does not actually open the browser. I am using 1.3.1_05 version of plugin and using Appletviewer. Any suggestions?
package com.info.applet;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URL;
import javax.swing.JApplet;
import javax.swing.JButton;
public class TestApplet extends JApplet implements ActionListener {
     public void init() {
          Container cont = getContentPane();          
          JButton b = new JButton("Open Browser");
          cont.add(b);          
          b.addActionListener(this);
     public void actionPerformed(ActionEvent ae) {
          try {
               getAppletContext().showDocument(new URL("http://www.cnn.com"));
               System.out.println("Browser Opened" );
          } catch (Exception e) {
               System.out.println("" + e);
TestApplet.html
======================================================
<html>
<body>
<applet code=com.info.applet.TestApplet.class width="200" height="200" >
</applet>
</body>
</html>

Hi
I am doing the same, but using java script to open a new browser window here is the code i am using
in Applet
package com.info.applet;
// import jar file to access javascript object from applet
import netscape.javascript.*;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URL;
import javax.swing.JApplet;
import javax.swing.JButton;
public class TestApplet extends JApplet implements ActionListener {
public void init() {
Container cont = getContentPane();
JButton b = new JButton("Open Browser");
cont.add(b);
b.addActionListener(this);
public void actionPerformed(ActionEvent ae) {
try {
JSObject win = (JSObject) JSObject.getWindow(this);
win.eval("javascript:openWindow(\'"www.cnn.com"\')");
System.out.println("Browser Opened" );
} catch (Exception e) {
System.out.println("" + e);
in HTML
TestApplet.html
======================================================
<html>
<head>
function openWindow(url)
window.open(url, 'mywindow');
</head>
<body>
<applet code=com.info.applet.TestApplet.class width="200" height="200" >
</applet>
</body>
</html>

Similar Messages

  • Can i open a file using applet?

    Hi,
    I try to open a file using applet.. but an error said "access denied(java.io.FilePermission tempecg.out, read) ...."
    tempecg.out is the file that I want to read.. below is part of my code.. what should I do...?
    currently the file is in my harddisk, next time will be linked using URL, will this be another problem?
    thanks!
    public void run()
    while (true)
    try
    LineNumberReader lr = new LineNumberReader(new FileReader("tempecg.out"));
    while (dv.size() < 240)
    int p = Integer.parseInt(lr.readLine().toString());
    //int p = (int)(Math.random() * 260);
    dv.add(new Point(0,p-130));
    Thread.sleep(2000);
    } catch (InterruptedException e) {}
    catch (IOException e) {}

    Hi pjustin1,
    you must use the policytool.exe given with JDK 1.2.x (or more).
    and with this tool you must add a permission on file (FilePermission) you want to access.
    Christophe.

  • Sharepoint foundation 2013: office docs can be opened in browser using IE but not in firefox or chrome?

    Hi
    Sharepoint foundation 2013:
    why when we open an excel or word  using chrome and firefox browser it wants to download the file.
    It can be opened in browser using IE but not in firefox or chrome?
    Any issues?
    Thanks

    Hello MGerio,
    Can you check what your Browser File Handling settings are of the web application (of the excel/word files)?
    http://social.technet.microsoft.com/wiki/contents/articles/8073.sharepoint-browser-file-handling-deep-dive.aspx
    - Dennis | Netherlands | Blog |
    Twitter

  • How to open a browser using button?

    Hi,experts,
    I create a button in a view in the WDJ.
    I can get a URL through call a webservice when I click the button and I need open a browser using the URL automatically. 
    How can I do it?
    Best regards,
    tao

    Hi Tao,
    You can use the following method of WindowManager in the action assigned to onAction event of your button:
    wdComponentAPI.getWindowManager().createNonModalExternalWindow(String URL,String  title);
    Regards,
    Ajay

  • Problem in connect database using applet

    hi
    please
    i want open database in page html with use Applet
    i use this code but database not work in the my page
    if this code have problem
    please correct this code to open database in page html
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection(
    "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb);DBQ=C:\\hwzyfa.mdb ");
    sta = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    res = sta.executeQuery("select * from aha");
    this is my code
    package orcle;
    import java.sql.*;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    <applet code="test.class" width=200 height=200>
    </applet>
    public class Applora extends Applet implements ActionListener
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    String str=null;
    TextArea ta;
    public void init()
    ta= new TextArea(10,30);
    add(ta);
    Button b1 = new Button(">>");
    add(b1);
    b1.addActionListener(this);
    ta.setText("Initialization...\n");
    public void start() {java.applet.AudioClip a=  Applet.newAudioClip(Applora.class.getResource("a.mid"));
       a.play();
    public void actionPerformed(ActionEvent ae)
    ta.appendText("Inside actionPerformed\n");
    try
    ta.appendText("Inside try block\n");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    ta.appendText("Class loaded\n");
    /********** upto this point it works fine **************/
    con=DriverManager.getConnection("jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb);DBQ=C:\\hwzyfa.mdb ");
    ta.appendText("Connection created\n");
    stmt=con.createStatement();
    ta.appendText("Statement created\n");
    rs=stmt.executeQuery("select * from aha");
    ta.appendText("Resultset created\n");
    while(rs.next())
    str=str+rs.getString(2)+" "+"\n";
    //str=str+rs.getString(2)+" "+"\n";
    ta.appendText(str);
    con.close();
    stmt.close();
    rs.close();
    }catch(ClassNotFoundException cnfe){System.out.println("Class Not found "+cnfe.getMessage());}
    catch(SQLException sqle){System.out.println("SQL Exception "+sqle.getMessage());ta.setText(sqle.getMessage());}
    catch(Exception e){ta.setText(e.getMessage());e.getMessage();}
    }

    i want access to database in page html with use AppletFirst of all, that doesn't make any sence, if it's a single user application make it a java
    application.
    If it's a multu user application make it a client server where the web server connects to
    the database when the client requests a connection.
    When the applet connects to the database any client running the applet needs a
    connection to your database server, the client needs the jdbc drivers and the client's
    jre needs to find them (set classpath with runtime parameters or set the classes in
    javadir lib). After that the client needs to change thiere java.policy or you need to sign
    the applet.
    Needless to say that's a lot of trouble. And if you go through all that trouble the client
    can de-compile your applet and see the connection to the database server and the
    server name. Now the client can destroy your database or worse see date it is not
    supposed to see.
    Since you are a brainless ... who needed to post this question 6 times did not respond to any of my post in your other threads I can just say good luck with your problem.

  • Xcelsuis SWF - Not able to open in browser using Object TAG

    We want to open Xcelsuis analytic form outside InfoView, by providing user an option to click on link to open analytic directly from application.  We used SSO and Object tag in our custom JSP page. We were able to successfully pass SSO but couldnu2019t load SWF file. Although there wasnu2019t any error in browser while loading JSP page, but Adobe Flash object returns message that movie can't be loaded.
    Open Xcelsuis SWF using documentDownload and passing FlashVars like CELogonToken and CEWebServiceURL.
    Following are the steps:
    u2022     Created JSP file, which first generates logonToken and store in some variable.
    u2022     Generated Flashvars variable using following code:
    String Flashvars = "CELogonToken=" + Encoder.encodeURL(CELogonToken);
    Flashvars+= "&CEWebServiceURL=" + Encoder.encodeURL("http://winiadv22.ams.com:9085/dswsbobje/services/session")
    u2022     Used Flashvars in Object tag.
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=                                                         "http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" WIDTH="100%" HEIGHT="100%" id="myMovieName">
                   <PARAM NAME="movie" VALUE= ="../../opendoc/documentDownload?iDocID=18094&sKind=Flashu201D> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#FFFFFF">
                   <PARAM NAME="play" VALUE="true"> <PARAM NAME="loop" VALUE="true"> <PARAM NAME=bgcolor VALUE="#FFFFFF">
    <PARAM NAME=FlashVars VALUE="<%=Flashvars%>">
                   <EMBED src="../../opendoc/documentDownload?iDocID=18094&sKind=Flash" FlashVars="<%=Flashvars%>" quality=high bgcolor=#FFFFFF WIDTH="100%" HEIGHT="100%" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" play="true" loop="true" PLUGINSPAGE=
                           "http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
                   </EMBED>
              </OBJECT>

    Have you set up a wildcard DNS entry for the spapps.com domain?
    Also if you're trying to connect from the server you might be hitting loop back check issues.

  • Open a Browser using OO ABAP

    Hello,
    Is there any way to open and close browser using OO ABAP?
    Points will be rewarded for suitable answers.
    Regards,
    Pagal

    Hi this will help u.
    OOPs ABAP uses Classes and Interfaces which uses Methods and events.
    If you have Java skills it is advantage for you.
    There are Local classes as well as Global Classes.
    Local classes we can work in SE38 straight away.
    But mostly it is better to use the Global classes.
    Global Classes or Interfaces are to be created in SE24.
    SAP already given some predefined classes and Interfaces.
    This OOPS concepts very useful for writing BADI's also.
    So first create a class in SE 24.
    Define attributes, Methods for that class.
    Define parameters for that Method.
    You can define event handlers also to handle the messages.
    After creation in each method write the code.
    Methods are similar to ABAP PERFORM -FORM statements.
    After the creation of CLass and methods come to SE38 and create the program.
    In the program create a object type ref to that class and with the help of that Object call the methods of that Class and display the data.
    Example:
    REPORT sapmz_hf_alv_grid .
    Type pool for icons - used in the toolbar
    TYPE-POOLS: icon.
    TABLES: zsflight.
    To allow the declaration of o_event_receiver before the
    lcl_event_receiver class is defined, decale it as deferred in the
    start of the program
    CLASS lcl_event_receiver DEFINITION DEFERRED.
    G L O B A L I N T E R N A L T A B L E S
    *DATA: gi_sflight TYPE STANDARD TABLE OF sflight.
    To include a traffic light and/or color a line the structure of the
    table must include fields for the traffic light and/or the color
    TYPES: BEGIN OF st_sflight.
    INCLUDE STRUCTURE zsflight.
    Field for traffic light
    TYPES: traffic_light TYPE c.
    Field for line color
    types: line_color(4) type c.
    TYPES: END OF st_sflight.
    TYPES: tt_sflight TYPE STANDARD TABLE OF st_sflight.
    DATA: gi_sflight TYPE tt_sflight.
    G L O B A L D A T A
    DATA: ok_code LIKE sy-ucomm,
    Work area for internal table
    g_wa_sflight TYPE st_sflight,
    ALV control: Layout structure
    gs_layout TYPE lvc_s_layo.
    Declare reference variables to the ALV grid and the container
    DATA:
    go_grid TYPE REF TO cl_gui_alv_grid,
    go_custom_container TYPE REF TO cl_gui_custom_container,
    o_event_receiver TYPE REF TO lcl_event_receiver.
    DATA:
    Work area for screen 200
    g_screen200 LIKE zsflight.
    Data for storing information about selected rows in the grid
    DATA:
    Internal table
    gi_index_rows TYPE lvc_t_row,
    Information about 1 row
    g_selected_row LIKE lvc_s_row.
    C L A S S E S
    CLASS lcl_event_receiver DEFINITION.
    PUBLIC SECTION.
    METHODS:
    handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
    IMPORTING
    e_object e_interactive,
    handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
    IMPORTING e_ucomm.
    ENDCLASS.
    CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
    METHOD handle_toolbar.
    Event handler method for event toolbar.
    CONSTANTS:
    Constants for button type
    c_button_normal TYPE i VALUE 0,
    c_menu_and_default_button TYPE i VALUE 1,
    c_menu TYPE i VALUE 2,
    c_separator TYPE i VALUE 3,
    c_radio_button TYPE i VALUE 4,
    c_checkbox TYPE i VALUE 5,
    c_menu_entry TYPE i VALUE 6.
    DATA:
    ls_toolbar TYPE stb_button.
    Append seperator to the normal toolbar
    CLEAR ls_toolbar.
    MOVE c_separator TO ls_toolbar-butn_type..
    APPEND ls_toolbar TO e_object->mt_toolbar.
    Append a new button that to the toolbar. Use E_OBJECT of
    event toolbar. E_OBJECT is of type CL_ALV_EVENT_TOOLBAR_SET.
    This class has one attribute MT_TOOLBAR which is of table type
    TTB_BUTTON. The structure is STB_BUTTON
    CLEAR ls_toolbar.
    MOVE 'CHANGE' TO ls_toolbar-function.
    MOVE icon_change TO ls_toolbar-icon.
    MOVE 'Change flight' TO ls_toolbar-quickinfo.
    MOVE 'Change' TO ls_toolbar-text.
    MOVE ' ' TO ls_toolbar-disabled.
    APPEND ls_toolbar TO e_object->mt_toolbar.
    ENDMETHOD.
    METHOD handle_user_command.
    Handle own functions defined in the toolbar
    CASE e_ucomm.
    WHEN 'CHANGE'.
    PERFORM change_flight.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMETHOD.
    ENDCLASS.
    S T A R T - O F - S E L E C T I O N.
    START-OF-SELECTION.
    SET SCREEN '100'.
    *& Module USER_COMMAND_0100 INPUT
    MODULE user_command_0100 INPUT.
    CASE ok_code.
    WHEN 'EXIT'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Module STATUS_0100 OUTPUT
    MODULE status_0100 OUTPUT.
    DATA:
    For parameter IS_VARIANT that is sued to set up options for storing
    the grid layout as a variant in method set_table_for_first_display
    l_layout TYPE disvariant,
    Utillity field
    l_lines TYPE i.
    After returning from screen 200 the line that was selected before
    going to screen 200, should be selected again. The table gi_index_rows
    was the output table from the GET_SELECTED_ROWS method in form
    CHANGE_FLIGHT
    DESCRIBE TABLE gi_index_rows LINES l_lines.
    IF l_lines > 0.
    CALL METHOD go_grid->set_selected_rows
    EXPORTING
    it_index_rows = gi_index_rows.
    CALL METHOD cl_gui_cfw=>flush.
    REFRESH gi_index_rows.
    ENDIF.
    Read data and create objects
    IF go_custom_container IS INITIAL.
    Read data from datbase table
    PERFORM get_data.
    Create objects for container and ALV grid
    CREATE OBJECT go_custom_container
    EXPORTING container_name = 'ALV_CONTAINER'.
    CREATE OBJECT go_grid
    EXPORTING
    i_parent = go_custom_container.
    Create object for event_receiver class
    and set handlers
    CREATE OBJECT o_event_receiver.
    SET HANDLER o_event_receiver->handle_user_command FOR go_grid.
    SET HANDLER o_event_receiver->handle_toolbar FOR go_grid.
    Layout (Variant) for ALV grid
    l_layout-report = sy-repid. "Layout fo report
    Setup the grid layout using a variable of structure lvc_s_layo
    Set grid title
    gs_layout-grid_title = 'Flights'.
    Selection mode - Single row without buttons
    (This is the default mode
    gs_layout-sel_mode = 'B'.
    Name of the exception field (Traffic light field) and the color
    field + set the exception and color field of the table
    gs_layout-excp_fname = 'TRAFFIC_LIGHT'.
    gs_layout-info_fname = 'LINE_COLOR'.
    LOOP AT gi_sflight INTO g_wa_sflight.
    IF g_wa_sflight-paymentsum < 100000.
    Value of traffic light field
    g_wa_sflight-traffic_light = '1'.
    Value of color field:
    C = Color, 6=Color 1=Intesified on, 0: Inverse display off
    g_wa_sflight-line_color = 'C610'.
    ELSEIF g_wa_sflight-paymentsum => 100000 AND
    g_wa_sflight-paymentsum < 1000000.
    g_wa_sflight-traffic_light = '2'.
    ELSE.
    g_wa_sflight-traffic_light = '3'.
    ENDIF.
    MODIFY gi_sflight FROM g_wa_sflight.
    ENDLOOP.
    Grid setup for first display
    CALL METHOD go_grid->set_table_for_first_display
    EXPORTING i_structure_name = 'SFLIGHT'
    is_variant = l_layout
    i_save = 'A'
    is_layout = gs_layout
    CHANGING it_outtab = gi_sflight.
    *-- End of grid setup -
    Raise event toolbar to show the modified toolbar
    CALL METHOD go_grid->set_toolbar_interactive.
    Set focus to the grid. This is not necessary in this
    example as there is only one control on the screen
    CALL METHOD cl_gui_control=>set_focus EXPORTING control = go_grid.
    ENDIF.
    ENDMODULE. " STATUS_0100 OUTPUT
    *& Module USER_COMMAND_0200 INPUT
    MODULE user_command_0200 INPUT.
    CASE ok_code.
    WHEN 'EXIT200'.
    LEAVE TO SCREEN 100.
    WHEN'SAVE'.
    PERFORM save_changes.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0200 INPUT
    *& Form get_data
    FORM get_data.
    Read data from table SFLIGHT
    SELECT *
    FROM zsflight
    INTO TABLE gi_sflight.
    ENDFORM. " load_data_into_grid
    *& Form change_flight
    Reads the contents of the selected row in the grid, ans transfers
    the data to screen 200, where it can be changed and saved.
    FORM change_flight.
    DATA:l_lines TYPE i.
    REFRESH gi_index_rows.
    CLEAR g_selected_row.
    Read index of selected rows
    CALL METHOD go_grid->get_selected_rows
    IMPORTING
    et_index_rows = gi_index_rows.
    Check if any row are selected at all. If not
    table gi_index_rows will be empty
    DESCRIBE TABLE gi_index_rows LINES l_lines.
    IF l_lines = 0.
    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
    EXPORTING
    textline1 = 'You must choose a line'.
    EXIT.
    ENDIF.
    Read indexes of selected rows. In this example only one
    row can be selected as we are using gs_layout-sel_mode = 'B',
    so it is only ncessary to read the first entry in
    table gi_index_rows
    LOOP AT gi_index_rows INTO g_selected_row.
    IF sy-tabix = 1.
    READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
    ENDIF.
    ENDLOOP.
    Transfer data from the selected row to screenm 200 and show
    screen 200
    CLEAR g_screen200.
    MOVE-CORRESPONDING g_wa_sflight TO g_screen200.
    LEAVE TO SCREEN '200'.
    ENDFORM. " change_flight
    *& Form save_changes
    Changes made in screen 200 are written to the datbase table
    zsflight, and to the grid table gi_sflight, and the grid is
    updated with method refresh_table_display to display the changes
    FORM save_changes.
    DATA: l_traffic_light TYPE c.
    Update traffic light field
    Update database table
    MODIFY zsflight FROM g_screen200.
    Update grid table , traffic light field and color field.
    Note that it is necessary to use structure g_wa_sflight
    for the update, as the screen structure does not have a
    traffic light field
    MOVE-CORRESPONDING g_screen200 TO g_wa_sflight.
    IF g_wa_sflight-paymentsum < 100000.
    g_wa_sflight-traffic_light = '1'.
    C = Color, 6=Color 1=Intesified on, 0: Inverse display off
    g_wa_sflight-line_color = 'C610'.
    ELSEIF g_wa_sflight-paymentsum => 100000 AND
    g_wa_sflight-paymentsum < 1000000.
    g_wa_sflight-traffic_light = '2'.
    clear g_wa_sflight-line_color.
    ELSE.
    g_wa_sflight-traffic_light = '3'.
    clear g_wa_sflight-line_color.
    ENDIF.
    MODIFY gi_sflight INDEX g_selected_row-index FROM g_wa_sflight.
    Refresh grid
    CALL METHOD go_grid->refresh_table_display.
    CALL METHOD cl_gui_cfw=>flush.
    LEAVE TO SCREEN '100'.
    ENDFORM. " save_changes
    chk this blog
    /people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid
    with regards,
    Hema Sundara.
    reward if found helpful.

  • Problem Opening Mac Browser with Ostermiller lib

    Has anyone had this problem when trying to open a browser window more than once from a java application on OSX with IE5.1:
    NSRuntime.loadLibrary(/usr/lib/java/libObjCJava.dylib) error.
    java.lang.UnsatisfiedLinkError: /usr/lib/java/libObjCJava.dylib
    at com.apple.cocoa.foundation.NSRuntime.loadLibrary(NSRuntime.java:156)
    at com.apple.cocoa.foundation.NSRuntime.<clinit>(NSRuntime.java:197)
    at com.apple.cocoa.foundation.NSObject.<clinit>(NSObject.java:27)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:195)
    at com.Ostermiller.util.Browser.displayURL(Browser.java:217)
    The first time a browser window needs to be launched, it works, but any subsequent call kills the program and results in the above error message.

    I heard that Apple finally implemented the MRJ method to open the browser in a recent version of OS X. I suppose it would be best to try to detect that a recent version of OS X is running and call the supported method.

  • Open local Folder using Applet Problem

    Deal all,
    This problem is a real torment to me. Why I could run the code by appletviewer. And I could open local folder. But I try to open one webpage including this applet code, I could not run the same function. Please tell me how should I solve it. It is a Applet Security problem? Even I change my web Server java.policy, it is still not workable. How should I verify java.policy when user run applet?
    <<my code>>
    ==========================
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.lang.*;
    import java.applet.*;
    public class FileSelectApplet extends Applet{
         Button btn = new Button("Choice");
         File name;
         Label lb = new Label("Please Input File List");
         TextField enter = new TextField("c:\\", 20);
         TextArea output = new TextArea(20, 30);
         public void init() {
              resize(400, 400);
              setLayout(new BorderLayout());
              // Create one Panel with Label/TextField/Button
              Panel pl = new Panel();
              pl.add(lb);
              pl.add(enter);
              btn.addActionListener(new btnListener());
              pl.add(btn);
              add("North", pl);
              add("Center", output);          
         class btnListener implements ActionListener {
              public void actionPerformed(ActionEvent e) {
                   if (e.getActionCommand() == "Choice") {
                        output.setText(enter.getText());
                        name = new File(enter.getText());
                        if (name.exists()) {                         
                             output.append(
                                                 name.getName() + " exists\n" +
                                                 (name.isFile() ? "is a file\n" :
                                                                     "is not a file\n") +
                                                 (name.isDirectory() ? "is a directory\n" :
                                                                               "is not a directory\n") +
                                                 (name.isAbsolute() ? "is absolute path\n" :
                                                                          "is not absolute path\n") +
                                                 "Last modified: " + name.lastModified() +
                                                 "\nLength: " + name.length() +
                                                 "\nPath: " + name.getPath() +
                                                 "\nAbsolute path: " + name.getAbsolutePath() +
                                                 "\nParent: " + name.getParent());
                             if (name.isFile()) {
                                  try {
                                       RandomAccessFile r = new RandomAccessFile(name, "r");
                                       output.append("\n\n");
                                       do {
                                            output.append(r.readLine() + "\n");
                                       } while (r.getFilePointer() < r.length());
                                  catch (IOException ioe) {
                                  } // end of try
                             else if (name.isDirectory()) {
                                  String dir[] = name.list();
                                  output.append("\n\nDirectory contents:\n");
                                  for (int i = 0; i < dir.length; i++)
                                       output.append(dir[i] + "\n");
                             } // end of (name.isFile())                         
                        else {
                                  output.append(enter.getText() + "does not exists\n");
                                  //output.appendText(enter.paramString() + "does not exists\n");
                        } // end of (name.exists())                    
                   } // end of if                    
              } // end of actionPerformed
         } // end of btnListener     
    ==========================

    Yes, that is security problem.
    Apllet can't get access to any local resource.
    To solve that problem you must sign applet or edit "local" policy file.

  • I am having a problem opening my browser, the broswer is hanging up after slowly opening

    Hello, I have been having trouble with my firefox browser for quite some time now, it just stopped working on me about 5 or 6 months ago. I have switched over to Internet Explorer which has still been working fine. I like using Firefox much more than Explorer these days, but I am unfortunately not good much with fixing computer problems and have pretty much extinguished all my available options for repairing it myself.
    The problem with Firefox is now when I click on the shortcut link on my desktop, it takes a good 5 to 10 minutes to open up the browser now. Once it does finally open, you cannot type or click on anything it is hung up and will not allow you to go to another site(the home page will still load, with current news and other information)
    I cannot remember anything that would have caused it to crash or get hung up like this, but like I said I am not a computer expert by any means. I do know that I am ready to get Mozilla back to running smoothly as before, I had just gotten really used to it(I had been using internet explorer).
    I also uninstalled Firefox completely and reinstalled it, I figured if nothing else I tried worked that usually is the best option...it still did/does the same thing, hangs up everytime you try to run/open it.
    I checked your online solution for what to do on a hanging first page, I saw something about pentium 4's running Windows Vista or XP...my computer runs Windows 7 (was actually purchased running the terribly bug ridden and error-prone Vista, and lucky I was able to obtain a free upgrade to 7). So I was thinking maybe that had something to do with it, I had some problem in the past, with what I cannot remember, but it traced back to something from when Vista was on my computer(even though it was no longer my operating system I'll be darn if it wasn't still causing me headaches! How fitting.)
    My computer in question is a Dell Studio XPS 1640 which I bought new almost two years ago exactly)

    Did you check what I would consider the first place to look:
    * http://kb.mozillazine.org/Problematic_extensions
    If the site is still down (at least 12 hours) when you read this try [http://webcache.googleusercontent.com/search?q=cache:http%3A//kb.mozillazine.org/Problematic_extensions Google's cache]
    Link or url would make it easier to see which page you tried rather than "your online solution for ...".
    * http://kb.mozillazine.org/Firefox_hangs ([http://webcache.googleusercontent.com/search?q=cache:http%3A//kb.mozillazine.org/Firefox_hangs cached version])
    * http://kb.mozillazine.org/Firefox_crashes ([http://webcache.googleusercontent.com/search?q=cache:http%3A//kb.mozillazine.org/Firefox_crashes cached version])
    * [https://support.mozilla.com/kb/Firefox%20hangs#os=mac&amp;browser=fx4 Firefox hangs | Troubleshooting | Firefox Help]

  • Spaces and Safari: problem opening new browser windows

    I have just installed 10.5 and have turned on spaces. I have put safari into its own space. When I control click on a hyperlink and select 'open in new window' from the submenu the new window does not open. I can open a new tab but new windows do not appear. The windows don't appear in any other space either.
    Is this a spaces/safari conflict or a safari problem?

    Hi John,
    I agree with Adam on the <cflocation> tag. I suspect it is a browser setting.
    Like in FireFox
    Tools/Options/Tabs
    [X] Open new windows in a new tab
    Like in IE,ver7
    Tools/Internet Options/General Tab/Tab Section/Settings button
    then bottom section "Open links from other programs in"
    [X] A new tab in the current window
    Try unchecking these boxes and then try your process again. Not
    saying this will correct your issue, but does seem like a browser
    issue to me as well and not <cflocation>
    Leonard

  • Cflocation problem, opening new browser tab

    I have a cfform with several submit buttons. The form action is itself and depending on what submit button is pressed a different function from a cfc is invoked and then I'm trying to use cfloaction to launch a new page. When this happens it is opening a new tab in both fire fox and IE instead of opening the new location within the same browser tab. From reading the documentation for cfloaction this should not be happening and I do not want it to launch in a new window. What could be causing this to happen?

    Hi John,
    I agree with Adam on the <cflocation> tag. I suspect it is a browser setting.
    Like in FireFox
    Tools/Options/Tabs
    [X] Open new windows in a new tab
    Like in IE,ver7
    Tools/Internet Options/General Tab/Tab Section/Settings button
    then bottom section "Open links from other programs in"
    [X] A new tab in the current window
    Try unchecking these boxes and then try your process again. Not
    saying this will correct your issue, but does seem like a browser
    issue to me as well and not <cflocation>
    Leonard

  • Problem opening pdf files using Firefox 32.0.3

    When I try to open a pdf file from my Firefox browser (under Windows 7 SP 1 Ultimate) the file doesn't open. I am asked where to save the file. Using Internet Explorer, the files open.

    Firefox uses its own (not very compatible) PDF viewer; see http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • Problems in creating dir using applet

    hi
    i'm getting various exceptions while creating a new directory
    i know that an applet can not create dir directly because of some
    security . But what if i want to create it using the applets only??
    how to do it??
    Thanx in advance
    Ashish

    To answer your question I would need to know what stack trace comes back with.
    I also need to know the set up.. Is the applet running on you personal machine and what operating system are you using.
    Lee

  • Opening new browser using button

    Hi there:
    I am trying to insert a link to a webpage which I would like
    to have open in a new browser. I selected 'Open URL or file',
    entered the URL [complete with http] and then selected 'New' from
    the drop down list. When I run the file [I have done this locally
    from my hard drive and am wondering if that may be the issue] and
    click on the button nothing happens.
    As a test I changed the URL to be the location for file and
    it opens the file fine. Do I need to wait until the video is
    implemented on the web before the link will work?
    Thanks!

    public class WindowsProcess
         public static void main(String[] args)
              throws Exception
              String[] cmd = new String[3];
              cmd[0] = "cmd.exe";
              cmd[1] = "/C";
              cmd[2] = "start";
              Process process = Runtime.getRuntime().exec( cmd );
              process = Runtime.getRuntime().exec( cmd );
    }When you run the above code you should get two open dos windows.
    Now just just enter some html filename and hit enter in each window. IE should start up separately in each window.
    Thats also what should happen if you specify the html file as the fourth parameter. A new process should be created and two separate windows should open with a browser in each.

Maybe you are looking for

  • 2013 27" iMac using mini displayport to VGA, external monitor off center.

    I recently purchased a new 2013 iMac 3.5 i7 and connected two external monitors. The minidisplayport to DVI adaptor works fine on one monitor but the minidisplayport to VGA is off center on the 2nd monitor. There is a 2" black band on the left side o

  • Display screen resolution

    Hello I have a 2008  MacBook Pro. Over the last couple of weeks the display resolution has been changing to grainy with no seeming factor stimulating the change. I will be away from the computer and can come back to a blurred screen. The change can l

  • Vendor Information

    Hi Gurus, Can you please provide me based on vendor number i need vendor name. I have run this report in SQVI. Note: I already try with vendor no : LFA1 - LIFNR, Vendor name : LFA1-NAME1. But it's not give all the vendor details. It's there any other

  • Ios7 clearly not optimized for ipad2

    that I'm allowed to update my ipad2 to ios7 should mean that it will run properly. It takes literally 10 seconds for each letter, to type in a web address in Safari. I did a soft reset, same result. Apple clearly released this update without checking

  • Loading 2 data Sources in One Infocube

    Hello, I need to load Infocube using 2 datasources like 2LIS_11_VAHDR and 2LIS_11_VAITM using BI 7.0 is this possible ? I need to take 10 fields from 2LIS_11_VAHDR and 8 fields from 2LIS_11_VAITM  and load into Infocube.  Do I need to create 2 Tranfo