Same code, different result (load the library...)

I have to use external library. So I programmed short code. But...
It's work in Illustrator CS3
var samplelib= 'C:/Program Files (x86)/Adobe/Adobe Bridge CS3/webaccesslib.dll';
mylib = new ExternalObject ("lib:" + samplelib);
alert(mylib.version) ;
It's NOT WORK in Illustrator CS5
var samplelib= 'C:/Program Files (x86)/Adobe/Adobe Bridge CS5/webaccesslib.dll';
mylib = new ExternalObject ("lib:" + samplelib);
alert(mylib.version) ;
Extend Script Toolkit talk to me : 'I/O error'(i uploded capture image below)
I don't know what I missed. Could you let me know what I wrong?
Thank you for reading.
p.s. I'm using windows7.

Hi kimDino8,
Can you check the file path again?
In my opinion the path should be (sorry, I can't check this here at home - perhaps this is the path for CS5.5):
var samplelib= 'C:/Program Files (x86)/Adobe/Adobe Bridge CS5.1/webaccesslib.dll';

Similar Messages

  • Same image, same code, different results!!

    Hi,
    I have this HUGE dilema, the following works with a gif or a jpg image but the problem occurs in png images (the format I have chosen to create my images in).
    Here is the source code for the applet:
    * bufferstr.java
    * Created on 23 October 2003, 14:03
    * @author  Ahmed
    package Destruction_BufferStrategy;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class appletExecutor extends JApplet {
        private Image offs;
        private Graphics2D g2;
        ImageLoader imageStore;
        Game game;
        public void init() {
            imageStore = new AppletImageLoader();
            imageStore.prepareImage("car2dirty1.PNG");
            imageStore.prepareImage("car2dirty2.PNG");
            imageStore.prepareImage("car2dirty3.PNG");
            imageStore.prepareImage("car2dirty4.PNG");
            imageStore.prepareImage("car2dirty5.PNG");
            game = new Game(imageStore, this.getSize().width, this.getSize().height);
            super.getContentPane().add(game);
            game.startThread();
            game.createStrategy();
            game.requestFocus();
    }and here is the code for the application:
    * appExecutor.java
    * Created on 25 October 2003, 01:08
    package Destruction_BufferStrategy;
    * @author  Ahmed
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class appExecutor extends JFrame {
        private Image offs;
        private Graphics2D g2;
        ImageLoader imageStore;
        Game game;
        public appExecutor() {
            super("Destruction Derby");
            setDefaultCloseOperation(super.EXIT_ON_CLOSE);
            setResizable(false);
            setBounds(0, 0, 600, 600);
            imageStore = new AppletImageLoader();
            imageStore.prepareImage("car2dirty1.PNG");
            imageStore.prepareImage("car2dirty2.PNG");
            imageStore.prepareImage("car2dirty3.PNG");
            imageStore.prepareImage("car2dirty4.PNG");
            imageStore.prepareImage("car2dirty5.PNG");
            game = new Game(imageStore, 600, 600);
            getContentPane().add(game);
            show();
            game.startThread();
            game.createStrategy();
        public static void main(String[] args) {
            new appExecutor();
    }if I use a jpg or a gif image, everything is as good as gold. However, when I use png images, this error occurs in the applet only:
    java.util.zip.ZipException: invalid stored block lengths
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
    at java.io.FilterInputStream.read(FilterInputStream.java:66)
    at com.sun.imageio.plugins.png.PNGImageReader.decodePass(PNGImageReader.java:1165)
    at com.sun.imageio.plugins.png.PNGImageReader.decodeImage(PNGImageReader.java:1276)
    at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1362)
    at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1530)
    at javax.imageio.ImageIO.read(ImageIO.java:1384)
    at javax.imageio.ImageIO.read(ImageIO.java:1348)
    at Destruction_BufferStrategy.AppletImageLoader.loadImage(AppletImageLoader.java:36)
    at Destruction_BufferStrategy.AppletImageLoader.prepareImage(AppletImageLoader.java:45)
    at Destruction_BufferStrategy.appletExecutor.init(appletExecutor.java:28)
    at sun.applet.AppletPanel.run(AppletPanel.java:347)
    at java.lang.Thread.run(Thread.java:536)
    Error Loading Image: car2dirty1.png
    the Error Loading Image: car2dirty1.png is from my Loading Images class which abuse so kindly showed me the light to.
    any help on this issue is of great appreciatence..
    P.S. the error occurs for every image, not just this one!!

    You don't actually show the method you are using to load your image, however from the error msg, I assume you are using ImageIO.read().
    What version of JRE are you using?
    The reason I ask, is because the error you are getting seems to be occuring at quite low-level; the only potencial cause I know of (outside an error of your creation) is the ImageIO loader in 1.4.0 is buggy/broken when dealing with small images.

  • Same code, different result

    I have been using Javascript to create popups in Creator using the onclick property of a button or hyperlink.
    Today any popups created fail with the message:
    HTTP Status 500 -
    type Exception report
    message description The server encountered an internal error () that prevented it from fulfilling this request.
    exception javax.servlet.ServletException: Cannot find FacesContext
    Strangely the popups created earlier still work OK.
    How can Creator cause code that works in older pages not work when cut and pasted into new pages?
    After all the Javascript is standard stuff widely used across the web.
    In the <head> tag I have
    <script Language="JavaScript1.2">
                    function popup(url, name, left, top, width, height)
                    settings=
                    "toolbar=no,location=no,directories=no,"+
                    "status=no,menubar=no,scrollbars=yes,"+
                    "left="+left+",top="+top+","+
                    "resizable=yes,width="+width+",height="+height;
                    MyNewWindow=window.open(url,name,settings);
                    MyNewWindow.focus();
                </script>          and in the link the code is
    <h:outputLink binding="#{yayw$yayw13Content.yw13hyperlink6}" id="yw13hyperlink6"
                    onclick="popup('AidPopup.jsp', 'WinKC6', 150, 250, 600, 200); return false;" styleClass="tabProps">
                    <h:outputText binding="#{yayw$yayw13Content.ywhyperlink6Text}" id="ywhyperlink6Text" styleClass="cmdLnk" value="#{c.w130}"/>
                </h:outputLink>where AidPopup.jsp is the jsp page tp pop up when called by the link.
    The calling page and the popup page are in the same folder.
    Thanks for any advice on this problem.
    John.

    It turns out the solution is that the full path to the popup file has to be given for the URL. So in the example above the code for the link should be
    <h:outputLink binding="#{exer$exer1Content.hyperlink1}" id="hyperlink1" onclick="popup('/attain/faces/exer/RefocusPop.jsp', 'WinRef', 150, 250, 600, 200); return false;">
       <h:outputText binding="#{exer$exer1Content.hyperlink1Text}" id="hyperlink1Text" value="#{es.ex1}"/>
    </h:outputLink>The project name is Attain and exer is a sub-directory containing the calling page and the RefocusPop.jsp.
    I'll leave it to someone at Sun to explain the mystery of why pages written up to a few days ago still work on the old code but new pages must use a full path for them to work.
    John.

  • Why do I get two different results from the same coefficients?

    I am getting two different results from the Polynomial Evaluation function.
    For the first one, I am getting the coefficients from a Polynomial Fit function.  I feed the coefficients from the Fit function into the Poly Eval function and get the correct result of 12.8582 when I evaluate 49940.
    For the second one, I create constant array of the SAME values that were returned from the Polynomial Fit function (i typed them in).  However, I am getting an incorrect result of -120.7913 when I feed the constant array into the Poly Eval function when I evauate 49940.
    How can this happen when I am using the same array values?
    Attached is an image of what I am explaining.
    Solved!
    Go to Solution.
    Attachments:
    polynomial_evaluation.jpg ‏213 KB

    Hi Altran,
    are you sure about using the "same" coefficients?
    Did you compare them? Did you (atleast) set the display properties to 17 significant digits?
    Please attach a VI instead of a picture...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Two very different results using the same settings (H.264 / Quicktime Pro)

    I’m a bit confused, I have used Quicktime Pro (v7.1) to encode DV into H.264 for iPod and this particular video is 18 minutes long and came out looking very good with the following settings;
    VIDEO: H.264 at 200kbps, Baseline Profile, 25fps, Auto Key Frames, 320x240 or 640x480, Multipass Best quality encoding.
    AUDIO: AAC Audio at 96kbps, 24kHz sampling freq, Stereo.
    However here is the twist…
    When I use the same exact settings to encode just the 30 second opener (from the 18 minute video) the encoded opener looks bad and blocky!
    Why? Same settings would make you assume that you should get a same or similar result, or am I wrong?
    The reason I have tried encoding this 30 second opener is that I am trying to work out which settings work best on the iPod (another issue) and I don’t want to spend hours test encoding the full 18 minute video, as you know H.264 is SLOW to encode!
    So can anyone help in regard to two very different results using the same settings?
    Regards,
    J
    PC   Windows XP  

    Alvin,
    Is it a commercially-released or home-burned CD?
    If it's commercially-released, try "encouraging" the recalcitrant computer by using the iTunes Advanced menu > Get CD Track Names command when it shows Audio CD.
    If it's home-burned, you will find that only the computer that actually burned the disc will know what's on it. The information won't be transferred to another computer.
    Let us know which, if either, of these situations applies to you.

  • Problem in loading the library through Servlet

    Hello,
    When i wrote an application which accesses my java component that has native methods and it loads the library that has the implementation of these methods, it works perfectly fine.
    But now when i am trying to access the same component through a servlet it is giving an error saying : "no library xyzDLL (xyzDLL.dll) in java.library.path" . When i have my component, servlet code and the DLL in the same directory.
    The code that is there in the component is :
    public class MyComponent {
         public native int create(double id, int a) ;
         static {
              System.out.println("loading the Library ...." ) ;
              System.loadLibrary("xyzDLL") ;
              System.out.println("Library Loaded successfully") ;
    And when i try to access the method in the servlet like :
    MyComponent com = new MyComponent() ;
    com.create(12.5,4) ;
    Can anyone please help me out how this can be solved. I feel like i have to keep the components and the DLL at a proper directory location. Can anybody help me out where should i keep these.
    I am using IBM Websphere Standard edition.
    Thanks in advance,
    patro

    Hi,
    The DLL needs to accessible in the environment of the server. I have not used websphere, but if there is a bat file that is used to start it, then put the directory where the DLL is in your PATH. Or change the system settings to have the directory in the PATH env variable. This will enable websphere to get at the DLL.
    hth
    rahul

  • DBD: Error while trying to load the transport provider for odbc. Failed to load the library. System error: The specified module could not be found.

    Hello Everyone,
    We are getting an error while trying to create an Universe via Microsoft -> MS Analysis Services 2014 -> OLEDB for OLAP Provider under Connection in UDT -"DBD: Error while trying to load the transport provider for odbc. Failed to load the library. System error: The specified module could not be found."  We have installed BI 4.1 SP05 in our system. As per earlier posts in scn in BO XI 3.x this issue used to be for improper installation of Integration KIT but in our scenarion Integration KIT is within the BO 4.1 package so no seperate installation is required. Moreover I have checked whether all the driver is present under file: "C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\drivers" and seems everything is fine. But still I am getting this error. One important point is we could use IDT because in IDT still we don't have option to connect with 'Microsoft Analysis Services - 2014 (XMLA)' as we are using Microsoft Analysis Services 2014 version.
    Kindly help if anyone has faced the same problem with SAP BO 4.1.
    Thanks and Best Regards,
    Ghosal

    Hello Everybody,
    The problem is solved now after installing "OLEDB drivers from SQL Server 2012 Feature Pack". We had OLEDB drivers that comes directly from SQL Server but that did not worked out in our case.
    Thanks for your support.
    Best Regards,
    Ghosal

  • Is there a way to use a namespace, such as "Library", and have a program with a different namespace include the Library namespace?

    For many years, I have maintained a library of often used functions for C++.  This has become more challenging with the required namespace for C#. 
    Is there a way to use a namespace, such as "Library", and have a program with a different namespace include the Library namespace?
    bhs67

    You could create a class X in a namspace Y in a C# class library project. You can then add a reference to this class library project/assembly from every application in which you intend to use the class X in namespace Y.
    You don't add references to namespace, you add references to assemblies in .NET. You can then use a class in namespace Y of any referenced assembly by adding a using directive at the top of the code file in which you reference the class:
    using Y;
    Please remember to close your threads by marking helpful posts as answer.

  • SQL Server 2012 Physical vs. Hyper-V Same Query Different Results

    I have a database that is on physical hardware (16 CPU's, 32GB Ram).
    I have a copy of the database that was attached to a virtual Hyper-V server (16 CPU's, 32GB Ram).
    Both Servers and SQL Servers are identical OS=2008R2 Standard, SQL Server 2012R2 Standard same patch level SP1 CU8.
    Same query run on both servers return same data set, but the time is much different 26 Sec on Physical, 5 minutes on virtual.
    Statistics are identical on both databases, query execution plane is identical on both queries.
    Indices are identical on both databases.
    When I use set statistics IO, I get different results between the two servers.
    One table in particular (366k rows) on physical shows logical reads of 15400, on Hyper-V reports logical reads of 418,000,000 that is four hundred eighteen million for the same table.
    When the query is run on the physical it uses no CPU, when run on the Hyper-V it takes 100% of all 16 processors.
    I have experimented with Maxdop and it does exactly what it should by limiting processors but it doesn't fix the issue.

    A massive difference in logical reads usually hints at differences in the query plan.
    When you compare query plans, it is essential that you look at actual query plans.
    Please note that if your server / Hyper-V supports parallelism (which is almost always nowadays), then you are likely to have two query plans: a parallel and a serial query plan. Of course the actual query plan will make clear which one is used in which
    case.
    To say this again, this is by far the most likely reason for your problem.
    There are other (unlikely) reasons that could be the case here:
    runaway parallel threads or other bugs in the optimizer or engine. Make sure you have installed the latest service pack
    Maybe the slow server (Hyper-V) has extreme fragmentation in the relevant tables
    As mentioned by Erland, you have much much more information about the query and query plan than we do. You already know whether or not parallelism is used, how many threads are being used in it, if you have no, one or several Loop Joins in the query (my
    bet is on at least one, possibly more), etc. etc.
    With the limited information you can share (or choose to share), involving PSS is probably your best course of action.
    Gert-Jan

  • Slow to load the library for streaming - any NAS option that can help?

    Hi
    I've been using PC and recently got a MacBook. I have a NAS (QNAP) with 250Gb of music (as my iTunes library) and only want to use streaming and not store the music on my AppleTV. The problem is that every time I start up AppleTV and my Mac it takes quite long time to load the library before I can start playing music. Is there any solution to this? Is it possible to have either LAN cable or USB cable directly between my NAS and Apple TV and access the server from my MacBook this way? I had the same problem previously when using PC with the NAS connected directly to the PC and then streaming to the AppleTV.
    I'm not sure whether this problem is caused by lack of memory/performance on the AppleTV when you have a large library or whether it is a problem with the wireless connectivity. Or if it is something that I haven't set up properly.
    Thanks in advance

    "Is it possible to have either LAN cable or USB cable directly between my NAS and Apple TV and access the server from my MacBook this way?'
    I have my files on a TC but did have them on an external drive connected usb to either a TC or Extreme. I used ethernet from either router to ATV for a much faster connection than N wireless. You'll still have to wait a little bit but its worth it.

  • HT4207 Archiving gmail e-mails on MacBook Pro vs iPhone: Same action, different results

    The core issue:
    The same action yields different results.
    The details:
    First, I'm on my laptop looking at an e-mail sent to my gmail account and want to archive it so I hit archive and it goes to the archive folder; Second, I'm on my iPhone looking at an e-mail sent to my gmail account and want to archive it so I hit archive and it goes to the "All Mail" folder in my gmail account. The second part doesn't make me happy because it doesn't make any sense. In other words the same action results in two different results.
    Ideal solution:
    Please tell me how to make the archive icon on my iPhone act like its righteous twin does on my MacBook Pro.
    Thanks!

    Same question, but the reverse. I want Apple Mail on Mountain Lion to work like iOS with regard to archiving Gmail messages.

  • Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly   Thanks anyway!

  • HT1349 iTunes will not start on my PC. I get a runtime error from the Visual C== runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    iTunes will not start on my PC. I get a runtime error from the Visual C++ runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    Click here and follow the instructions.
    (99035)

  • Is anyone having problems syncing iPhoto to iPad 2 after iOS 7.0.3 update? when I click on photos tab, I get a circular dashed loading icon that is perpetually there. It never loads the library

    When I click on photos tab, I get a circular dashed loading icon that is perpetually there. It never loads the library. i dont even see the iphoto content! thx for your help!

    I am certain too that it is possibly the 7.0.3 update. Have you tried restoring from backup? I am uncertain that might work but its worth a try.
    If that doesn't work I suggest that you give feedback to Apple directly. The more about this problem, the quicker it will get resolved.
    Here's the link: http://www.apple.com/feedback/ipodtouch.html
    Best,
    OrlaG

  • HT5664 Just bought a new IMAC. Cant get the iPhoto to open even after apparently loading the library upgraded. Ideas?

    Just bought a new IMAC. Cant get the iPhoto to open even after apparently loading the library upgraded. Ideas?

    Did you install and RUN the iPhoto Library Upgrader on your library?
    OT

Maybe you are looking for

  • Loading images in a signed jar

    Hi, I am trying to run an application using signed jars. One of the jars contains gif and jpeg files (icons). When I sign icons.jar and try to run the code (from the command line), I get the error listed below. Any help would be greayly appreciated.

  • RW2 files don't open in After CS5.5

    Hello, I am trying to import or open RW2 files sequences from a Panasonic GH3 camera in Adobe apps (After Effects & Photoshop) on a Mac Pro X.8.3. The Adobe apps do not recognize the RW2 file, they open in Aperçu (don't know the name of this app in E

  • Information needed: Disabling front-facing touch buttons for full Kiosk mode

    I am wanting to create a kiosk using the ideacentre A300 series. I can configure Windows 8 to function like a kiosk, but I can't get the physical buttons on the computer to either turn off, or to disable temporarily (I realize the buttons cannot be c

  • MasterMind Radio buttons

    I tried asking this in the other forum, but he suggested I take it here. So thus here I am.       I am trying to basically create a slightly more advanced version of the old travel game "Master Mind". The general concept of the game was person A) cre

  • Error message for uninstall

    so I accidentally said install on G: and it installed correctly on H: but now that I am trying to uninstall, or update I get an error message that it cannot find G\Bin itunes is on H I can see it I can open it I just cannot update or uninstall please