It's easy to do but why it doesn't works??

Please help me guys,
i'm not able to solve my problem,i'm trying and trying.
I've downloaded from http://java.sun.com/products/plugin/1.5.0/demos/plugin/applets.html
an applet demo,the clock.
i've tested it with this simple html file
<html>
<head>
<title>
HTML Test Page
</title>
</head>
<body>
<br>
<center>
<applet code="Clock.class" width=170 height=150>
<param name=bgcolor value="000000">
<param name=fgcolor1 value="ff0000">
<param name=fgcolor2 value="ff00ff">
</applet>
</center>
</body>
</html>and it works well.
My file Clock.class is located in c:\
Now i have to import this applet into my jsf application.
I've tried with this simple jsf page
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
<head>
<title>
HTML Test Page
</title>
</head>
<body>
<br>
<center>
<applet code="Clock.class" width=170 height=150>
<param name=bgcolor value="000000">
<param name=fgcolor1 value="ff0000">
<param name=fgcolor2 value="ff00ff">
</applet>
</center>
</body>
</html>but i see only the delimiters of applet,it doesn't run and block my system with an error
error loading class java/sun/javaRunTimeThe strange fact is that when i run it from html file everythings go well!!!!
I use ExadelStudio,i hope you can help me.
Thanks

Perhaps try the following user tip with that one:
"Invalid Drive X:\" install errors

