ActiveX && Java

Hi,
I try to embed Internet Explorer in my Java application via JNI.
I create child window via C++ code:
<=cut=>
HWND hWndChild = CreateWindow("AtlAxWin", "Shell.Explorer", WS_CHILD | WS_VISIBLE, x, y, cx, cy, hWndParent, NULL, hInst, NULL);
<=cut=>
Everything is ok, except that all java context windows, hints and top menu are hiding under browser.. Has anybody resolved such problem?
Thanks,
kostya.

Hi,
I'm afraid I don't have an answer for you, but I was hoping you could help me. I'm trying to embed IE in a java program, using the "http://www.nothome.com/IECanvas/" example that was suggested earlier. My main issue is that I have never done anything with JNI and was wondering if you could perhaps explain the following error message to me:
java.lang.UnsatisfiedLinkError: initialize
     at IECanvas.nothome.mswindows.IECanvas.initialize(Native Method)
     at IECanvas.nothome.mswindows.IECanvas.addNotify(IECanvas.java:63)
     at java.awt.Container.addNotify(Container.java:1579)
     at javax.swing.JComponent.addNotify(JComponent.java:3500)
using mozilla: false
     at java.awt.Container.addNotify(Container.java:1579)
     at javax.swing.JComponent.addNotify(JComponent.java:3500)
     at java.awt.Container.addNotify(Container.java:1579)
     at javax.swing.JComponent.addNotify(JComponent.java:3500)
     at javax.swing.JRootPane.addNotify(JRootPane.java:483)
     at java.awt.Container.addNotify(Container.java:1579)
     at java.awt.Window.addNotify(Window.java:349)
     at java.awt.Frame.addNotify(Frame.java:361)
     at java.awt.Window.show(Window.java:387)
     at java.awt.Component.show(Component.java:946)
     at java.awt.Component.setVisible(Component.java:903)
     at IECanvas.nothome.mswindows.IEBrowser.main(IEBrowser.java:142)
