Using legacy DLLs on a Linux system

We are converting some of our apps to a Linux platform.
The problem is some of our vendors furnish their SDKs only in Windows DLLs.
Does anyone know of a method to communicate between the Linux app and the Windows DLL on the same Linux box.
Michael

OK, I've used COM objects on Windows - are you saying I can create a COM object to run a Windows DDL on a Linux box?

Similar Messages

  • How can I use Drap and Drop in Linux system?

    I try to use DnD in a item from "explorer" in Linux into my application, but it does atually not work. The same version is work well on Windows. Below is code (3 separated files):
    * FileAndTextTransferHandler.java is used by the 1.4
    * DragFileDemo.java example.
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    class FileAndTextTransferHandler extends TransferHandler {
        private DataFlavor fileFlavor, stringFlavor;
        private TabbedPaneController tpc;
        private JTextArea source;
        private boolean shouldRemove;
        protected String newline = "\n";
        //Start and end position in the source text.
        //We need this information when performing a MOVE
        //in order to remove the dragged text from the source.
        Position p0 = null, p1 = null;
        FileAndTextTransferHandler(TabbedPaneController t) {
           tpc = t;
           fileFlavor = DataFlavor.javaFileListFlavor;
           stringFlavor = DataFlavor.stringFlavor;
        public boolean importData(JComponent c, Transferable t) {
            JTextArea tc;
            if (!canImport(c, t.getTransferDataFlavors())) {
                return false;
            //A real application would load the file in another
            //thread in order to not block the UI.  This step
            //was omitted here to simplify the code.
            try {
                if (hasFileFlavor(t.getTransferDataFlavors())) {
                    String str = null;
                    java.util.List files =
                         (java.util.List)t.getTransferData(fileFlavor);
                    for (int i = 0; i < files.size(); i++) {
                        File file = (File)files.get(i);
                        //Tell the tabbedpane controller to add
                        //a new tab with the name of this file
                        //on the tab.  The text area that will
                        //display the contents of the file is returned.
                        tc = tpc.addTab(file.toString());
                        BufferedReader in = null;
                        try {
                            in = new BufferedReader(new FileReader(file));
                            while ((str = in.readLine()) != null) {
                                tc.append(str + newline);
                        } catch (IOException ioe) {
                            System.out.println(
                              "importData: Unable to read from file " +
                               file.toString());
                        } finally {
                            if (in != null) {
                                try {
                                    in.close();
                                } catch (IOException ioe) {
                                     System.out.println(
                                      "importData: Unable to close file " +
                                       file.toString());
                    return true;
                } else if (hasStringFlavor(t.getTransferDataFlavors())) {
                    tc = (JTextArea)c;
                    if (tc.equals(source) && (tc.getCaretPosition() >= p0.getOffset()) &&
                                             (tc.getCaretPosition() <= p1.getOffset())) {
                        shouldRemove = false;
                        return true;
                    String str = (String)t.getTransferData(stringFlavor);
                    tc.replaceSelection(str);
                    return true;
            } catch (UnsupportedFlavorException ufe) {
                System.out.println("importData: unsupported data flavor");
            } catch (IOException ieo) {
                System.out.println("importData: I/O exception");
            return false;
        protected Transferable createTransferable(JComponent c) {
            source = (JTextArea)c;
            int start = source.getSelectionStart();
            int end = source.getSelectionEnd();
            Document doc = source.getDocument();
            if (start == end) {
                return null;
            try {
                p0 = doc.createPosition(start);
                p1 = doc.createPosition(end);
            } catch (BadLocationException e) {
                System.out.println(
                  "Can't create position - unable to remove text from source.");
            shouldRemove = true;
            String data = source.getSelectedText();
            return new StringSelection(data);
        public int getSourceActions(JComponent c) {
            return COPY_OR_MOVE;
        //Remove the old text if the action is a MOVE.
        //However, we do not allow dropping on top of the selected text,
        //so in that case do nothing.
        protected void exportDone(JComponent c, Transferable data, int action) {
            if (shouldRemove && (action == MOVE)) {
                if ((p0 != null) && (p1 != null) &&
                    (p0.getOffset() != p1.getOffset())) {
                    try {
                        JTextComponent tc = (JTextComponent)c;
                        tc.getDocument().remove(
                           p0.getOffset(), p1.getOffset() - p0.getOffset());
                    } catch (BadLocationException e) {
                        System.out.println("Can't remove text from source.");
            source = null;
        public boolean canImport(JComponent c, DataFlavor[] flavors) {
            if (hasFileFlavor(flavors))   { return true; }
            if (hasStringFlavor(flavors)) { return true; }
            return false;
        private boolean hasFileFlavor(DataFlavor[] flavors) {
            for (int i = 0; i < flavors.length; i++) {
                if (fileFlavor.equals(flavors)) {
    return true;
    return false;
    private boolean hasStringFlavor(DataFlavor[] flavors) {
    for (int i = 0; i < flavors.length; i++) {
    if (stringFlavor.equals(flavors[i])) {
    return true;
    return false;
    * TabbedPaneController.java is used by the 1.4
    * DragFileDemo.java example.
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    * Class that manages area where the contents of
    * files are displayed.  When no files are present,
    * there is a simple JTextArea instructing users
    * to drop a file.  As soon as a file is dropped,
    * a JTabbedPane is placed into the window and
    * each file is displayed under its own tab.
    * When all the files are removed, the JTabbedPane
    * is removed from the window and the simple
    * JTextArea is again displayed.
    public class TabbedPaneController {
        JPanel tabbedPanel = null;
        JTabbedPane tabbedPane;
        JPanel emptyFilePanel = null;
        JTextArea emptyFileArea = null;
        FileAndTextTransferHandler transferHandler;
        boolean noFiles = true;
        String fileSeparator;
        public TabbedPaneController(JTabbedPane tb, JPanel tp) {
            tabbedPane = tb;
            tabbedPanel = tp;
            transferHandler = new FileAndTextTransferHandler(this);
            fileSeparator = System.getProperty("file.separator");
            //The split method in the String class uses
            //regular expressions to define the text used for
            //the split.  The forward slash "\" is a special
            //character and must be escaped.  Some look and feels,
            //such as Microsoft Windows, use the forward slash to
            //delimit the path.
            if ("\\".equals(fileSeparator)) {
                fileSeparator = "\\\\";
            init();
        public JTextArea addTab(String filename) {
            if (noFiles) {
                tabbedPanel.remove(emptyFilePanel);
                tabbedPanel.add(tabbedPane, BorderLayout.CENTER);
                noFiles = false;
            String[] str = filename.split(fileSeparator);
            return makeTextPanel(str[str.length-1], filename);
        //Remove all tabs and their components, then put the default
        //file area back.
        public void clearAll() {
            if (noFiles == false) {
                tabbedPane.removeAll();
                tabbedPanel.remove(tabbedPane);
            init();
        private void init() {
            String defaultText =
                "Select one or more files from the file chooser and drop here...";
            noFiles = true;
            if (emptyFilePanel == null) {
                emptyFileArea = new JTextArea(20,15);
                emptyFileArea.setEditable(false);
                emptyFileArea.setDragEnabled(true);
                emptyFileArea.setTransferHandler(transferHandler);
                emptyFileArea.setMargin(new Insets(5,5,5,5));
                JScrollPane fileScrollPane = new JScrollPane(emptyFileArea);
                emptyFilePanel = new JPanel(new BorderLayout(), false);
                emptyFilePanel.add(fileScrollPane, BorderLayout.CENTER);
            tabbedPanel.add(emptyFilePanel, BorderLayout.CENTER);
            tabbedPanel.repaint();
            emptyFileArea.setText(defaultText);
        protected JTextArea makeTextPanel(String name, String toolTip) {
            JTextArea fileArea = new JTextArea(20,15);
            fileArea.setDragEnabled(true);
            fileArea.setTransferHandler(transferHandler);
            fileArea.setMargin(new Insets(5,5,5,5));
            JScrollPane fileScrollPane = new JScrollPane(fileArea);
            tabbedPane.addTab(name, null, (Component)fileScrollPane, toolTip);
            tabbedPane.setSelectedComponent((Component)fileScrollPane);
            return fileArea;
    * DragFileDemo.java is a 1.4 example that
    * requires the following file:
    *    FileAndTextTransferHandler.java
    *    TabbedPaneController.java
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    public class DragFileDemo extends JPanel
                              implements ActionListener {
        JTextArea fileArea;
        JFileChooser fc;
        JButton clear;
        TabbedPaneController tpc;
        public DragFileDemo() {
            super(new BorderLayout());
            fc = new JFileChooser();;
            fc.setMultiSelectionEnabled(true);
            fc.setDragEnabled(true);
            fc.setControlButtonsAreShown(false);
            JPanel fcPanel = new JPanel(new BorderLayout());
            fcPanel.add(fc, BorderLayout.CENTER);
            clear = new JButton("Clear All");
            clear.addActionListener(this);
            JPanel buttonPanel = new JPanel(new BorderLayout());
            buttonPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
            buttonPanel.add(clear, BorderLayout.LINE_END);
            JPanel upperPanel = new JPanel(new BorderLayout());
            upperPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
            upperPanel.add(fcPanel, BorderLayout.CENTER);
            upperPanel.add(buttonPanel, BorderLayout.PAGE_END);
            //The TabbedPaneController manages the panel that
            //contains the tabbed pane.  When there are no files
            //the panel contains a plain text area.  Then, as
            //files are dropped onto the area, the tabbed panel
            //replaces the file area.
            JTabbedPane tabbedPane = new JTabbedPane();
            JPanel tabPanel = new JPanel(new BorderLayout());
            tabPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
            tpc = new TabbedPaneController(tabbedPane, tabPanel);
            JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
                upperPanel, tabPanel);
            splitPane.setDividerLocation(400);
            splitPane.setPreferredSize(new Dimension(530, 650));
            add(splitPane, BorderLayout.CENTER);
        public void setDefaultButton() {
            getRootPane().setDefaultButton(clear);
        public void actionPerformed(ActionEvent e) {
            if (e.getSource() == clear) {
                tpc.clearAll();
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            JFrame frame = new JFrame("DragFileDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the menu bar and content pane.
            DragFileDemo demo = new DragFileDemo();
            demo.setOpaque(true); //content panes must be opaque
            frame.setContentPane(demo);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
            demo.setDefaultButton();
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();

    I'm currently using Linux Fedora system.
    Doesn't matter. There's no standard way for D&D on Linux, no single API.
    Every application has its own mechanism which may or may not be compatible with any other.
    Gnome and KDE groups are doing some work to provide a common standard but as you know the Linux zealots are completely opposed to anyone telling them what to do (such as creating standards) and won't in general follow them.

  • Backing up your Linux systems with the command line

    While there are many GUI-based backup and storage tools for Linux users, there are also a few command line-based tools. "Rsync" is one of these tools and, according to Linux.com, it stands for remote sync. With afull tutorial on how to use rsync, Linux.com walks you through how "one of the most used'tools' in the UNIX world [works]."
    Even though it's a simple tool, rsync has quite a few capabilities. You can use rsync "to sync files on two directories on the same PC, on two different systems on the same network, [and] .... on machines thousands of miles apart, over the Internet." In its guide, Linux.com explains each of these processes in detail. While the guide focuses on server backup, each and every command has its place on your personal workstation as well.
    What other tools do you use to back up your Linux systems?
    This topic first appeared in the Spiceworks Community

    try checking relevant environment variables like the CLASSPATH.... a major source of failures in Windows is when in the classpath there is a path containing SPACES.... also enabling some "debug" or "verbose" flag (not sure how to do it) would provide more insight...

  • How do i add Linux systems to be monitored using Virtual agent/SNMP in OLT?

    Dear All,
    I need to know the process to add Linux systems to be monitored using Virtual agent and SNMP in OLT ?
    I have added my details to Virtual agent and chosen ssh and all i get is cannot connect
    Appreciate if someone can give me the detailed screenshot by screenshot process.
    Regards
    Praveen

    On 05/13/2010 09:30 AM, Raja Vengala wrote:
    >
    Yes, the problem is with the old packaged PLINK.exe. Downloaded version is working smoothly. Any reason for shipping the old version ??
    From: Mikael Fries
    Sent: Wednesday, May 12, 2010 11:56 PM
    To: Praveen Arora; Drupad Panchal; Matthew Demeusy; Ashish Dave; Raja Vengala
    Subject: RE: OLT Linux system moniting issue
    Praveen
    I have set up LINUX and virtual agent configs a couple of times, and it has worked pretty ok.
    What I found was that you might have to download a newer version of PLINK.exe and put that onto your OLT system.
    (with the packaged version, I also had some communication issues)
    Try to download the lates plink.exe and see if that works…
    (you may want to restart you system after replacing plink.exe)

  • What is happening about: The GNU Bourne Again Shell (Bash) is a command line utility widely used in many Unix-based operating systems including Linux and OS X.  Researchers have discovered a critical flaw in Bash which could allow remote code executi

    Authoritative advice today:
    The GNU Bourne Again Shell (Bash) is a command line utility widely used in many Unix-based operating systems including Linux and OS X.
    Researchers have discovered a critical flaw in Bash which could allow remote code execution by an unauthenticated user
    APPLE response?

    Also see:
    http://www.macrumors.com/2014/09/26/apple-os-x-users-safe-bash-flaw-update-soon/
    If you are not running a web server
    If you have not enabled CUPS web interface
    If you do not allow anonymous users to ssh into your Mac.
    If all are no, they you are not at risk.
    This IS a very serious bug for web servers, but the typical consumer Mac user is not at risk.

  • Unable to collect Product Return History using legacy collection

    Hi,
    I am facing issue in collecting product return history using legacy collection, File Upload (User File Upload) & Loader Worker erroring out as below. As I observe, its inserting space after .ctl, .dis & .bad file path.
    Can some one guide me how to reslove below issue.
    Loader Worker
    Argument 1 (CTRL_FILE) = /u02/oracle/xxxxx/inst/apps/rights_apps/logs/appl/conc/out/5913849MSD_DEM_RETURN_HISTORY .ctl
    Argument 2 (DATA_FILE) = /u02/oracle/xxxxx/inst/apps/rights_apps/logs/appl/conc/out/5913849PrdRetHist.dat
    Argument 3 (DISCARD_FILE) = /u02/oracle/xxxxx/inst/apps/rights_apps/logs/appl/conc/out/5913849MSD_DEM_RETURN_HISTORY .dis
    Argument 4 (BAD_FILE) = /u02/oracle/xxxxx/inst/apps/rights_apps/logs/appl/conc/out/5913849MSD_DEM_RETURN_HISTORY .bad
    Argument 5 (LOG_FILE) =
    Argument 6 (NUM_OF_ERRORS) = 1000000
    ===================================================================
    plan_id:0 plan_type:0 planning_engine_type:1
    Creating dummy log file ...
    Parent Program Name: MSCLOADS
    This is NOT as part of a Plan run.
    NLS_LANG original American_America.AL32UTF8 alt American_America.UTF8
    LRM-00112: multiple values not allowed for parameter 'control'
    SQL*Loader: Release 10.1.0.5.0 - Production on Tue Mar 11 19:58:20 2014
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL*Loader-100: Syntax error on command-line
    Program exited with status 1
    APP-FND-01630: Cannot open file /u02/oracle/xxxxx/inst/apps/rights_apps/appltmp/OFq98wrx.t for reading
    Cause: USDINS encountered an error when attempting to open file /u02/oracle/xxxxx/inst/apps/rights_apps/appltmp/OFq98wrx.t for reading.
    Action: Verify that the filename is correct and that the environment variables controlling that filename are correct.
    Action: If the file is opened in read mode, check that the file exists. Check that you have privileges to read the file in the file directory. Contact your system administrator to obtain read privileges.
    Action: If the file is opened in write or append mode, check that you have privileges to create and write files in the file directory. Contact your system administrator to obtain create and write privileges.
    ***** End Of Program - No title available *****
    File Upload (User File Upload)
    Tue Mar 11 19:57:52 RET 2014: Profile 'MRP_DEBUG' Value : N
    Tue Mar 11 19:57:52 RET 2014: ===============================================================
    Tue Mar 11 19:57:52 RET 2014: fileLoaderInit: paramName = pLOAD_ID; paramValue=41563
    Tue Mar 11 19:57:52 RET 2014: ===============================================================
    Tue Mar 11 19:57:52 RET 2014: The control file Path /u02/oracle/xxx/apps/apps_st/appl/msc/12.0.0/patch/115/import/MSD_DEM_RETURN_HISTORY .ctl does not exist. Please contact your System  Administrator
    Regards,
    ML

    Hi,
    Login to unix server and I believe the control file is placed in a custom top say $MSC_TOP in your environment.
    just try to rename the ctl file without the MSD_DEM_RETURN_HISTORY<space>.ctl
    And try to upload the file once again.
    Hope this helps...!!!

  • Problem in using AcroPDF.dll in vb6 application

    I have an vb6 application and i want to display a PDF file in a form. I have used AcroPDF.dll and works fine on developmeny system.
    But when i install application on client's system i get error "Out of memory" when i try to open the form with PDF control.
    can anyone help me with this.
    Thanks

    Try asking this question in the Acrobat SDK forum.

  • HOWTO: Repairing a headless Arch Linux system that fails to boot

    The scenario...
    I have a "headless" (no monitor or input peripherals) Arch Linux computer that is connected to a local network via a wireless adapter, and accessed from other computers via SSH.
    Earlier today I accidentally broke its kernel so it did not boot anymore.
    Idea: Temporarily connect a monitor to the computer, boot from a live CD (like the Arch Linux install CD), then chroot into the system and fix it.
    Problem: I didn't have a compatible monitor at hand.
    Idea: Log in to the live CD session from another computer via SSH.
    Problem: The live CD can't auto-configure the headless computer's wireless connection, and setting it up manually while working "blind" would be a major hassle. A direct LAN connection to the router wasn't available either.
    Idea: Connect directly with a laptop via an Ethernet cable, and then use SSH from the laptop => This solution worked for me!
    If you find yourself in a similar situation, you can follow this tutorial which describes the solution that worked for me in detail...
    You need:
    a copy of the Arch Linux install CD (I used the 2013-05-01 version)
    an Ethernet cable
    a keyboard (might be dispensable, with additional preparation)
    a functional Arch Linux laptop (or other computer within physical range)
    Step 1) Prepare the live CD...
    I used the plain Arch Linux install iso, burnt to CD.
    By creating a carefully customized version of the live CD using Archiso, you might be able to eliminate the need for steps 2 and 4 - however that's not covered in this tutorial.
    Step 2) Prepare the laptop...
    The laptop needs to be configured in such a way, that the live CD's attempt to automatically establish an Ethernet connection with it will succeed:
    a) IP address
    In my case, the Laptop's wireless adapter had an IP address in the range 192.168.1.*, connecting it to the local network and Internet via the central router 192.168.1.1.
    The Ethernet connection between the laptop and the headless computer becomes a separate mini-network, for which I decided to use IP addresses in the range 192.168.0.* (note the different third number). Specifically, I set the IP address of my laptop's Ethernet card to 192.168.0.1. You can do this by running the following as root (replace "eth0" with the name of your Ethernet interface):
    ip link set eth0 up
    ip addr add 192.168.0.1/24 dev eth0
    b) IP forwarding (optional)
    While we're at it, we might as well enable IP forwarding, so that the live CD session on the headless computer will be able to directly use the laptop's outgoing Internet connection (which will make it much more convenient to install/upgrade packages during the repair session). To enable this, run the following as root (replace "eth0" and "wlan0" with the names of your laptop's Ethernet and wireless interfaces, respectively):
    iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
    iptables --append FORWARD --in-interface eth0 -j ACCEPT
    sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
    c) DHCP
    The live CD will assume there's a router on the other side of the Ethernet link, and ask for an IP address via DHCP. So all we need to do, is run a dhcp server on the Laptop that will answer this request. It's surprisingly easy: Just install the package dnsmasq, and put the following in the file /etc/dnsmasq.conf (again replacing "eth0" as appropriate):
    interface=eth0
    dhcp-range=192.168.0.2,192.168.0.2
    By setting the start & end values of dhcp-range to the same IP address, we enforce that this specific IP address will be used by the live CD on the headless computer.
    Then start the daemon by running the following as root:
    systemctl start dnsmasq.service
    Step 3) Connect everything and boot up the live CD...
    Connect the laptop and the headless computer via the Ethernet cable.
    Connect the external keyboard to the headless computer.
    Then put the Arch Linux install CD into the headless computer's drive, and boot. Wait a minute or so to give the CD time to load its boot menu (you should hear the CD drive spin up and settle down again). Then hit ENTER on the connected keyboard, to activate the default menu choice (which will boot straight to a live Arch Linux session with root privileges).
    You can check whether it booted up and successfully initialized the Ethernet connection, by ping'ing the IP address that was specified in step 2c) from the laptop:
    ping -c3 192.168.0.2
    Step 4) Start the SSH server...
    Unfortunately, the Arch Linux install CD doesn't automatically start its SSH server, and also it uses a randomized root password. To make SSH connections possible, you will have to use the connected keyboard to type in some stuff "blindly" (but it's simple enough):
    type "passwd" (without the quotes)
    type in a new password of your choice
    press ENTER
    type in the same password again
    press ENTER
    type "systemctl start sshd" (without the quotes)
    press ENTER
    Step 5) Connect from the laptop via SSH...
    Now you can open an SSH connection, by executing the following on the laptop (when it asks for the password, enter the one you chose in step 4):
    ssh [email protected]
    Step 6) Profit!
    Within this SSH shell on the laptop, you can now do whatever you would usually do to fix an Arch Linux system from a live CD.
    You'll probably want to chroot into your Arch root partition, which is very easy thanks to the arch-chroot tool that is included on the live CD (replace "/dev/sda3" with the name of the headless computer's root partition):
    mount /dev/sda3 /mnt
    arch-chroot /mnt
    If you set up IP forwarding as described in step 2b), then Internet access should magically work in this shell without any further configuration, so you can freely use pacman etc. inside the chroot.
    Enjoy!
    Last edited by sas (2013-07-26 22:17:03)

    It is definitely able to recognize the USB and DVDs as separate drives; it gives the option of booting from USB, and it gives the memory capacity of the USB drive I used as a live USB, and the memory used for the live CD.  But when it comes time to actually boot, something is going wrong.
    I would suspect it is a problem with the BIOS, if not for the fact that I had a similar issue on my previous system, which used a completely different motherboard.  If it is the same issue, it would either have to be a problem with the DVD drive (although I don't know why it would be against loading some live CDs but not others) or perhaps the way I created the live CDs.  Although, again, I don't understand why the Linux Mint 32-bit DVD would work fine, while both 64-bit DVDs would not.
    I will try using a different DVD drive to boot the DVDs, and if that does not work, I'll try creating a new Arch live CD to see if I can resolve the issue.  But if anyone has any ideas, it would still be greatly appreciated.

  • How do I create an FSDIAG file on Linux systems?

    QuestionHow do I create an FSDIAG file on Linux systems?
    AnswerTo create an FSDIAG file for the Linux Security product:
    Go to a working directory to which the fsdiag.tar.gz file will be created.
    Run the following command:
    # /opt/f-secure/fsav/bin/fsdiag
    Note: Any existing FSDIAG file will be overwritten.
    You will find the fsdiag.tar.gz file on the current working directory. Attach this file to your support request.
    To create an FSDIAG file for the Internet Gatekeeper (IGK) product:
    Create the diagnostic information file (diag.tar.gz) in the product install directory by running the following command:
    - IGK (Japanese 4.x): # cd /home/virusgw; make diag
    - IGK (English 4.x or English/Japanese 5.x): # cd /opt/f-secure/fsigk; make diag
    Note: Any existing FSDIAG file will be overwritten.
    Attach this file to your support request.
    Note that you can also create the diagnostic file by using the Web UI.

    An .srt is simply a plain text file with sequence numbers, time markers, and captions. You can use any text editor to make one. Follow the pattern:
    1
    00:00:00,500 --> 00:00:04,500
    So it was with my formal education
    as well.
    2
    00:00:04,600 --> 00:00:08,250
    Each weekday, while my father worked
    on his Sunday sermon...
    3
    00:00:08,300 --> 00:00:10,000
    I attended the school
    of the Reverend Maclean.
    The first number (e.g., 00:00:00,500) in each pair indicates when the caption starts. The second number (e.g., 00:00:04,500) in each pair indicates when the caption stops.
    If you're going to be captioning many videos, consider an application that merges a text editor and video preview window. Jubler (http://www.jubler.org/) is one.

  • How to use the DLLs which created from c++ in Java?

    And How to use the DLLs which created from JNI in C++?

    Huh?
    Are you asking how to do JNI - you should read the tutorial.
    Are you asking how to load it - then use System.loadLibrary()
    Are you asking what to do with the output from javah - put it in a C file and write some code, compile it into a dll.

  • Sensible benchmarks for a desktop Linux system?

    By the end of the month, I'll have done a massive overhaul of my PC - going to brand spanking new just about everything. But it's not enough to just know that my new system will be faster. I want to know how much faster it is with quantifiable numbers and everything.
    So one of the big things I'll be looking at will be video games. Doing that is easy though - just use something like what review sites like hardocp do and count my framerates.
    But on the other side, I want to see how my linux performance changes. I know I can measure my FLOPS, Bogomips, and other numbers, but those are kind of abstract. Doesn't show anything about the applications I use every day.
    So what can you guys think of that would be sensible to do for benchmarking a Linux system to get before-and-after comparisons?
    My thoughts:
    Page renderings in Firefox. Make some kind of convulted, ugly mess of a page to render then see how long it takes.
    Code compilation - it's something I do from time to time, and easy enough to benchmark.
    Video encoding and decoding - Something I do every now and then using mplayer et al
    Audio encoding and decoding - I try to keep my music collection in ogg format
    Rendering - I'm starting to play with Blender, maybe make a horrifically complex scene (or better yet, download one) and time the render process?
    Database queries - This isn't something I do a lot on my system, but more and more applications are starting to use database backends (like amaroK although I don't use it) I think there are benchmark suites available for MySQL and Postgres
    My only other thought is that I should try to measure the increase in responsiveness I get from going from a single core to dual core system. Trying to measure that is kind of tough though. Maybe a scenario where I do something arbitrary in the background, then measure dropped frames in mplayer playing a video of some sort?

    meh. that benchmark sucked. Not much info given on testing environment, number of runs, etc.
    Some very odd marks in there as well...makes me wonder if he just ran the tests once and said "good enough".
    *shrug*

  • Restart services on linux system

    Hi guys
    i need to work in online mode using my local administrator tool of BIEE like Using the Administrator tool that is installed on the testing calculator under linux system.
    I have already created, under my local system windows, the dsn system for the BI server using the IP address of the testing calculator in wich is installed the oracle BI that i want to use; under linux system.
    After I try to open Online project using the DSN System previously created and all is ok! I'm able to see the samplesales default project.
    After i created, on my local administrator tool, an .rpd (also setting security--> user--> setting a password) project and after i put this under the OracleBI/server/repository directory of the testing calculator.
    Now i think that if i try to connect, using my local administrator tool, to administrator tool of the testing calculator i can see my .rpd but it not work. I'm not able to see this project.
    Maybe i need to restart services under the testing calculator(linux system)?
    If the answer is yes, how i can do this under linux system??
    I have the IP address, user and password to logon in this system but i don't know the name of the services that i have to stop and restart in linux system.
    The services that i have to stop and restart are:
    -BI server
    -Presentation server
    - java host
    -oc4j
    What are the name of these services  and under which directory are them, in a linux system?
    I attempt to make a workaround to reach my goal but don't work!
    I did the follow steps:
    1) MAde a backup copy of the samplesales.rpd that i already found, like a default, under OracleBI/server/repository directory of the testing calculator
    2) i opened the real (not a backup) samplesales.rpd on my local administrator tool, using online mode
    3)deleted all, physical - business and presentation layer
    4) save
    5) try to reconnect
    6) receive the errors "Repository star has not catalog" and another that i don't remember with code "37001"
    7) panic :-()
    8) replace the empty samplesales whit the backup copy in order to restore the initial situation
    9)try to reconnect on the adminiustration tool, using online mode
    10) receive the errors "Repository star has not catalog" and another that i don't remember with code "37001"
    11) panic and desperation :-()
    Furthermore,i could also access to web application, in the answer, to see the samplsales subject and try to do a report or some segmentation but now i cannot to logon on the web application because i receive the same error *"Repository star has not catalog" and another that i don't remember with code "37001"*
    What i can do to restore the initial situation in the testing environment?
    Thanks in advance
    Best reguards

    Hi,
    To start and stop all the services
    Oracle BI Server
    ./OracleBI/setup/run-sa.sh start
    ./OracleBI/setup/run-sa.sh stop
    Oracle BI Presentation Server and Javahost
    ./OracleBI/setup/run-saw.sh start
    ./OracleBI/setup/run-saw.sh stop
    OC4J
    ./OracleBI/oc4j_bi/bin/oc4j -start
    ./OracleBI/oc4j_bi/bin/oc4j –shutdown –port 23791 –password
    If you want to use the original files, first shut down all the services.
    Take the original webcat and the .rpd file on your test calaculator. Check you instanceconfig.xml and your nqsconfig.ini on the test calculator. They should both point to the samplesales.
    For more information check:
    NQSConfig.ini and instanceconfig.xml
    If you are sure everything is back to the original, start the services again en check the result.
    Good Luck,
    Daan Bakboord
    http://obiee.nl

  • How to run the oracle form in linux system

    Hello all,
    My config is :-
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    I can easily run my on Windows and Linux platform untill i am not use java bean in my form. After using the getMacaddress JAVA BEAN. I am not able to run my form on linux platform. If i remove the java bean from my form than form will run on linux.
    I am not familiar with linux so i am not able to trace the problem basicaly i don't  know which version of jre is used by linux system and i don't know how to find it.
    Please guide me.

    Now i install the jdk 1.6.0_20 and add into the jdeveloper 10.1.3.
    and i change my code for get mac id is -
    package demo;
    import java.net.InetAddress;
    import java.net.NetworkInterface;
    import java.net.SocketException;
    import java.net.UnknownHostException;
    public class App{
       public static void main(String[] args){
    InetAddress ip;
    try {
    ip = InetAddress.getLocalHost();
    System.out.println("Current IP address : " + ip.getHostAddress());
    NetworkInterface network = NetworkInterface.getByInetAddress(ip);
    byte[] mac = network.getHardwareAddress();
    System.out.print("Current MAC address : ");
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < mac.length; i++) {
    sb.append(String.format("%02X%s", mac[i], (i < mac.length - 1) ? "-" : ""));
    System.out.println(sb.toString());
    } catch (UnknownHostException e) {
    e.printStackTrace();
    } catch (SocketException e){
    e.printStackTrace();
    in form i create one jave bean area and add the implement class is
    demo.get_info.
    and on B1 (button) when-button-pressed
    :T1 :=GET_CUSTOM_PROPERTY('BEAN_MAC',1,'get_info');
    No error comes and no out put comes. So please guide me how to use the getHardwareAddress to get mac id.

  • Connection problem in Linux systems: redhat and suse

    I install Sun Java System Application Server Platform Edition 9.0 in RedHat and SuSE linux in my intranet with wondows XP.
    The servers run correctly in both RedHat and SuSE systems. That means in each system, I can use: http://localhost:8080 or their ip address to access the servers, for example, http://192.168.0.5:8080.
    However, in the windowsXP computers, I cannot access the servers running in both Linux systems by using their ip address (for example, http://192.168.0.5:8080). In addition, in RedHat, I cannot access the application server running in SuSE and vice versa.
    The network works correctly as I can use SSH to log in both RedHat and SuSE linux by using their ip address.
    And in both RedHat and SuSE, I can access the application server running in windows XP computer.
    I thought the problem came from the configuration of the linux. But I donot how to solve it.
    Could anyone give me some suggestions?
    Thanks a lot.
    Kevin

    iliasver wrote:
    Hello. I have huge problem with my blackberry z10 device. I bought my device six months ago from Greece which mostly I live there and they told me that this device is unlocked. I used my device with most of all three mobile networks in Greece and it works just perfect. Now that I am in Canada fro work and I must stay a lot, my device does not work on any mobile network of Canada. Specifically I'm at manitoba province and I have not find yet some a one to help me about my problems. Every mobile network I test does not work properly. From the most of them they tell me that my device does not use the frequency band that use north American, and some of them tells me that my device is not fully unlocked. Is that possible? My device have fully unlocked, medium unlocked and fully locked systems? Does anybody knows what to do to fix it? And how you figure this out that my device is locked or unlocked, cause every single video I saw it seems to me that my device is unlocked. Thanks and hope someone to give an answer to my problem.
    Can't be used, wrong frequency. Canada, North America and half of South America use GSM 850 / 1900 MHz.
    Rest of the world use GSM 900 / 1800 MHz.

  • How to use native dlls in jws

    hi,all
    I need to use native dll to read registry,I know nativelib label,but after I put the dlls to a jar,and use label <nativelib> to quote the jar,the system tell me error following:
    JNLPException[category: Security error : Exception: null : LaunchDesc: null ]
         at com.sun.javaws.LaunchDownload.checkJNLPSecurity(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    when I use jar href="..."to use this jar(This jar is packed dll files),the system tell me
    com.sun.deploy.net.FailedDownloadException: Unable to load resourcesFfile:/H:/test/dist/lib/ICE_JNIRegistry.jar
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    and
    java.util.zip.ZipException: ZIP file must have at least one entry
         at java.util.zip.ZipOutputStream.finish(Unknown Source)
         at java.util.zip.DeflaterOutputStream.close(Unknown Source)
         at java.util.zip.ZipOutputStream.close(Unknown Source)
         at com.sun.deploy.net.HttpDownloadHelper.download(Unknown Source)
         at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Unknown Source)
         at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    now I'm not sure how to zip the dlls so that it can be used in nativelib?and how to used the <nativelib> label? just add it in the jnlp file ok?
    Thanks.

    >
    Thanks,Andrew!>Your detailed and technically specific reply is all the thanks I need ( and probably more than I deserve ;).
    I am still mulling (thinking) over your reply, there is nothing that 'jumps out at me' as being wrong with the way it is done, it all is looking like it 'should' work. The only other thing I can think to check is "did JaNeLA report any problems with it?"
    Oh hang on, wait just a second..
    If this webstart app. uses a native lib, it must declare security 'all-permissions'. See below for a 'hand written' variation to your posted JNLP file. Please make sure you validate these edits, since I did not (and I'm a little drunk, at this moment!).
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <jnlp codebase="file:/H:/test/dist/" href="launch.jnlp" spec="1.0+">
        <information>
            <title>Basic Application Example</title>
            <vendor>Sun Microsystems Inc.</vendor>
            <homepage href="http://appframework.dev.java.net"/>
            <description>A simple java desktop application based on Swing Application Framework</description>
            <description kind="short">Basic Application Example</description>
        <offline-allowed/>
    </information>
    <security>
      <all-permissions />
    </security>
        <resources>
    <j2se version="1.5+"/>
    <jar eager="true" href="test.jar" main="true"/>
        <jar href="lib/appframework-1.0.3.jar"/>
    <jar href="lib/swing-worker-1.1.jar"/>
    <jar href="lib/registry.jar"/>
    <jar href="lib/swing-layout-1.0.3.jar"/>
    <nativelib href="lib/ICE_JNIRegistry.jar"/>
    </resources>
        <application-desc main-class="test.TestApp">
        </application-desc>
    </jnlp>Oh yeah, yeah. And if you could note for future posts..
    When posting code, code snippets, HTML/XML(/JNLP) or input/output, please use the code tags. To do that, select the code, then click the CODE button seen on the Plain Text tab of the message posting form. This helps to retain the indentation and formatting of the text, and also helps avoid characters in the code as being interpreted as formatting (by the 'forum software'). ..And it also makes it pretty - but perhaps I should not mention that (it seems so 'un-hacker').
    And BTW, what is that standalone=''no" attribute in the opening XML element? Are you +sure+ you validated this in JaNeLA?

Maybe you are looking for

  • How do I add a forum to me site using iweb 08?

    I have all the sources such as i web 08, mobile me account and my own domain name website all set up and running fine. I would like to add a forum where people can add comments and pictures. How can I do this?

  • Help needed with jar file

    hi, first of all sorry if my post is in wrong forum...but my application is done using swing so i am posting this here....and regarding my question... I have made an GUI using Java swings and my application is working fine. Now i want to make an exec

  • HT1338 Cleaning up my mac

    My macbook seems to be slow. Is there something i can do to clean it up so it will work better?

  • Can't "send as email"

    I'm trying to send a picture to [email protected], and when I try to send as email, it says it's not setup and it will only save it as a draft. I don't see how this is necessary because I used to send pictures as email with my older ghetto phones wit

  • My ipad wont sync on my computer. Why is this?

    i just bought an ipad 2. I have a few apps im trying to put on it that are on my computer. when i hook up the ipad to the computer through a usb cable nothing happens in itunes, it will not show up to let me sync