How to use the XULRunner with JAVA Code

Hi, all
I have a big problem about XULRunner. I can not find a nice solution on the internet. So I have to request you to give me some ideas.
We know the XULRunner is nice solution when we want to embed a browser into desktop program which is thunderbird, firefox and so on.
My questions are the following:
1. Can I execute a Java function accross the JAVASCript? We can execute javascript code in the JAVA, but I'm not sure I can do opposite it.
2. What is javaxpcom?
If you did program like this, please give me some ideas, thanks very much.

I marked this as "off-topic" since it's not a Firefox support question.
Another place for discussion related to XULRunner, besides the Mozilla community links at https://developer.mozilla.org/en-US/docs/Mozilla/Projects/XULRunner might be one of the [http://forums.mozillazine.org/ MozillaZine forums], such as the Mozilla Development forum:
*http://forums.mozillazine.org/viewforum.php?f=27
EDIT: I'm leaving this question open since it's about another Mozilla product and I'm escalating it to the Helpdesk in case anyone over there has a suggestion.

Similar Messages

  • How to use the namespace with a parser?

    I want to use the namespace in my project. For this reason, I use a sample
    from
    http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/sax/7b_pe.html
    http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/dom/5_ns.html
    to test my understanding.
    The slideshow2.dtd refer to the definition in 'xhtml.dtd'. Because in these
    two files, they all use the 'title' as the element names. To solve these
    conflicts, The namespace is used to qualified the one in slideshow2.dtd.
    But the parser still complain that the 'title' in slideshow2.dtd is declared
    more than once.
    I use apache's Xerces.
    I want to know if Xereces realy support namespace spec. now, or how to use
    the namespace with a parser. Can anyone kindly tell me where to find some
    material that demo the use of namespace in Java program.
    Thanks for any help!!!
    #############FILE: slideshow2.dtd ###############
    <?xml version='1.0' encoding='us-ascii'?>
    <!ELEMENT slideshow (slide+)>
    <!ELEMENT slide (title?, item*)>
    <!ENTITY % xhtml SYSTEM "xhtml.dtd">
    %xhtml;
    <!ELEMENT title (#PCDATA)*>
    <!ATTLIST title
    xmlns CDATA #FIXED "http://www.example.com/slideshow"
    >
    <!ELEMENT item (#PCDATA)>
    ##############FILE: xhtml.dtd #########################
    <?xml version='1.0' encoding='us-ascii'?>
    <!ELEMENT html (head)>
    <!ATTLIST html
    xmlns CDATA #FIXED "http://www.example.com/xhtml"
    >
    <!ELEMENT head (title,style*)>
    <!ELEMENT title (#PCDATA)>
    <!ELEMENT style (#PCDATA)>
    #############FILE: slideshow.xml ####################
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE slideshow SYSTEM "slideshow2.dtd">
    <slideshow>
    <slide>
    <title xmlns="http://www.example.com/slideshow">Wake up to
    products!</title>
    </slide>
    </slideshow>

    I want to use the namespace in my project. For this reason, I use a sample
    from
    http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/sax/7b_pe.html
    http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/dom/5_ns.html
    to test my understanding.
    The slideshow2.dtd refer to the definition in 'xhtml.dtd'. Because in these
    two files, they all use the 'title' as the element names. To solve these
    conflicts, The namespace is used to qualified the one in slideshow2.dtd.
    But the parser still complain that the 'title' in slideshow2.dtd is declared
    more than once.
    I use apache's Xerces.
    I want to know if Xereces realy support namespace spec. now, or how to use
    the namespace with a parser. Can anyone kindly tell me where to find some
    material that demo the use of namespace in Java program.
    Thanks for any help!!!
    #############FILE: slideshow2.dtd ###############
    <?xml version='1.0' encoding='us-ascii'?>
    <!ELEMENT slideshow (slide+)>
    <!ELEMENT slide (title?, item*)>
    <!ENTITY % xhtml SYSTEM "xhtml.dtd">
    %xhtml;
    <!ELEMENT title (#PCDATA)*>
    <!ATTLIST title
    xmlns CDATA #FIXED "http://www.example.com/slideshow"
    >
    <!ELEMENT item (#PCDATA)>
    ##############FILE: xhtml.dtd #########################
    <?xml version='1.0' encoding='us-ascii'?>
    <!ELEMENT html (head)>
    <!ATTLIST html
    xmlns CDATA #FIXED "http://www.example.com/xhtml"
    >
    <!ELEMENT head (title,style*)>
    <!ELEMENT title (#PCDATA)>
    <!ELEMENT style (#PCDATA)>
    #############FILE: slideshow.xml ####################
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE slideshow SYSTEM "slideshow2.dtd">
    <slideshow>
    <slide>
    <title xmlns="http://www.example.com/slideshow">Wake up to
    products!</title>
    </slide>
    </slideshow>

  • HT1343 how to use the options with F10, F11, F11 for turning the sound up or down or mute?

    Hi, I'm Hannah. I'm using a Mac. Can you show me how to use the options with F10, F11, F12 for turning the sound up, or down or mute? Thank you very much

    Normally simply pressing them should do what you want, F10 to mute; F11 to decrease volume; F12 to increase volume. However, it's possible that you have a box ticked in Keyboard preferences which modifies the behaviour of the keys, requiring you to also hold down the Fn key (bottom left key on the keyboard) to enable the function.
    Check System Preferences>Keyboard to makes sure the box indicated in the image isn't ticked.

  • How to use Oracle objects in java code

    Hi all!
    I'm reading an xls and i need to fill me oracle objects with java code:
    OBJECT_NAME OBJECT_TYPE
    LETTURA_OBJ TYPE
    LETTURA_OBJ TYPE BODY
    In the past weeks i've been using both java code into oracle and oracle objects, but new i need to write those objects with data i read with java, anybody can help me?
    I know that the easiest work around would be to put the data i read from the excel file into a table and then fill the oracle objects, but now i want to learn how to write directly those objects with a command like the following one:
    a sample of the code i'm tryng to write:
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED REPORT."Manage_Excel_ASMBS" AS
    import java.io.*;
    import java.io.IOException;
    import jxl.*;
    public cass ....
    #sql{  variabili_globali.var_ER_F3.Tipo_Lettura := 5}
    thanks,
    Massimo
    Edited by: LinoPisto on 16-mag-2011 16.38

    mmmh i'm not understanding so much....
    well... as i told before i'm working in oracle database environment and i'm developing a java procedure.
    now, i have this object
    CREATE OR REPLACE
    TYPE REPORT.FATTURA_OBJ AS OBJECT (
    POD VARCHAR2(1000),
    ID_FATTURA NUMBER,
    ID_FILE NUMBER,
    COERENZA_EA_F VARCHAR2(1000),
    COERENZA_ER_F VARCHAR2(1000),
    COERENZA_EA_M VARCHAR2(1000),
    COERENZA_EF_M VARCHAR2(1000),
    ANOMALIA VARCHAR2(1000),
    MOTIVO_INVALIDAZIONE VARCHAR2(1000),
    MATRICOLA_CONTATORE VARCHAR2(1000),
    POTENZA_DISPONIBILE VARCHAR2(1000),
    MEMBER PROCEDURE pulisci
    /and i need to work with it inside this procedure:
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED REPORT."Manage_Excel_ASMBS" AS
    import java.io.*;
    import java.io.IOException;
    import java.io.StringWriter;
    public class Manage_Excel_ASMBS
    public static void read_Excel(String inputFile,int var_Id_Caricamento, int var_Id_Distributore, String var_Distributore) throws SQLException, IOException
              **here i need to put what i'm reading inside the excel file into oracle objects**
    /can you please give me a sample ?
    thanks

  • How to use the build-in Java parser

    Hi All,
    I want do use the build-in Java parser. Is this possible? For example I have the following code:
    package ch.fhnw;
    import javax.tools.*;
    public class JavacExample {
         * @param args
        public static void main(String[] args) {
         JavaCompiler javac = ToolProvider.getSystemJavaCompiler();
         String arguments = "./src/ch/fhnw/JavacExample.java";
         int rc = javac.run(null , null, null, "-verbose", arguments);
         System.out.println("Return value: " + rc);
    }After parsing, it would be great to have an object or similar which contains the methods, arguments used by the methods, etc. The target is to extract method declarations from java files. Is there a simple way to do it without defining my own EBNF like in JavaCC? Or any other way?
    Thank you for your help.
    kind regards,
    wolfgang

    Yep. bootstrap your knowledge here
    [http://java.sun.com/javase/6/docs/technotes/guides/javac/index.html]
    [http://forum.java.sun.com/forum.jspa?forumID=514]
    Bruce

  • How to use the software with BSD License, such as substance!

    Hi everyone, any idea use the software with BSD License, such as substance?

    Welcome to the forum
    First of all let's be quite clear that whatever output you
    generate, you do not need RoboHelp loaded on the end users PC.
    You don't say whether you are planning to use RH HTML or RH
    for Word. The latter has the advantage that you are working with a
    tool that you understand but in my book there it ends. You want to
    generate HTML topics for an intranet and that is best done using RH
    HTML. It's much easier to make the output take on the appearance
    you want.
    Your software would open the help you create either at a
    default topic or a specific topic. That is controlled by how your
    developers call the help. No need to go into detail on that just
    yet. There are a couple of topics on my site about that.
    The next step depends on how you design things. Are you going
    to create a page that describes a particular document that links to
    the document or are you going to convert the document to a topic in
    its own right?
    - If you are planning to link to the Word document, then you
    need to consider how a Word document would open from an intranet
    link. See Snippets on my site. Perhaps another option would be to
    create PDFs of the documents.
    - If you are planning to import the documents and recreate
    them as HTML topics, I suggest you have some aspirin handy.
    Importing is a notorious problem area as you can see from topics on
    my site. That said, those topics explain how to avoid the worst
    problems. The fly in the ointment is that you are using Information
    Mapping and those indents and tables will give you real fun!
    You can create printed documentation but most of your site
    will be stuff that you already have in Word format so you need to
    include that in your design thinking.
    As to books there really isn't that much around. There are
    some links on the Useful Links page of my site but I don't think
    they will help you much on this one. You could read this forum from
    cover to cover!
    Hope that helps a bit. Come back if you have some follow up
    questions.

  • How to use the Arpeggiator with Software Synths

    I recently bougth Logic Pro 7.2 and it took me a while to find out how to get the soft synths to work. At the moment I am only using the computer keyboard to play in the notes and it works well so far.
    If you want to activate a soft synth, choose an audio instrument and select your synth from the i/o on the left column in the arranger. Then turn on your caps key and start playing and press record and thats it. I now what to use the Arpeggiator with the soft synths. What do I do?

    If you type "arpeggiator" (without the quotes) into the search field over on the right, you'll turn up a ton of threads with all the info you could ever need about how to use Logic's arpeggiators.
    Inshort hand - create an arpeggiator object in the environment, cable it to the soft synth you want to use, and select the arpeggiator object you created on an arrange track. The notes you play/record will be sent through the arpeggiator to generate the arpeggiated notes, and on to trigger the synth you cabled it to.

  • How to use MyFaces component with Java Creator 2

    Please advise for me the way to use Myfaces component with Java Creator 2. Thanks

    Apologies for the late reply, but currently what exists generally for MyFaces integration with Creator is on this blog:
    http://wiki.java.net/bin/view/Javatools/CustomComponentLibraries
    You might also want to post the same question on the nbusers alias on netbeans.org, referencing Visual Web Pack
    Regards,
    -Brad Mayer

  • How to Use Exec function in Java Code

    How to Use Exec method
    I want to Execute command
    net Start "some service"
    using exec method of runtime class
    or i use some other way if suggest

    Assuming you have read http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#exec(java.lang.String) already, I can only suggest to be more specific in what your problems are. If you are after just some example code, then download ftp://ftp.ebi.ac.uk/pub/software/textmining/monq/monq.tar.gz and have a look at the source code of monq.stuff.Exec. It does all those things which are necessary to keep track of a Process after it was created with exec.
    Harald.
    BioMed Information Extraction: http://www.ebi.ac.uk/Rebholz-srv/whatizit

  • How to use Crystal Report with Java - need help

    Dear everyone,
    i am completely new to Crystal report , please can anyone help me to creat a very simple Report using the Crystal report,
    the report will show some records from oracle DB.
    How can i make it by a simple example and with code please?
    do i need any JAR or Bean for Crystal report?
    thanks for your help and please don't hesitate to contact me in case of any inquiries.
    my email: [email protected]
    Thanks in advance

    I what to use Crystal report to generate report.My programe in java swing .Iam retrive table from database in Jtable .But when giving print
    command its print half screen .so that why I wantto usecrystal report
    package file2;
    import file2.choice;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    import java.util.*;
    import java.awt.print.*;
    import javax.swing.table.*;
    import com.sun.java.swing.*;
    import javax.swing.JTable;
    public class cour extends JFrame implements Printable
         //Menu fileMenu;
         public static void main(String[] a)
    cour n = new cour();
    n.setVisible(true);
    public cour()
         super("Course Report");
         report();
         protected void report()
              JPanel panel = new JPanel();
         JButton printButton = new JButton("Print");
         panel.add(printButton);
         JButton exitButton = new JButton("Exit");
         panel.add(exitButton);     
         DefaultTableModel defaulttablemodel = new DefaultTableModel();
              JTable jtable = new JTable(defaulttablemodel);
              panel.add(new JScrollPane(jtable));
              String      tempname="";
              int tempcnt;
              String driver="sun.jdbc.odbc.JdbcOdbcDriver";
              String url="jdbc:odbc:regs";
              Object[] data = new Object[4];
              try
                             Class.forName(driver);                         
                             Connection connection=DriverManager.getConnection(url,"sa","");
                             Statement statement = connection.createStatement();     
                             String query = "SELECT courseid as CourseID,coursen as CourseName,cfee as Fee,coursed as Duration FROM course";
                             ResultSet rs = statement.executeQuery(query);     
                             ResultSetMetaData rmeta = rs.getMetaData();
                             int numColumns=rmeta.getColumnCount();                         
                             for(int i=1;i<=numColumns;i++)
                                  if(i<=numColumns)
                                       defaulttablemodel.addColumn(rmeta.getColumnName(i));
                             while(rs.next())
                                  for(int i=1;i<=numColumns;++i)
                                       if( i<=numColumns)
                                            tempname = rs.getString(i);
                                            tempcnt=i-1;
                                            data[tempcnt] = tempname;          
                                  defaulttablemodel.addRow(data);                              
                   catch(Exception ex)
              printButton.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent ae)
              /*if(ae.getActionCommand().equals("Print"))
              PrinterJob pj = PrinterJob.getPrinterJob();
              pj.setPrintable(cour.this);
              if (pj.printDialog())
              try
              pj.print();
              catch (PrinterException pe)
              System.out.println(pe);
    exitButton.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent ae)
              choice ch=new choice();
                   setVisible(false);
                   ch.setVisible(true);
    setContentPane(panel);
         setSize(1040,780);
    /*Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = getSize();
    int x = (screenSize.width - frameSize.width) / 2;
    int y = (screenSize.height - frameSize.height) / 2;
    setLocation(x, y);*/
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    dispose();
    System.exit(0);
    public int print(Graphics g, PageFormat pf, int pageIndex)
    if (pageIndex != 0) return NO_SUCH_PAGE;
    Graphics2D g2 = (Graphics2D)g;
    g2.translate(pf.getImageableX(), pf.getImageableY());
    getContentPane().paint(g2);
    return PAGE_EXISTS;
    }

  • How to use activeX viewer with java( CR XI)

    Post Author: jws1624
    CA Forum: JAVA
    Hi
    I could find any sample source or refference about usging activeX viewer and java (CR XI R2 sp3).
    Because of downloading excel(export function), I can't choose JRC viewer . So I think activeX viewer is only way to solve my problem.
    Can anyone let me know how to coding it with jsp? ( there are saveral samples in asp code, but not jsp)

    Post Author: Ted Ueda
    CA Forum: JAVA
    The limitation of not having Excel exports is specific to the Crystal Reports Java Reporting Component, and not with the viewer.ActiveX viewer is supported with the Report Designer Component, which is not Java but COM based - the RDC furthermore is deprecated, and not supported starting with Crystal Reports 2008.  The ActiveX viewer is also supported with Crystal Reports Server and BusinessObjects Enterprise.If you use CR.NET, then Excel export is supported - however, as its name implies, it uses a .NET-based SDK.Sincerely,Ted Ueda 

  • How to use Thread.sleep() with Java Berkeley Base API?

    Hi,
    I have explained the weird problem about the server was too busy to response to SSH but it continued to finish to run (Server not response when inserting millions of records using Java Base API
    Even I tried to increase CachSize and renice Java program, but it did not work. So, I am thinking to set sleeping time for threads in Java Berkeley Base API (using “ps” command, there were 18 light weight processes created). My program did not implement transaction or concurrency because it simply creates (millions) databases records only. Is it possible and correct to do like this in the code:
    try{
    //do create a db record
    Thread.currentThread().sleep(1000);//sleep for 1000 ms
    catch(ItrerruptedException ie){
    Thank you for your kindly suggestion.
    Nattiya

    where can I get the help doc about use AT commands in java.
    Can you give me some code example about this. It is
    difficulty to me to write it myself.You simply have to send the characters and receive the characters via the comm extension. Here is the ITU standard command set - http://ridge.trideja.com/wireless/atcommands/v250.pdf. Various modems and other devices extend this in a number of ways, you may need to find documentation specific to your device as well. But start with the standard.

  • How to use parameter file with java

    Is it possible to use a parameter file with Java, and is there any class/method to make it easy to call and use these parameter from a text file, other than scanning the whole text file manually as we can do normally with visual basic/c++, so we can call the program with the parameter file, like java testing c:\\testing.ini

    If I understand you correctly, you may be looking for a properties file. This is basically a text file that contains pairs of strings in the form:
    parameter1=value1
    parameter2=value2
    parameter3=value3
    ...etc.
    and the values are retrieved using the java.util.Properties class - see:
    http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html
    Sample use://Call chis method once, to load the props file.
    //props file is called "demo.properties", and is
    //in a directory that is included in the classpath
        private void loadMyProperties() throws Exception
         InputStream stream = getResourceAsStream("/demo.properties");
         if(stream == null)
             throw new Exception("stream is null!");
         demoProperties = new Properties();
         demoProperties.load(stream);
         stream.close();
    // Then you can retrieve properties in your code using:
    String param3 = demoProperties.getProperty("parameter3");
    //...etc

  • How to use the AVMenuItemExecute() with an External Window

    Hello,
    I'm trying to use the AVMenuItemExecute() function in an External window. I mean that I have an opened document in another window (using AVDocOpenFromASFileWithParams or a function like that).
    Actually the problem is that the AVMenuItemExecute() is executed on the Acrobat windows which is emplty in my case because I open the PDF file in another window.
    Do you know whether it's possible or not? Whethet it's possible how can I do that?
    Thanks in advance,
    Joël

    joeln3 wrote:
    Thanks Leonard.
    Actually I want to use all MenuItem so it's not a good way to do this.
    I know it's possible using IAC but I have another problem with IAC. IAC allows to show the PDF file in an external window and to use the ExecuteMenuItem(). But in my case a PDF file is already open before starting IAC. So when I use the ExecuteMenuItem() function this is on my first Acrobat window that the action is launched. Indeed the document opens with IAC is not in an Acrobat window.
    Regards,
    Joël
    Actually it's not possible with IAC.  While IAC does allow you to open a PDF in an external window, and it does allow you to ExecuteMenuItem(), as Leonard explained you CAN NOT ExecuteMenuItem() on the PDF in your external window.  The reason for this is simple - in your external window, the menu items to execute do not exist as the menu only loads inside Acrobat/Reader.
    ExecuteMenuItem() doesn't simply replace having menu items and call the internal code associated with that menu item.  It literally executes that menu item.  So if the menu doesn't exist, it can't execute anything.

  • How to configure the work manager java code to eclipse?

    Hello all,
                   I am working with the syclo work manager app. I have successfully installed all components required.
                   I imported the work manager mobile application and I want to import the standard work manager java code, what is the process to import java code into work space.
                   Guide me with some screen shots.
                   When I try to start the WM server it is giving me the following error:
    How to resolve the error.
    Please anyone provide me complete setup needed to run the work manager app smoothly.
    Please guide me.
    Thanks & Regards,
    Swaroopa.

    Swaroopa,
    That error is telling you the SAP JCo library cannot find one of the needed DLLs on the system.  The sapjco.jar loads two additional DLL files (sapjcorfc.dll and librfc32.dll).  Both should be installed by default into your ServerDev directory (assuming you are running Agentry 6.0.x).
    I would guess it is having trouble loading the librfc32.dll based on the message but confirm both are in the correct location.
    --Bill

Maybe you are looking for

  • Scrolling and rightclicking with magic mouse doesnt  work anymore

    Suddenly scrolling and rightclicking with magic mouse doesnt work any more. Left clicking and cursor moving works normal. I have checked the system preferences for the mouse and find nothing strange or unchecked. Any ideas?

  • Photoshop CS4 "quit unexpectedly" - Error Message

    Photoshop CS4 suddenly will NOT Open - "Photoshop quit unexpectedly" - worked fine until two-days ago; all other CS4 programs work just fine. iMac 3.06 GHz Intel Core 2 Duo w/ 4 GB RAM/ OS 10.7.5 - HELP... Any ideas what is happening?

  • Field name not known   in old existing report.

    We have a report that we have used for a long time and has always been fine.  Today when we open it  it says data will be lost because "Field name not known".   So you click ok and look at the report in design and the report is missing a bunch of fie

  • Page does not show data

    Hi all, I would appreciate any help for the following problem that I am facing. I have created master-detail pages sharing the same AM. The details page shows details of the request from 3 different VOs. The VOs are entity-based and I modify the VOs

  • Media server and Media live encoder running, but how do I view my stream?

    Ok. This is the first time I have ever used these two programs. I got the Media server running and connected and the Media live encoder streaming and connected to the server. I have not been able to test the stream to see if it is working correctly h