As far as I can tell this issue is with calling the "initialize" method. That code is below.
package nothome.mswindows;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.awt.peer.*;
import sun.awt.*;
import java.util.*;
public class IECanvas extends Canvas {
protected Vector listeners;
protected boolean useMozilla;
static {
System.loadLibrary("IECanvas");
// Native entry points.
public native void initialize(boolean useMozilla);
public native void sendurl(String strURL);
public native void resizeControl();
public native void gohome();
public native void rld();
public native void gofwd();
public native void gobackwd();
public native void setfocus();
public IECanvas() { this(false); }
public IECanvas(boolean useMozilla) {
listeners = new Vector();
this.useMozilla = useMozilla;
// Navigation methods
public void setURL(String urlString) {
sendurl(urlString);
public void goHome() { gohome(); }
public void reload() { rld(); }
public void goForward() { gofwd(); }
public void goBackward() { gobackwd(); }
// event notification
public void addIEEventListener(IEEventListener listener) {
listeners.add(listener);
public void removeIEEventListener(IEEventListener listener) {
listeners.remove(listener);
// We initialize the IECanvas on addNotify.
public void addNotify() {
super.addNotify();
System.out.println("using mozilla: " + useMozilla);
initialize(useMozilla);
public void setSize(int width, int height) {
super.setSize(width,height);
resizeControl();
public void setSize(Dimension d) {
super.setSize(d);
resizeControl();
public void setBounds(int x, int y, int width, int height) {
super.setBounds(x,y,width,height);
resizeControl();
I've left out the other methods, as they seem to deal with events once loaded, which is the state I'm trying to get to. My end goal is to get IE on a JPanel within my program (which is essentially a speciallized webbrowser). You're help would be greatly appreciated.
Michael Scanlon

Similar Messages

  • NAC Agent/ActiveX/Java applet

    Hi,
    For L3 OOB deployment , does any one know how the NAC agent/ActiveX/Java applet refresh the IP address for the client??
    i know that In the Login Page configuration, two options need to be checked to use the ActiveX/Applet webclient to
    refresh the client’s IP address:
    - Use web client to detect client MAC address and Operating System
    - Use web client to release and renew IP address when necessary (OOB) .
    But what i need to know how the agent/ActiveX/Java applet refresh the IP address for the client???
    are these programs ( agent/ActiveX/Java applet ) triggers the client machine to do that???
    regards
    MAM

    MAM,
    You're right. The applets do indeed trigger a dhcp refresh on the machines. This is to avoid bouncing the port which can be problematic when you have IP phones.
    More info on this in the docs here: http://tinyurl.com/yhnskdf
    HTH,
    Faisal

  • Win7 Firefox 3.6.13 - I'm using remotely Anywhere (9.0 or later). Is there a plugin (that compares to ActiveX/Java) that Firefox can use other than HTML screen shots?

    Just trying to get rid of MS stuff. I like Firefox much better

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • Activating Flash, ActiveX, Java Applets

    Could someone explain to me "specifically" what do "you" do
    to remove the IE6 message "Press spacebar to activate or use
    control" message from a coldFusion "Cfform" or "CFgrid"? I've been
    successfull at removing the message from a Flash movie in my
    Javascript. But how do you do that with a whole Coldfusion form.
    With the stand-alone Flash movie in my Javascript we write
    the "string" that produces the Flash object to a varible, then call
    a external Javascript file to "document.write" the object out
    again, but how would you do that with a Flash Coldfusion form or a
    CFGrid? The Flash Coldfusion form's code is generated dynamically?
    Could someone explain specifically what I need to do to
    correct this problem?

    This has been 'fixed' in cfmx 7.02. There is a
    hot fix for cfmx 7.01.
    The 7.01 hot fix points to an article on the Adobe site that
    describes the issue. The same article points to a Microsoft article
    which has other various scripting workarounds that can be
    used.

  • Detecting Java Plugin version in IE

    I need to be able to detect the version of the plug-in that is installed in IE. Basically, I want to use an Object tag to load Java 2 in a web browser, but if it's not a compliant version (1.3 version) send the person to an upgrade site. Is this possible using VB/javascript? What is the registered name of the activeX java plugin component?

    While you probably can make some script to determine
    the version of the plug-in, you don't really need to.
    In your HTML, use the OBJECT tags to specify what
    version of the plug-in you require and include the
    URL to redirect to if they do not have it - see
    http://java.sun.com/j2se/1.4.1/docs/guide/plugin/devel
    per_guide/using_tags.html and
    http://java.sun.com/products/plugin/versions.html
    I know about doing this as part of the OBJECT tag. The trouble is that I do not want Ie or the plug-in to try to do the automatic upgrade, and I'd like to be able to redirect the user to my own set of pages describing how to upgrade

  • SAP GUI 7.10 - What are your experiences?

    Hi All,
    We are considering updating our GUI from 6.20 to 7.10.  Has anyone out there done this?  If so, did you come across any problems i.e. versions of Windows that it does not work on?
    Has anyone used the GUI in a Citrix environment?  If so, was there a greater overhead on the servers?
    Does the GUI have any compatibility issues with older versions of MS Office?
    Any comments will be gratefully received.
    Thanks,
    Dan

    Hi
    There are some points that are defined and you must have read these in the documents:
    a) *SAP web dynpro Active Component Framework (ACF)* - framework to integrate Active Components (ActiveX / Java Applets) into the Web dynpro.
        At the present there are two supported Components:
              Office Integration
              Adobe Integration
    b)  BI pre calculation service for MS Excel u2013 you can install BI frontend as a standalone.
         SAPSprint u2013 server-based printing on Windows (formerly SAPLPD)
         SAP GUI Screen Reader Extension u2013 an interface allows a screen reader to access the SAP GUI object model at runtime and select the required information for speech and Braille output. It is based on SAP GUI Scripting API.
    c) In case GUI was installed from an installation server users have the possibility to enable automatic update from this server.
    d) System tabstrip of SAP Logon pad has a new popup window with tabstrips
    e) New frontend editor u2013  for ABAP programming. Is integrated to ABAP workbench (TA: SE*), SE38, SE37, SE24). Its new user interfaces and is completely customizable. Frontend editor integrates all modern code editing features like: code hints, code completion, .
    f) New debugger u2013 has a high volume of new and known functions that can be called using menus or icons. It requires an additional external session where it runs.
    But there are some problems that we faced:
    a) Sometimes it happens that after installing this gui the Internet Explorer corrupts.
    b) Users faced some initial trouble to add the new systems in SAPGui as it is little bit complex.
    c) Some performance issues when used on low end desktops.
    d) But make sure to make a copy of *.xla file. It may give you problems.
    But strangly when we installed for Citrix we were happy that we were out or any big problems.
    Here are some notes for your reference
    Note 1144671 - New SAP Installer for SAPGUI for Windows 7.10
    Note 138869 - SAP GUI on Windows Terminal Server (WTS)
    See this for prerequisite
    https://fortress.wa.gov/dop/hrms/TechInfo/DesktopReq.htm
    This for Citrix Best Practise guide
    http://support.citrix.com/article/CTX116576?print

  • Images print URL instead of image

    I have developed crystal report which shows multiple images(stored as URL pointing to Unix box location where images are placed). Same is publised to Infoview where i can see the images properly.When i am printing the images,its not printing the image instead just showing the URL.
    Please help how to resolve this.

    --Which viewer you are using to Print ? ( DHTML, ActiveX, Java ?? )
    --Whatever viewer you were using, can you change it in 'preferences' and see if you get same error in toher viewers?
    --Are you flexible in using Printing the report after it get exported to PDF ? If yes, you can use this setting from CMC ?
    --If you export the report to PDF and print from Infoview, does the images print fine?

  • Edit locally problem

    Hello,
    I have a problem with the edit locally command. I always get the error message <i>If your application does not start, your local settings may be preventing you from editing locally.</i>when trying to edit a file locally. The settings for local editing are
    ActiveX Version Check: true 
    Active Component: ActiveX
    Java Runtime Version: 1.3
    Does anybody know help?
    Kind regards,
    Domink

    Hi Dominik,
    if you have restricted administrator permissions on you client PC the edit localy ActiveX can not be installed as mentioned in this <a href="https://forums.sdn.sap.com/thread.jspa?threadID=112607">thread</a>.
    Check the information there, or better the updated SAP Note pasted there by Michael with the number: <a href="https://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=755581&_NLANG=E">755581</a>.
    Hope it helps,
    Robert

  • Run External Application

    Does anyone know the best way to connect to an external (non-Oracle) application via SQL or PL/SQL?? I have to run external applications such as MS Word from within an Oracle application. There are several applications which may be used, so I plan to start with a page of options with selection of an option connecting to the external application. Any proven options will be considered.

    This may be be very hard to accomplish...
    If users are accessing an HTMLDB application, they persumably using a browser. Browsers, by design, aren't allowed to spawn external applications on the client machine-- imagine what would happen if I could put up a web site that opened an arbitrary application on your desktop. In theory, you could probably write an ActiveX/ Java component that could be embedded on pages from HTMLDB and will, with the right security settings, open up application windows. This would be a very complex development, deployment, and maintenance problem, though.
    Perhaps if you explain why you want to spawn these applications, we could provide more assistance. It may be as simple as providing a link to a .XLS file stored in the database. When the user clicks on that and downloads the file, the server can identify the content-type of the file and the browser will open the file in whatever application is registered to support that file type.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • InfoView ignores CR 10 tab stops!

    To all:
    I have a report in Crystal 10 in which I set tab stops within a text box to creat text in a tabular format. I have headings and data fields on the next line, at the same tab stops.
    When I populate the report within Crystal, the mini-table appears formatted correctly.
    However, when I pull up the report in Business Objects InfoView, all of the tabs seem to have disappeared. All of the headings and the data are bunched together at the left margin instead of being tabbed over to the middle of the page in tabular format.
    Any help would be appreciated.
    GL

    Hi GL,
    There is possiblity that the version of crystal viewer is not compatible with the version of Business Objects Infoview. Try and use the same version of crystal viewer.
    Also, if you go to infoview prefrences --> crystal reports, you have an option to switch between different viewers such as activeX, java, html etc. Try using these.
    Hope this helps.
    Regards,
    Jay.

  • Making calls to 8i database via Excel VB

    I wrote a macro in Excel 97 that made a call to my oracle database. The macro is as follows:
    Sub getinfo()
    Dim RetAcct
    Dim RetDate
    Dim RetProp
    Dim ChannelNum
    Dim SQLStmt
    Worksheets("LYC").Select
    Range("E1:E9").Clear
    RetAcct = Cells(2, 2)
    RetDate = Cells(3, 2)
    RetProp = Cells(4, 2)
    ChannelNum = sqlopen("DSN=Pardi;uid=man;pwd=kaaaz")
    Set RetExtract = Worksheets("Sheet1")
    SQLStmt = "SELECT SUM(T.SBEGIN) FROM MAIN.ACCT A, MAIN.PROPERTY P, MAIN.TOTAL T WHERE P.HMY = T.HPPTY AND T.HACCT = A.HMY AND T.IBOOK = '1' AND P.SCODE = "
    SQLStmt = SQLStmt & "'" & RetProp & "'"
    SQLStmt = SQLStmt & " AND A.SCODE BETWEEN '13010000000000' AND '13010099999999'"
    SQLStmt = SQLStmt & " AND T.UMONTH = '" & RetDate & "'"
    Lines_Query = SQLExecQuery(ConnectionNum:=ChannelNum, QueryText:=SQLStmt)
    Lines_Ret = SQLRetrieve(ConnectionNum:=ChannelNum, DestinationRef:=Cells(1, 5), ColNamesLogical:=False)
    SQLCLose ConnectionNum:=ChannelNum
    Application.StatusBar = False
    End Sub
    This code required the user to use the XLODBC add-in which is no longer functional with Excel 2002.
    Any suggestions?

    I remember reading about a JavaBean - ActiveX bridge:
    http://java.sun.com/products/javabeans/software/
    haven't used it, but it would seem to be the best bet. You'd have to have the Java plugin installed on the target workstation, and write some Java bridging code, but it shouldn't be too tough once you get the ActiveX -> Java Bean stuff working.
    Worst case, you could create a DLL that makes JNI calls to call your RMI stubs. Depending on the complexity of the stub calls you need to make, this might not be that bad of a solution.
    - K

  • Problem with opening a Crystal Report containing parameters in InfoView

    Hello everybody.
    Here's the situation.
    I've created a Report in CR2008 wich contains parameters to reduce the shown data. The user should be able to select one or more years. I've realized this by using a dynamic parameter that gets its values out of an data field (part of a SAP BW query, connected with the BW MDX driver of the SAP Integration Kit).
    Then I've published this report using the SAP Integration Kit toolbar button.
    Now there's a copy of this report in the BW Repository and in the BO Repository as well.
    But here comes the problem. If I want to open this report it asks for the parameters to choose. But theres nothing to choose. Searching isn't working because it brings no results. So I couldn't open because it needs a parameter to go on that I can't choose or type in manually. Even that ones I've chosen while saving aren't offered or used by default.
    It doesn't matter from where I want to open it. Double click on report in SAP BW or on that one in InfoView. Same result. Stop at the discribed point.
    Open this report in the Crystal Viewer 2008 works just fine.
    Changing the viewer engine to ActiveX, Java or standard wasn't successfull.
    Any suggestions?
    Would be nice.
    Thanks a lot in advance.
    Greetings,
    Sebastian

    Anyone?
    Here's a screenshot of this empty listbox:
    [http://img106.imagevenue.com/img.php?image=72973_03.03_122_525lo.jpg]

  • LabView via Internet

    Hello,
    I have application in LabView.
    I want that this application can uses many people in the same time, but this
    application must be run only on one computer...
    How can I do it?
    I know that is maybe for it LabView Player, but I want do it without LabView
    Player.
    How can I do it?
    How can I do that, many people in this same time can use one application on
    my computer via Internet?
    I also want that this problem will solve free of cost.
    Thx
    Cezary

    "Dennis Knutson" wrote in message
    news:[email protected]..
    > Like the other post says, remote panels are the easiest thing to do
    > but the licenses have a price. It's rather small but if you really
    > want free, then you're going to have expend more effort. If you want,
    > you could create ActiveX controls or use Java to communicate with a
    > LabVIEW application. Your LabVIEW app would be designed to receive
    > information from the ActiveX/Java and then post the front panel as
    > html or just pass updated values to ActiveX controls or to a Java app.
    > If you can spend any money at all, I hightly recomend the book
    > "Internet Applications in LabVIEW" by Jeffrey Travis. It was written
    > before LabV
    IEW had the remote panel capability and comes with a lot of
    > examples. His web site is here
    > and you can also order the book from Amazon.com.
    I find in my LabView, that I can operate by Web Browser my VI application,
    but only ONE client in this time can view/operate this application. I is not
    good for me
    For next clients I have to pay for a licenses (5, 10, and more clients...)
    Issue is in two "clients": one by the web browser by Internet, and another
    one by LabView in local computer. But it still too small for me...
    So anyway, I thanks for all responses :-)
    Cezary Anisko

  • NAC VL3 in-band for VPN users Setup

    We have the setup configured as per Sample in-band for VPN clients configured.
    Currently all our clients authenticating successfully, however when they open their IE, they don't get a NAC Agent page?
    What are some of the places where I should start to look into for troubleshooting??
    Thank you,
    Dev

    Multi-hop L3 support for in-band (wired) deployments enables administrators to deploy the Clean Access Server (CAS) in-band centrally (in core or distribution layer) to support users behind L3 Switches (e.g. routed access) and remote users behind VPN Concentrators or remote WAN routers.With L3 IB, users more than one L3 hop away from the CAS are supported and their traffic always goes through Cisco NAC Appliance.
    Make sure the below compatibility.
    ActiveX/Java Applet and Browser Compatibility
    • ActiveX is supported on IE 6.0 for Windows XP and Windows 2000 systems.
    • IE 7.0 Beta is not supported when the Clean Access Agent is installed. For the Agent to login and perform other operations, users must uninstall IE 7.0 Beta 2.
    • Java applets are supported for major browsers including Safari 1.2+, Mozilla (Camino, Opera), and Internet Explorer on Windows XP, Windows 2000, Mac OS X, and Linux operating systems.
    • Due to Firefox issues with Java, Java applets are not supported for Firefox on Mac OS X.
    For further information click this link.
    http://www.cisco.com/en/US/docs/security/nac/appliance/configuration_guide/411/cas411/s_L3oob.html

  • XPathFactory.newInstance() throws NullPointerException

    Even though the javadoc of XPathFactory.newInstance() says:
    Since the implementation for the W3C DOM is always available, this method will never fail.
    I get a NullPointerException when I use my app as an ActiveX Java Bean:
    java.lang.NullPointerException
         at javax.xml.xpath.XPathFactoryFinder._newFactory(Unknown Source)
         at javax.xml.xpath.XPathFactoryFinder.newFactory(Unknown Source)
         at javax.xml.xpath.XPathFactory.newInstance(Unknown Source)
         at javax.xml.xpath.XPathFactory.newInstance(Unknown Source)
         at d.i.x.XMLUtils.getXPathValue(XMLUtils.java:553)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at d.i.IUtils.call(ICUtils.java:368)
         at d.i.c.JavaWrapper.call(JavaWrapper.java:489)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.BeanDispatchImpl.invoke(Unknown Source)

    I had to wrap the fix mentioned above in an accessControlled method to get around the security issue that I don't really think should have been triggered by this particular call to get this code to work when called from a JDialog in an applet. It worked fine in an application without either fix. Here's what the resulting code looked like: (Let me know if there's a more elegant solution ;-) And, Thanks for the fix listed above. I don't think I would have figured that out.
    :     public static XPath getXPathFactoryAccessControlled(){
              GetXPathAccessControlledAction aca = new GetXPathAccessControlledAction();
              AccessController.doPrivileged(aca);
              return aca.getValue();
         static class GetXPathAccessControlledAction implements PrivilegedAction<Object> {
              private XPath value;
              public GetXPathAccessControlledAction(){}
    public Object run() {
                   try{
                        ClassLoader cl = Thread.currentThread().getContextClassLoader();
                        Thread.currentThread().setContextClassLoader(new URLClassLoader(new URL[0], cl));
                        value = XPathFactory.newInstance().newXPath();
                        Thread.currentThread().setContextClassLoader(cl);
                   }catch (SecurityException se){
                        System.out.println("Error in Utils.getXPathAccessControlled: " + se.getMessage());
                   } catch (Exception se){
                        System.out.println("Error in Utils.getXPathAccessControlled: " + se.getMessage());
              return value;
              public XPath getValue() {return value;}
         }

Maybe you are looking for

  • Rman recover noredo vs. until cancel

    Hi, Oracle 11g 11.2.0.1 What is the difference please between rman +recover noredo+ and +recover until cancel+ ? According to Oracle documentation, noredo can be used if the database is in noarchvielog mode and the online redo logs are lost. Does thi

  • Error -2009 Converting a file to real media

    Hi I need some help, i've upgraded my Quicktime 7.1.2 to Pro and i can't seem to convert files to real media and i keep getting error -2009 can anybody help??

  • BBM Running but Not Social App

    Hi, I have Social bundle activated on my phone. I am able to access BBM however can't login on Facebook & galk. Get an error message "you are currently on service plan does not support this service" Please help if there is some issue with setting PS:

  • Bridge batch processing script for Photoshop stops after ten mins

    I have a javacript to help batch process collections of images in Bridge by sending them (in layers) to Photoshop CS5. It works perfectly, except it stops running after about ten minutes (around 6-10 images) so that I have to keep restarting the scri

  • Getting Started with BT Vision - FAQs

    If you need some help getting started with BT Vision, check out our videos for information about how to install Vision yourself.  Or if you fancy reading rather than watching, you can get the manuals here. Lots of information on BT Vision can be foun