Similar Messages

  • Hi, can someone please tell me why the spell check in pages doesn't work. I went to preferences and enabled this auto spell checker and have set the language to british english. But still it doesn't work while it works perfectly in TextEdit.

    Hi, can someone please tell me why the spell check in pages doesn't work. I went to preferences and enabled this auto spell checker and have set the language to british english. But still it doesn't work while it works perfectly in TextEdit.

    Inspector > Text > More > Language
    Only applies to selected text, like making it a particular font.
    It is not a setting that sticks. If you continue to paste in text from elsewhere particularly the Internet it will have a different or None language set to it. You need to select it and make it B.E.
    Peter

  • HT1222 Hey, I've tried to install the new iOS 7.1 but it says that the installation cannot be completed and doesn't say why. I have more than 50% battery left but it still doesn't work, help?

    Hey, I've tried to install the new iOS 7.1 but it says that the installation cannot be completed and doesn't say why. I have more than 50% battery left but it still doesn't work, help?

    It probably means you don't have enough available storage on your phone.  It takes space to store the download - THEN unpack it.  Best method is to use a computer with iTunes (This allows you to back up on your computer as well). 
    PLEASE:  Do not purchase iCloud storage space - this will not give you more room for the iOS 7.1 installation.

  • ODBC data sucessfully connects, but NEXT button doesn't work

    In short I have a forum which sucessfully gets the first record from the DataConnection.  The problem is I seem to only be able to get the first record and cannot navigate to other records.
    I have added a NEXT button, set up for JavaScript, Client, on Click with the common xfa.sourceSet.DataConnection.next();      code, however when previewing the form (still within LiveCycle) even though I can sucessfully pull the first record from my table, clicking the 'NEXT' button does nothing at all, not even an error.
    Any suggestions on what I am missing?
    Other Info:
    -I am using a MS Access database (.mdb format) with the Microsoft Access Database driver.
    -I tried using both User and System DSN's in windows which I am calling when setting up the Data Connection.
    -When configuring my DSN's the tests always succeed (and I can call the first record).
    -Setting up the Data Connection in Adobe seems to work and shows all of the possible fields in my table.
    -I bind my fields to the form, preview it, and see the first record in my table.
    -I can add many types of buttons that work, such as printing, emailing, or changing pages of the form, but anything related to database record navigation is not working.
    -I am positive that when I call xfa.sourceSet.DataConnection.next()  that the 'DataConnection' name is matching exactly my actual Data connection.(seems to be a common problem for people)
    -I've followed about 3 different tutorials exactly and they seem easy to go through, but when they add their Next button it works fine.  Mine doesn't.
    -I've tried starting from a new, blank project as well but cannot change records.
    -I've even tried adding or removing the semicolon at the end of: xfa.sourceSet.DataConnection.next();
    What am I missing?   Is there something potentially wrong with my data connection even though it seems to work?
    Thanks.
    -Mike

    Today I did some troubleshooting.  Instead of using MS Access I set up simple MySQL database with 3 text fields (no auto-incrementing fields).  Again I was able to quickly connect my LiveCycle form to the MySQL ODBC data source and display the first record from the table but any buttons with click actions that run and javascript lines beginning with xfa.sourceSet.{Name of my data source in LC here}.* commands do not work at all.
    I know my buttons work.  I can run some xfa.host.messagebox("blah") commands to test that clicking the buttons triggers the javascript code, it's only the xfa.sourceSet.* lines that aren't working.
    Now that I have even changed databases and ODBC drivers, what am I still doing wrong?  Once I set up the DataConnection in LiveCycle I am then right clicking on it to select 'Generate fields' or clicking and dragging the fields from my DataConnection to the form.  It displays the data, but why can't I work with it.
    What am I doing wrong?
    I am desperate.

  • One reason why commandLink doesn't work in dataTable

    Ok, so I think I've got an explanation why commandLink doesn't work in dataTable when the model bean is request scoped. Maybe somebody can tell me if I'm wrong.
    I have a model bean that generates table rows based on some input criteria (request parameters).
    So, we validate the inputs, apply them to the bean and render the page. Once the inputs have been applied to the bean, a request for table rows returns rows, no problem.
    However, we put a commandLink in each row, so we can expand the details. Maybe we even get smart and repeat the input row-generating criteria as a hidden field in the page.
    Unfortunately, when the user hits the commandLink, the list page simply refreshes, maybe even w/out table rows. The user doesn't get the details page as expected.
    Why not?
    Because: in the DECODE phase (even before validation and before "immediate" values have had their valueChangeListeners called), we ask the model bean for the table rows, so we can decode the commandLinks. Unfortunately, in "decode" phase, the request-scoped model bean has not had its row-generating criteria updated (that happens in the "update model" normally, or at the END of the decode phase if we got cute by (1) setting the "immediate" attribute on the row-generating criteria to "true" AND (2) set a valueChangeListener to allow us to update the model bean early. The END of the decode phase isn't good enough -- in the middle of that phase, when we're attempting to deocde commandLinks, the model bean has no citeria, so there's no row data. No row data means no iteration over commandLinks to decode them and queue ActionEvents. So, we march through the rest of the phases, process no events, and return to the screen of origin (the list screen) with no errors.
    So, what's the solution?
    One solution is to make the model bean session-scoped. Fine, maybe we can store a tiny bit of data in it (the search criteria), so it's not such a memory drag to have it live in the session forever. How do we get that data in? A managed property in faces-config.xml with value #{param.PARENT_KEY} won't work because it's assigning request-scoped data to a session-scoped holder. JBoss balks, and rightly so. Do we write code in the model bean that pulls the request parameter out of thin air? (FacesContext.getExternalContext()....) I don't really like to code the name of a specific http request parameter into the bean, I think it's the job of the JSP or faces-config.xml to achieve that binding (request parameter to model propery). Plus, I'd be sad to introduce a dependency on Faces in what was previously just a bean.
    Is there a better way?
    In my particular situation, we're grafting some Faces pages onto an already-existing non-Faces application. I don't get the luxury of presenting the user an input field and binding it to a bean. All I've got to work with is a request parameter.
    Hmm, I guess I just answered my own question. if all I've got to work with is a request parameter, some ugliness is inevitable, I guess.
    I guess the best fix is to cheat and have the bean constructor look for a request parameter. If it finds it, it initializes the criteria field (which, in my case, is the key of an object that has a bunch of associated objects (the rows data), but could be more-general d/b search criteria).
    (I looked at the "repeater" example code in the RI, but it basically statically-generates its data and then uses 100% Faces (of course) to manage the paging (where "page number" is essentially the "criteria").
    Comments? Did I miss something obvious?
    John.

    ...or I could just break down and do the thing I was hoping to avoid (outputLink instead of commandLink):
    <h:outputLink value="/faces/Detail.jsp">
      <f:param name="PARENT_KEY" value="#{bean.parentKey}"/>
      <h:outputText value="#{bean.label}"/>
    </h:outputLink>It's still a "hardcoded" parameter name, but at least the binding is in the JSP and faces-config.xml, not the bean Java code.

  • I can't find any error in my vi but it just doesn't work please help

    I'm trying to control a robot named cs-113 and I find someone has already achieved this. He wrote a vi called robot cs-113.vi and I just tried to write a same one but it just doesn't work. Can anyone tell me why it doesn't work? Thanks for your help!
    由 normanshi 在 08-01-2006 04:11 AM 上編輯的訊息
    Attachments:
    robot-cs113.vi ‏79 KB
    cs-113 test.vi ‏62 KB

    It would really help if you were a little more specific about what isn't working. Also try debugging your application in highlighted execution with probes to find out exactly what data you're sending out the port.
    Jarrod S.
    National Instruments

  • Confused as to why this doesn't work...

    I wrote this code correctly, but it doesn't seem to work. I'm not sure if I'm leaving something out or not using something correctly. If anyone can tell me why this doesn't work, it would be greatly appreciated!
    P.S. in the actionPerformed method, I want to put the window to close once someone clicks an "ok" button. How is this done? I've tried using setDefaultCloseOperation(3), but it doesn't seem to work.
    peace,
    Mark
    //?2002 Copyright. MJA Technologies.  All Rights Reserved.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class About extends JFrame implements ActionListener
        JTextArea textarea;
        JPanel panel1;
        JButton okbutton;
        String output;
        public About()
            super("Pages");
            Container container = getContentPane();
            textarea = new JTextArea();
            textarea.setText("Pages 1.0 beta 0\n?2002 MJA Technologies.\nAll Rights Reserved.");
            container.add(textarea);
            setDefaultCloseOperation( 3);
            setVisible(true);
            setSize(400, 300);
        public void actionPerformed(ActionEvent event)
            if(event.getSource() == okbutton)

    Oh see, you said this:
    "P.S. in the actionPerformed method, I want to put the window to close once someone clicks an "ok" button. How is this done? I've tried using setDefaultCloseOperation(3), but it doesn't seem to work."
    so I said this:
    "setVisible(false)"
    NOOOOOOOOOOOW you say the TextArea doesn't show up...that's a whole other problem.
    Jeeeeeeeeeeeeeeeez.
    So what layout manager are you using in the container? (hint hint)

  • XML SQL Utility:Why it doesn't work?

    I am trying to use the XML SQL Utility
    by modifying the given example samp1.java
    for the JDBC-ODBC driver but errors emerged.
    Is there any thing wrong? Thanks.
    (The classpath setting is ok, I think)
    ***** Here is the error message:
    D:\OracleXSU\sample>java Sample
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/sql/Datum
    at oracle.xml.sql.query.OracleXMLQuery.<init>(OracleXMLQuery.java:127)
    at Sample.main(Sample.java:42)
    D:\OracleXSU\sample>
    ***** Here is the source code:
    /** Simple example on using Oracle XMLSQL API; this class queries the database with "select * from emp" in scott/tiger schema; then from the results of query it generates an XML document */
    import java.sql.*;
    import java.math.*;
    import oracle.xml.sql.query.*;
    // import oracle.jdbc.*;
    // import oracle.jdbc.driver.*;
    public class Sample
    //========================================
    // main() - public static void
    public static void main(String args[]) throws SQLException
    String tabName = "sbook";
    String user = "scott/tiger";
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //init a JDBC connection
    // Connection conn =
    // DriverManager.getConnection("jdbc:oracle:oci8:"+user+"@");
    Connection conn = DriverManager.getConnection("jdbc:odbc:SQLUtil");
    // create statement and execute it to get the ResultSet
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select * from "+tabName );
    if(rset!=null)
    // init the OracleXMLQuery; note we could have passed the sql query string
    // instead of the ResultSet
    OracleXMLQuery qry = new OracleXMLQuery(conn,rset);
    // get the XML document is the string format
    String xmlString = qry.getXMLString();
    // print out the result
    System.out.println(" OUPUT IS:\n"+xmlString);
    null

    Firstly I think it is because the XML SQL Utility does not work with JDBC-ODBC driver.
    So I try it again with Oracle driver.
    But it still doesn't work? Why?
    ***** Here is the source code:
    /** Simple example on using Oracle XMLSQL API; this class queries the database with "select * from emp" in scott/tiger schema; then from the results of query it generates an XML document */
    import java.sql.*;
    import java.math.*;
    import oracle.xml.sql.query.*;
    import oracle.jdbc.*;
    import oracle.jdbc.driver.*;
    public class Sample2
    //========================================
    // main() - public static void
    public static void main(String args[]) throws SQLException
    String tabName = "emp";
    String user = "scott/tiger";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //init a JDBC connection
    // Connection conn =
    // DriverManager.getConnection("jdbc:oracle:oci8:"+user+"@");
    //init a JDBC connection
    Connection conn = DriverManager.getConnection ("...Connection information...");
    // create statement and execute it to get the ResultSet
    Statement stmt = conn.createStatement();
    // ResultSet rset = stmt.executeQuery("select * from "+tabName );
    ResultSet rset = stmt.executeQuery("select * from COFFEES" );
    // Test if connection is sucessful -- it works!
    int i=0;
    while(rset.next())
    i++;
    System.out.println("Total rows="+i);
    // init the OracleXMLQuery; note we could have passed the sql query string
    // instead of the ResultSet
    OracleXMLQuery qry = new OracleXMLQuery(conn,rset);
    // get the XML document is the string format
    String xmlString = qry.getXMLString();
    // print out the result
    System.out.println(" OUPUT IS:\n"+xmlString);
    null

  • Use BridgeTalk,but my script doesn't work

    Hi,
    I want to use BridgeTalk to open a image in photoshop,but my script doesn't work.
    Anyone can tell me why?Thanks!
    Best Regards
    goldbridge
    #target indesign
    #targetengine "MyEngine"
    var doc=app.activeDocument;
    if(doc.selection.length>0)
                        if(doc.selection[0].constructor.name=="Image")
                               jpgpath=new File(app.selection[0].itemLink.filePath);
                               bt = new BridgeTalk;
                               bt.target = "photoshop";
                               bt.type = "iterator";
                               bt.body="{app.open(jpgpath);}";
                               bt.onResult = function(resObj) {};
                               bt.send();
                               BridgeTalk.bringToFront("photoshop");

    In your body script… jpgpath is just part of a string you have not constructed this to pass the variable… Also some classes are considered complex types so you need to toSource() and then eval…
    #target indesign
    #targetengine "MyEngine"
    var doc=app.activeDocument;
    if(doc.selection.length>0)
                        if(doc.selection[0].constructor.name=="Image")
                               jpgpath=new File(app.selection[0].itemLink.filePath).toSource();
                               bt = new BridgeTalk;
                               bt.target = "photoshop";
                               bt.type = "iterator";
                               bt.body = "{app.open( eval (" + jpgpath + ") );}";
                               //$.write( bt.body  );
                               bt.onResult = function(resObj) {};
                               bt.send();
                               BridgeTalk.bringToFront("photoshop");

  • HI, I just got a Macbook Pro.  It's great but my mail doesn't work at all.  It will come up correctly, but take forever to download messages,  then won't delete them,  then won't save them to folders.  Then when I go to quit mail it's like it gets stuck.

    HI, I just got a Macbook Pro.  It's great but my mail doesn't work at all.  It will come up correctly, but take forever to download messages,  then won't delete them,  then won't save them to folders.  Then when I go to quit mail it's like it gets stuck between quitting and not.  I have to force quit, then restart my computer if I want to pull up my mail again.  How can I fix this?

    If you just got your new MBP you have phone support from Apple (which is quite good) call them.  800-692-7753 tell the automated answerer "mail technical support" you'll have human quite quickly.  Hope this helps.

  • I have made many purchase on app but when i want to made an in-app purchase of a game, it appears "your purchase could not be completed". i have disabled the restriction already but it still doesn't work. anyone can give a hint or a hand here?  cheers~~~

    i have made many purchase on app but when i want to made an in-app purchase of a game, it appears "your purchase could not be completed". i have disabled the restriction already but it still doesn't work. anyone can give a hint or a hand here?  cheers~~~

    http://www.apple.com/support/itunes/contact/

  • I have synced my Iphone 3GS to the newest itunes version to get IMessage, it worked but now it doesn't and i have tried resyncing my phone but it still doesn't work. what should i do?

    I have synced my IPhone 3GS to the newest iTunes version to get IMessage, it worked for a while but now it doesn't work and I have tried resyncing my phone but it still doesn't work. what should I do?

    Basic troubleshooting steps clearly outlined in the User Guide are restart, reset, restore from backup, restore as new device.
    If you have been through ALL of the troubleshooting steps and you're still having problems, then you'll need to bring your phone to Apple for investigation.

  • Hey Guys. I have a 1st gen dual 2.3 powerPC G5. I just recently upgraded my OS to Leopard 10.5. I cannot for the life of me, get FlashPlayer to work. I Downloaded and installed the archived 10_1r102_64 version, but it still doesn't work. Help?

    Hey Guys. I have a 1st gen dual 2.3 powerPC G5. I just recently upgraded my OS to Leopard 10.5. I cannot for the life of me, get FlashPlayer to work. I Downloaded and installed the archived 10_1r102_64 version, but it still doesn't work.
    Everytime I click on a video it says I need to update to the newest version of flash, but my computer doesn't support the updated version. So I feel like I'm in a Catch-22. 
    Any suggestions?

    Jay, you may very well be up a creek without a paddle.
    See in each Browser which version of Flash it thinks it has...
    http://kb2.adobe.com/cps/155/tn_15507.html
    Then Test Adobe Shockwave & Flash Players...
    http://www.adobe.com/shockwave/welcome/
    If it in fact says you do have 10.1.102.64, & some sites say you need higher, it is a catch 22.

  • I am getting an error message with my snap scan ix500 that says the Evernote is not installed properly.  I have uninstalled/reinstalled evernote but it still doesn't work.  Anyone know where evernote stores their files on a Mac/

    I am getting an error message with my snap scan ix500 that says the Evernote is not installed properly when I try to transfer it.  I have uninstalled/reinstalled evernote and the scan snap softward but it still doesn't work.  Anyone know where evernote stores their files on a Mac?  Or had this problem.

    Are there any dialog boxes popping up behind your Yahoo screen?
    I have intermittent problems attaching files in Yahoo mail and this is usually the reason.  I'm also using an iMac (10.7.3) and this is likely the problem.
    It is generally a Yahoo issue rather than a Mac problem.

  • I have purchased the Acrobat pro subscription for 1 year and have followed the steps to install it. But when i go to start it, It crashes and it does this every time! I have restarted my mac pro and also restarted in safe mode but it just doesn't work! PL

    I have purchased the Acrobat pro subscription for 1 year and have followed the steps to install it. But when i go to start it, It crashes and it does this every time! I have restarted my mac pro and also restarted in safe mode but it just doesn't work! PLEASE HELP!!

    Hi jim1287,po
    Check for the latest updates. Installing latest updates should resolve this problem.
    Also, try to ran disk repair using safe mode in Mac, for instructions please visit: http://support.apple.com/kb/PH14204
    Try enabling root user profile on mac and try to check. OS X Mavericks: Enable and disable the root user
    Regards,
    Ajlan Huda.

Maybe you are looking for

  • Ipod classic and itunes 11.1.5 Does NOT work

    This is really unacceptable. I've had iTunes running seamlessly with all my IPod Classics through a Toshiba laptop and Windows Vista premium home edition for years. Today I accept the prompt to finally upgrade to ITunes 11.1.5 and guess what. iTunes

  • 8 days of Nothing...

    After 8 days of calling Tech Support I'm done with Verizon.  Today my speed peaked to 23.3k-The only answer I get from Tech Support is, there seems to be a server end problem.   While trying to cancel all my Verizon services, I'm told I will have to

  • XI - restrict access to Communication Channel and Receiver Agreement

    Hello Experts, We are trying to restrict the access to certain communication channels and receiver agreement in our XI system. We are able to restrict access to business service but not the afore mentioned objects. Our XI system version is 7.0 with S

  • Help on iphone and ipod touch sync

    i have an ipod touch, and i just rescently purchased a iphone 4s. I want to use the same apple id for both, but i don't want all the apps and music i have now on my ipod touch. if i plug in my iphone on the same comp and itunes will it sync all the a

  • APO DP - lifecycle planning

    I am using APO DP V5. I am forecasting at a monthly level, then performing time based disaggregation down to weeks. So, when performing forecasting using lifecycle planning, the 'phase in'/'phase out' profiles are of course working at a monthly level