Bridge for activex

how is the bridge "packager" invoked ?
does it run as a command line utility ?

1. Create a jar file with any bean, remember to specify an explicit manifest file with the statement:
Java-Bean: True
2. From the jre directory run:
bin\java -cp lib\jaws.jar sun.beans.ole.Packager
3. Choose the jar file and the bean in the prompts and eventually the packager will generate the lib and reg file and even let you register the control.
4. Now to test your control simply open a activehost such as VB and you should be able to see your control in the "components" list.
Sample Bean
import java.awt.*;
import javax.swing.JComponent;
public class SampleBean extends JComponent {
BorderLayout borderLayout1 = new BorderLayout();
private String sample = "Sample";
public SampleBean() {
try {
jbInit();
catch(Exception ex) {
ex.printStackTrace();
private void jbInit() throws Exception {
this.setLayout(borderLayout1);
public String getSample() {
return sample;
public void setSample(String newSample) {
sample = newSample;
Sample Mainfest for bean
Manifest-Version: 1.0
Name: SampleBean.class
Java-Bean: True

Similar Messages

  • JavaBeans Bridge for ActiveX getting started

    Hi,
    Im new to ActiveX, and ive learned that it is possible to write ActiveX controls in Java. To me, thats great news because I know Java already and dont know much about VB or NET. Im a bit confused about the usage and development thereof. Can I write these Controls using my Eclipse IDE and will I just have a DLL popping out when im finished? Or is there a lot more to it?

    Sorry. I thought it is quite a common thing among programmers to use that phrase.
    What I meant was that it crashes with a memory violation error.

  • Help! JavaBeans Bridge for ActiveX Packager blows up

    I am trying to run the packager with this command line statement:
    jre -cp lib\rt.jar;lib\swingall.jar;lib\jaws.jar;%CLASSPATH%
    sun.beans.ole.Packager
    It blows up. Can anybody tell me what is wrong?
    The most detailed instruction about running the packager that I can find is at:
    http://java.sun.com/products/plugin/1.1.1/docs/script.html
    I wonder this is based on JRE 1.1.1? I got 1.3.1 installed. Maybe something is out of sync here? Also, there is no swingall.jar in the lib directory.
    Thanks!
    Anthony

    Sorry. I thought it is quite a common thing among programmers to use that phrase.
    What I meant was that it crashes with a memory violation error.

  • Problems with the ActiveX bridge for Java beans when using third-party .jar

    I encountered the following problem when using the ActiveX bridge for a java bean:
    I am using JDK 1.4.2_09 and MS Visual Basic 6.0 (SP6). I wrote a java bean called ProcessViewer (my class ProcessViewer inherits from JComponent and implements the interfaces Serializable and AdjustmentListener) which I would like to use within a VB 6.0 application. I used the ActiveX bridge (packager.exe) to generate a DLL (ProcessViewer.dll) and registered it successfully. The java bean GUI-control works fine within my VB 6.0 application unless my java bean (ProcessViewer.jar) uses any third-party .jar files.
    But when I tried to add a reference to some third-party class (com.sap.xxx.xxx....) I got some problems. I could solve the problem with packager.exe by setting the correct CLASSPATH. But at runtime my VB 6.0 application does not work. It crashes or it reports an error like this: "The control ... could not be loaded from axbridge.dll" (although I deployed my .jar file correctly to the directory C:\Programme\Java\j2re1.4.2_09\axbridge\bin and lib). Setting the CLASSPATH environment variable before calling my VB 6.0 application (exe) did not solve the problem.
    How can I teach my VB 6.0 application (containing the Java bean ActiveX control) where to find the third-party .jar file? Copying the third-party .jar file to the JRE lib-folder or to the axbridge\lib folder did not solve the problem either.
    I studied the documentation about the ActiveX bridge given at:
    http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    but I am missing informations on how the third-party .jar files can be found during runtime of the ActiveX container (e. g. a VB 6.0 application).

    See how to solve your problem with JNI:
    http://codeproject.com/cpp/OOJNIUse.asp
    More examples (for SWING) in tools setup:
    http://www.simtel.net/product.php[id]95126[SiteID]simtel.net
    http://www.simtel.net/product.php[id]94368[SiteID]simtel.net
    http://www.simtel.net/product.php[id]93174[SiteID]simtel.net

  • How to build an ActiveX bridge for jasper viewer

    Hi,
    i want to build an ActiveX bridge for Jasper viewer.Does anyone knows How to build an Active X bridge for a component.I am very new to this concept.Please someone help me

    hi,
    can u please give some url's which is helpful to create Activex Bridge?

  • Detailed Software Repair Instructions using Pc Companion(Win)or Bridge for MAC. (Update 8/5/2014)

    We have an extended guide that should help you repair the system of your phone. This instructions are valid for all Android based units and for some legacy Sony Ericsson models(The list of phones that can be used with the application is displayed in Step 9 of the process). please follow the instructions carefully: Turn the phone off and disconnect it from the computer.  1. Visit this link:http://www.sonymobile.com/us/tools/pc-companion/Click on Download PC companion2.Run the software After the installation the first screen will show you the PC Companion Startup Guide which gives you a brief explanation on the main modules of PC companion (Support Zone, Xperia Transfer, Contact setup and Media Go) Keep clicking next.3.Now you will see the screen with the different modules.Select Support Zone> Click Start.  The program will download the module. Then click on start on Phone/Tablet Software update. (Here you can choose to update an accessory, go to step 14 for instructions) Note: At this point if you get an error stating that "unable to install update components" or "server is busy" Please proceed to step 13 . If you not see that error then continue with step 4.
    4. The program will show a window saying "could not find phone/Tablet” Do not Connect phone instead select Repair my phone/tablet. This will bring you to a window with a warning that says "data will be lost" (do you want to continue) Select to continue (Data in the phone will be deleted, only data in the SD card will remain. Make sure you have done all proper backups if possible)6. The program will issue a second warning stating that “data saved in the phone /tablet will be overwritten during the update of your phone”. Click on the checkmark box next to the acceptance text and select Next to continue.7. Next the computer will download the necessary files (Prepare stage, this can take several minutes depending on the speed of your connection) and then its done it will show you a list of recommendations for a successful update operation. When you are done reading this section click on the checkmark box and press Continue8. Next you will get a Battery level warning that states that your phone should have at least 80% battery. (If the issue in the phone does not permit the unit from turning on, then charge it connected to the wall charger for at least 2 hours and then comeback to this step) Then click on the checkmark and select Next9. Choose the Phone from the list then click on "next" then you will see a new section telling you how to connect the phone. (don't connect it yet) Again, at this point the phone must be off and disconnected from the PC. 10.. Connect the cable to the PC not to the phone, then while pressing and holding the indicated button (in the steps on screen an specific button will be shown for you to press on the phone) connect the cable to the phone and keep holding the indicated button until the program says "the update of your phone has started..." (in some cases a message of  "Installing drivers" will appear before the message of "the update of your phone has started..."  is shown.) 11. If you failed to follow the steps correctly the phone will turn on. If this happens disconnect the phone from the cable, turn it off and repeat from step 10). 12. If the phone is connected properly, PC Companion will proceed with the update ( It will tell you to let go of the key) then wait for the update to finish and follow instructions on screen to disconnect the unit.  End of process. ----------------------------------------------------------------------If the software fails to install:13. If "unable to install update components" 1. Close Pc companion 2. Install Java from: http://www.java.com 3. start Pc companion again and try to do the software unlock process once more. 14.Select Accessories software update. Click on start and the computer will download the necessary files (Prepare Stage) it will take several minutes. Then follow the instructions from step 8.  Note: Some computers may block the installation of the update service, if this happens use this:http://www.sonymobile.com/us/tools/update-service/ this is the Standalone update software. (Not globally available)If the Phone is unresponsive (Then do this extra step and when done proceed to redo the repair process:Press and hold the power button and the volume up button at the same time for 10 to 15 seconds. This will reset the unit)Note: This procedure does not work for the Xperia Play R800x (Verizon and other Non SIM card variants of the Xperia play that lack MTP support.  It does work for the R800a At&t's model)Bridge For Mac instructions on my post below. Valid for all Android based units and most java Sony Ericsson units. 

    Here are the basic Steps for Bridge for MAC.Download Bridge for MAC from:http://www.sonymobile.com/gb/tools/bridge-for-mac/The phone should not be connected to the MAC.
    The phone should be off.After the Download unzip the file and drag the bridge for MAC icon to the Applications folder. (install then use finder to locate icon)In the Main "No phone connected" window, on the top menu (top application menu) Select "Phone" and scroll down to "Repair phone"
    This will open the Phone Software Restore window with the 3 sections for Start, Prepare and Update.
    Click on continue bellow. Doing so will popup a window warning you about the loss of your personal info. Click on the checkmark signaling that you understand the data loss situation,
    This will take you to the Connection Procedure Screen. Follow the instructions in the screen and click on continue*.
    *One key aspect of the last step to keep holding the indicated button before and after you connect the phone to the MAC until the update starts. IF this is not done correctly then the phone won't connect to the MAC

  • Help for using camera raw in PSE 8/Bridge for Mac for the Canon 7D

    Recently purchasing the Canon 7D, taking a few test photos in Raw, then trying to use Camera Raw in PSE8/Bridge for Mac is a problem.  I cannot figure it out.  Can anyone help this frustrated, novice computer user?

    You need to update the camera raw plug-in for bridge and PSE 8 separately (they use two different copies). In Bridge, just go to Help>Updates which will install, I think, ACR 5.7, which  works with your camera. (You can't update bridge beyond that version).
    For PSE 8, go here, download the latest version and follow the instructions in the readme file.
    http://www.adobe.com/support/downloads/product.jsp?product=40&platform=Macintosh
    Note that the directions may tell you that you can overwrite the old plug-in. That isn't true--you must remove it before putting the new one in there.

  • Setting up Bridge for multiple users on a network

    New Bridge user here
    Can anyone give me some advice on how to set up Bridge for use by multiple users over a network / server?
    We have a large image bank stored on a server and ideally if any one user adds keywords or other metadata to an image I would like the rest of the users to be able to view that data and be able to use it in searches. AS more than one user could add keywords at any time I was wondering is it possible to set up a central keyword file or cache so any updates are available to all users.
    Do I set up a shared cache? What happens if it becomes corrupted and has to be rebuilt, do the keywords disappear as well?
    Are the keywords associated with that particular cache or are they stored in a separate file?
    Thanks,
    Hazel

    Curt
    how do you know if your using the
    Central cache all distributed cache ?
    and are they both stored in the same place ?

  • How to open a zip-file in Bridge for PC?

    How to open a zip-file in Bridge for PC?

    I think it's built in, just double click on it and it should open with Archive Utility. I dunno, maybe Unrar X might work for you>
    JB

  • Unable to perform update with Sony Bridge for Mac

    I have not been able to update my Xperia Z1 (model C6906) through Sony Bridge for Mac.
    While attempting this in SBM version 3.5 the following messages would appear:
    There was an issue with the update engine. Please contact technical support. (reason:failed to start local server)
    then:
    There was an issue with the update engine. Please contact technical support. (reason:failed to parse installer XML(code 11))
    SBM has now updated to version 3.6(3602) and still no luck. The software is able to download the update engine but then remains stuck in the initializing phase, talking to update engine.
    My phone is at build# 14.1.G.2.257. The proposed update seems minor, as the build # doesn't change but it would be great to have this issue resolved in time for kitkat 4.4
    There doesn't appear to be a problem with the phone as the staff at the Sony Store were able to perform my initial out of the box update with PC Companion.
    My Mac is running  OS10.9 and the java version is 1.6.0_65
    Any advice would be much appreciated

    In the mean time it would be worth updating the version of java you are running on your MAC:
    http://www.java.com/en/download/help/mac_java_update.xml
    Don't forget to mark posts that answers the topic as Accepted Solution. 
    If you find any post helpful, press Kudos.
    What are your thoughts about this forum? Let us know by doing this short survey.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Using libraries vs. Bridge for graphics in placeholder frames

    Hi,
    I do not understand the advantanges of using libraries vs. Bridge for my purpose:
    Purpose:
    I am working with templates using graphic placeholder frames. The frames are anchored in table cells and have object styles applied defining e.g. the placement of the graphic within the graphic frame.
    I want to set up central graphic library for all graphics used in all my documents.
    The graphics should then be linked into the documents
    Idea:
    set up various InDesign libraries and then drag the graphics into the placeholder frames. Then, when the graphic needs to be changed, do the changes in the library and have all my documents updated at once.
    Problem:
    Dragging graphics from the library into the placeholder frames does not seem to work. They are simply placed onto the page and NOT in the graphic frame. On the other hand when I simply store the graphics in various subdirectories in my file system and drag the graphics onto the page using Adobe Bridge, they ARE placed in the graphic placeholder frames.
    The library therefore seems a disadvantage, so why should I use a library instead of the Bridge?
    Also, will be upgrading to CS5 soon an want to use the live-linking caption feature. Should I use libraries or the Bridge approach?
    Stumped on this issue

    I like the idea with the snippet, but when dragging a snippet from Bridge there is still the same problem as with the library item: The graphic is NOT placed into the graphic placeholder frame of my template but is a free-flowing new graphic item which has to be placed manually.
    Interestingly, a JPG-file simply saved in the filesystem and dragged from Bridge and dropped over the placeholder frame WILL place the JPG into the frame!
    Why won't snippets do this??

  • Does adobe photo downloader come preinstalled with Bridge for cs6

    If bridge for photoshop cs6 does not have "adobe photodownloader pre installed . How do I get this software.

    It comes with every install of Bridge. Nothing else required. You jsut need to enable it from within the program's options, if you want to use it.
    Mylenium

  • Problems with Bridge for Mac 3.7

    I've been using Bridge for Mac for a while without any problems, but since it downloaded the 3.7 update it won't recognize my phone. When I connect, it thinks for a few seconds, then says it cannot connect. I've tried deleting and redownloading the app, and deleting any relevant system files I can find. If I connect it in Windows with the same cable and through the same USB port, PC Companion recognizes it no problem. Any idea what's going on here?

    Hi mcilwr01,
    I'm sorry Bridge isn't working for you, and I understand you're upset. 
    Could you please send me error logs that I can forward to the development crew? Otherwise it's near impossible to tell what's causing your problems.
    Here’s how to get error logs from Sony Bridge for Mac:
    1. In BfM, hold the "alt" key down while selecting the "Phone" menu. Select "Clear logs" to remove all old logs and get a clean start
    2. Reproduce the problem you're having, whether it's connecting the phone, importing photos, doing backup...
    3. In BfM, hold the "alt" key down while selecting the "Phone" menu. Select "Export logs"
    4. On the computers desktop there should now be a file named "SonyBridgeForMacLogs_[date].zip
    5. PM that file to me or post the contents here 
    We are working on solving the problems of 3.7 as fast as possible, I apologize for not having a solution for you right now.
    Best Regards,
    David

  • How to create db conn for JDBC-ODBC Bridge for MS Access in ADF APP?

    Sir,
    How to create db conn for JDBC-ODBC Bridge for MS Access in ADF APP?
    Regards

    Hello Every Body!
    I succeeded in getting connect to the ms access database in adf application in jdeveloper as below:
    First in control panel to to admin tools and  go to data source(odbc) and create system dsn as bellow pic
    Then go to jdeveloper resources ide conn and then database and new database conn and then select jdbc-odbc briddge and then give custom jdbc url as bellow pic
    Cheers
    tanvir

  • Sony Bridge for Mac doesn't work with my Sony Xperia J

    I have installed Sony Bridge for Mac version 3.7.1, but it won't connect to my Sony Xperia J which I have only had for 3 months.
    I get the error "Could not connect to your Xperia device. Please disconnect and reconnect it again. Restart the device if the problem persists". All the time.
    I have tried all of the suggestions in the error message. I have also tried reinstalling Sony Bridge for Mac, to no avail.
    I am running Mac OS X 10.9.2 on an iMac. I am also using the correct USB lead - the one supplied with the phone.
    The Mac system log shows this error:
    Apr  3 20:42:35 robins-imac.default Sony Ericsson Bridge for Mac[973]: BUG in libdispatch client: kevent[EVFILT_WRITE] delete: "No such file or directory" - 0x2
    I suspect that whoever wrote Sony Bridge for Mac did not try it on OS X 10.9.2.
    I am seriously thinking of getting rid of this phone and getting one that works properly with the Mac - ie, not a Sony phone. Sony always seem to have problems with supporting Macs, for some bizarre reason.

    Hi Yorkshirecomposer,
    I will ask the development crew about the system log error. Additionally, could you provide me with error logs to send them as well?
    Here’s how to get error logs from Sony Bridge for Mac: 
    1. In BfM, hold the "alt" key down while selecting the "Phone" menu. Select "Clear logs" to remove all old logs and get a clean start
    2. Reproduce the problem you're having, whether it's connecting the phone, importing photos, doing backup...
    3. In BfM, hold the "alt" key down while selecting the ”Xperia” menu. Select "Export logs"
    4. On the computers desktop there should now be a file named "SonyBridgeForMacLogs_[date].zip
    5. PM that file to me or post the contents here
    Best Regards,
    David

Maybe you are looking for