Automatically generated (Sound) classes

Hi all,
Quick summary:
I'm trying to compile a SWC file with a lot of assets in it in an as easy possible way. "Easy" for a not so technical end user, not perse the way to acchieve that goal. Goal is to streamline a process to generate SWC files with as little possible tech for the person doing it.
So, sort of like  manually doing:
* Import files into Flash
* For each library item select "Export for actionscript" and have Flash generate the basic class.
* Publish as SWC
but without the Flash IDE and the possibly labourous process.
Right now I'm trying to put an AIR project together that generates classes based on a file list. The classes can than be added to a Flash Builder library project to generate a SWC file from it (copy in finder, check classes in Project properties, done)
I can generate the classes for graphics like below. Such a class can then be instantiated from within the host application.
package
          import flash.display.Bitmap;
          import flash.display.MovieClip;
          public class __0038_asset extends MovieClip
                    [Embed(source="assets/__0038_asset.png")]
                        private static const gfx:Class;
                    public function __0038_asset()
                              super();
                              addChild( new gfx() as Bitmap );
Allthough this adds another level to the display list (which looks kinda sloppy to me), it works.
However, for this to work for sound files I need to create a class implementing all possible methods and properties of the soundclass and handle the events and such. There is no way to extend Sound and then do something like you would/can with graphics.
This is what I got:
package
          import flash.media.Sound;
          import flash.media.SoundLoaderContext;
          import flash.net.URLRequest;
          public class _000_cover_hotsp_authormp3 extends Sound
                    [Embed(source="assets/000_cover_hotsp_author.mp3")]
                    private var snd:Class;
                    public function _000_cover_hotsp_authormp3(stream:URLRequest=null, context:SoundLoaderContext=null)
                              super(stream, context);
                              var mySound:Sound = new snd() as Sound;
But that aint gonna work ofcourse.
Does anyone know if there is a way to get to the format the Flash IDE generates the classes with?
Thanks in advance.
Manno

Wel, here's the answer. Must have read it once since it is in the moock book, but stubled across it on the interwebs at: http://blog.nightspade.com/2010/02/01/embedding-asset-at-compile-time-in-pure-as3-project/
For images use:
        [Embed(source="assets/Frog&Stranger02_03-titelblad_height_1024px 2.jpg")]
          public class a_A2BA79B5_CE46_F942_1AB2_CC26D8F7FCC8 extends Bitmap
                    public function a_A2BA79B5_CE46_F942_1AB2_CC26D8F7FCC8()
                              super();
and for sounds:
          [Embed(source="assets/000_cover_hotsp_author.mp3")]
          public class _000_cover_hotsp_authormp3 extends Sound
                    public function _000_cover_hotsp_authormp3()
Now, lets review some code to see if I can apply this elsewhere too

Similar Messages

  • Adding methods to a automatic generated class

    Hello,
    I am currently working on an project where a part of the code is automatic generated from XML Schema, using Castor's SourceGenerator. The classes generated from these generic java-sourcecodes represents an hierachical tree structure (a composite pattern, with a composite as super class, and nodes and leafes as sub-classes), which I am using with JTree. My problem is that I cannot make Castor override the toString()-method, without changing some vital properties of my generated java-codes.
    One solution is to encapsulate the super-class and the two sub-classes in a identical class structure, mapping all the methods and adding a toString() method, but doing this by hand takes away the advantage of Castor. Somehow I think reflection could be a good solution, but I am not familiar with java-reflection and cannot say if it would solve my problem.

    It sounds like byte code manipulation (e.g., BCEL) may be what you need. Which is too bad because it's nontrivial.
    I don't think reflection would do what you want, but I'm not sure what you want.

  • Syntax error for automatic generated class for object MAS_AUTH_CUST

    Hi,
    I am configuring the mobile sales scenario. I encountered a weird problem. Basically the automatically generated class  ZDOECL_013_00H_MWSR can not be activated. If you activate it manually it will give you the below error. Looks like the entity structure is too big. So the generated code has a very big loop which causes the dump. I found the issue when try to run the function module CRM_AUTH_CUST_INSERTCDS as suggested in the configuration guide.
    I have tried to regenerate the object. But it still give me the same error.
    Internal error occured during runtime generation of Class ZDOECL_013_00H_MWSR (Dump ID: GEN_BRANCHOFFSET_LIMIT_REACHED)
    Message no. OO053
    Diagnosis
    An internal error occurred when the system tried to generate the runtime objects of the class. A dump has been created with the given dump ID. It can be analyzed using transaction ST22.
    Our Netweaver version as below. It should contain already the latest patch etc.
    SAP_ABA     711     0006     SAPKA71106
    SAP_BASIS     711     0006     SAPKB71106
    PI_BASIS     711     0006     SAPK-71106INPIBASIS
    ST-PI     2008_1_710     0004     SAPKITLRE4
    SAP_BW     711     0006     SAPKW71106
    CRMSPGWY     110     0004     SAPK-11004INCRMSPGWY
    CRM version.
    SAP_ABA     702     0006     SAPKA70206
    SAP_BASIS     702     0006     SAPKB70206
    PI_BASIS     702     0006     SAPK-70206INPIBASIS
    ST-PI     2008_1_700     0002     SAPKITLRD2
    SAP_BS_FND     702     0004     SAPK-70204INSAPBSFND
    SAP_BW     702     0006     SAPKW70206
    LCAPPS     2005_700     0009     SAPKIBHD09
    SAP_AP     700     0022     SAPKNA7022
    WEBCUIF     701     0003     SAPK-70103INWEBCUIF
    BBPCRM     701     0003     SAPKU70103
    WFMCORE     200     0016     SAPK-20016INWFMCORE
    VIRSANH     530_700     0011     SAPK-53311INVIRSANH
    Any advice is appreciated.
    Thanks
    Hansen Chen

    Hi,
    Gateway1.1 to SAP Netweaver mobile is not supported with EHP1 of SAP Netweaver Mobile 7.10.
    Please  check the release information note: 1539681
    So, i suggest you to install SAP Netweaver Mobile 7.10 with Gateway addon.
    Regards,
    Siva.

  • About playing dynamic generated sound using Sound class

    Dear sir:
    The live doc of Flex 4 says:
    In Flash Player 10 and later and AIR 1.5 and later, you can also use this    class to work with sound that is generated dynamically.    In this case, the Sound object uses the function you assign to a sampleData event handler to   poll for sound data. The sound is played as it is retrieved from a ByteArray object that   you populate with sound data.
    and i read one article(the following link)
    http://www.kaourantin.net/2008/05/adobe-is-making-some-noise-part-2.html
    it said: The Sound class only support 44100 sample rate,32 bit,2 channel sound data, is that true?
    Then if i get one ByteArray( 8000 sample rate,16bit,1 channel), how can i modify it to let the Sound class play it?
    thanks..

    Worked perfectly.  Thank you thank you!
    Jen

  • How to generate a class automatically in JDev

    Suppose from OS side, I create a new empty Java file in the src directory of a project in JDev. Then in JDev, I click on the "refresh"/reload button for that project. Now I see the new java file. Double click it to open it; it is blank. In this case, how can I generate a class using the file name as the class name, and a default constructor or even a main method etc.?
    Is there any convenient way of doing this, rather than going to the usual route, which is File menu, then new, java file, from that UI to give a class name, choose to include a main method etc..
    Thank you.

    Duncan Mills blogged about how to build your own templates http://blogs.oracle.com/groundside/entry/adventures_in_adf_logging_part1
    Not exactly your case, but you should get the idea.
    Timo

  • Automatic Generation of classes with required attribute names

    Hi ,
    I am new to XML technologies ...I am having a problem in deciding whether I
    should use JAXB or Castor for data binding.
    The problem is the attributes I am to use are named differently as that found in
    the DTD.I have creted my own classes using the required attribute names and the
    n mapped them using the Castor mapping with the attributes.
    I was wondering how should I achieve --"automatic generation of classes" with th
    e specified attribute names?
    I understand that JAXB can be used to automatically generate classes ,but this
    uses the same default names as that of the XML file ..is there a way of forcing
    JAXB to generate classes that use my name attributes rather than that of the XM
    L dtd
    If I use Castor ..is there a way to do the same.Generate Classes with the specif
    id attributes

    Hi ,
    I am new to XML technologies ...I am having a problem in deciding whether I
    should use JAXB or Castor for data binding.
    The problem is the attributes I am to use are named differently as that found in
    the DTD.I have creted my own classes using the required attribute names and the
    n mapped them using the Castor mapping with the attributes.
    I was wondering how should I achieve --"automatic generation of classes" with th
    e specified attribute names?
    I understand that JAXB can be used to automatically generate classes ,but this
    uses the same default names as that of the XML file ..is there a way of forcing
    JAXB to generate classes that use my name attributes rather than that of the XM
    L dtd
    If I use Castor ..is there a way to do the same.Generate Classes with the specif
    id attributes

  • Best Practice for WSDL Generate Proxy Class for Web Service with Two Versions

    Dear All
    Thank you in advance for you help.
    I would like to generate proxy classes for same function but with two versions.
    Old version web service (v23.2) is used for stable modules in a project which is not going to modify.
    However, enhancement is added in new version web service (v24) and is going to use in any future modules.
    For example,
    wsdl.exe -o="TestProxy.cs" -l:CS -n:Test -sharetypes https://community.workday.com/custom/developer/API/Notification/v23.2/Notification.wsdl https://community.workday.com/custom/developer/API/Notification/v24.0/Notification.wsdl
    It generates similar classes with an '1' added at the end of the class name.
    ublic partial class Event_TargetObjectType {
    private Event_TargetObjectIDType[] idField;
    public partial class Event_TargetObjectType1 {
    private Event_TargetObjectIDType1[] idField; ...}
    Since the function inside some class is the same, is it possible for WSDL.exe to generate proxy classes automatically that if the class is the same, then generate one class only (sameFunction())  but if it detects the class is different, then add '1'
    to the end of class name (differentFunction() and differentFunction1())
    i.e.
    public class sameFunction()
    public class differentFunction()
    private int a;}
    public class differentFunction1()
    { private int b;
    Best Regards
    mintssoul

    Hi  mintssoul,
      As per this case, I have shared corresponding details below :
    1.As far as I know, WCF doesn’t support method overloading directly
    2.Because WSDL doesn’t support method overloading (not OOPs).
    3.WCF generates WSDL which specifies the location of the service and the operation or methods the service exposes.
    4.WCF use Document/Literal WSDL Style : Microsoft proposed this standard where the soap body element will contain the web method name.
    5.By default all the WCF services conform to the document literal standard where the soap body should include the method name.
    6.but you can differ the method in the same manually by using Name attribute like below 
    For example:
        [OperationContract(Name="Integers")]
        int Display(int a,int b)
        [OperationContract(Name="Doubles")]
    double Display(double a,double b)
    7. Or I suggest you that can use svcutil to map multiple namespaces for generating wcf service proxies .
        for more information about this, refer here :
    http://stackoverflow.com/questions/1103686/use-svcutil-to-map-multiple-namespaces-for-generating-wcf-service-proxies

  • How to record generated sound to a file ?

    I have a program that can generate sound, I can hear the sound sequence from my headphone, now I'm trying to save the generated sound to an .au file, it should have a few seconds of sound, but instead I just heard a short beep, seems it didn't record the whole sequence, can someone tell me why ? Here are some code segments :
    static byte audioData[];
    class Command_Demo_Morse_Code implements Command
      JTextArea taText;
      //The following are audio format parameters. They may be modified by the signal generator at runtime. Values allowed by Java SDK 1.4.1 are shown in comments.
      float sampleRate=16000f;                       // Allowable 8000,11025,16000,22050,44100
      int sampleSizeInBits=16;                       // Allowable 8,16
      int channels=2;                                // Allowable 1,2
      boolean signed=true;                           // Allowable true,false
      boolean bigEndian=true;                        // Allowable true,false
      Command_Demo_Morse_Code(JTextArea taText) { this.taText=taText; }
      public void exec()
        try
          String Morse_Code,Word_Code_String="",Space="  ",Result_Morse_Code="",Output_English="",
          Input="01";
          Input=Input.toUpperCase();
          Word_Code_String+="\n     Input = "+Input+"\nMorse_Code = \n";
          Nm_Lib.audioData=new byte[16000*4*5];      // A buffer to hold two seconds monaural and one second stereo data at 16000 samp/sec for 16-bit samples [ 5 seconds ]
          for (int i=0;i<Input.length();i++)
            Morse_Code=Nm_Lib.Get_Morse_Code(Input.charAt(i)+"",true);
            Result_Morse_Code+=Morse_Code+Space;
            taText.append("\n  ["+Input.charAt(i)+"] = ["+Morse_Code.replace("\n"," ")+"]");
            // Make_Morse_Code_Sound(String A_Morse_Code,int Pitch,int Speed)      // Pitch : 1 - 10    Speed : 1 - 10
            Nm_Lib.Make_Morse_Code_Sound(Morse_Code.replace("\n"," "),5,5,Nm_Lib.audioData);
          Result_Morse_Code=Result_Morse_Code.replace("\n"+Space,"/").replace("null","\n").replace("�",".");
          Word_Code_String+=Result_Morse_Code;
          taText.append(Word_Code_String+"\n\n");
          Output_English=Nm_Lib.Get_English_From_Morse_Code(Result_Morse_Code);
          Nm_Lib.Out("English = "+Output_English);
          taText.append("English = "+Output_English);
          // Get the required audio format
          AudioFormat audioFormat=new AudioFormat(sampleRate,sampleSizeInBits,channels,signed,bigEndian);
          // Get an audio input stream from the ByteArrayInputStream
          AudioInputStream audioInputStream=new AudioInputStream(new ByteArrayInputStream(Nm_Lib.audioData),audioFormat,Nm_Lib.audioData.length/audioFormat.getFrameSize());
          //Write the data to an output file with the name provided by the text field in the South of the GUI.
          AudioSystem.write(audioInputStream,AudioFileFormat.Type.AU,new File(Nm_Lib.Dir_Data+"Morse_Code_Sound.au"));     // ??? Save to sound file not working ?
        catch (Exception e) { e.printStackTrace(); }
    //====================================================================================================================
      public static void Make_Sound(int Hz,int Milli_Seconds,byte[] synDataBuffer) throws LineUnavailableException
        ByteBuffer byteBuffer=null;
        ShortBuffer shortBuffer=null;
        if (synDataBuffer!=null)
          byteBuffer=ByteBuffer.wrap(synDataBuffer);           // Prepare the ByteBuffer and the shortBuffer for use
          shortBuffer=byteBuffer.asShortBuffer();
    //      int byteLength=synDataBuffer.length;     
        float Sample_Rate=8000f;
        byte[] buf = new byte[1];
        AudioFormat af = new AudioFormat(Sample_Rate,8,1,true,false);
        SourceDataLine sdl = AudioSystem.getSourceDataLine(af);
        sdl.open(af);
        sdl.start();
        for (int i=0;i<Milli_Seconds*8;i++)
          double angle=i/(Sample_Rate/Hz)*2.0*Math.PI;
          buf[0]=(byte)(Math.sin(angle)*110.0);
          sdl.write(buf,0,1);
          if (synDataBuffer!=null) shortBuffer.put((short)(200*buf[0]));
    //      Out(i+"  shortBuffer = "+shortBuffer.toString());
        sdl.drain();
        sdl.stop();
        sdl.close();   
      public static void Make_Morse_Code_Sound(String A_Morse_Code,int Pitch,int Speed,byte[] synDataBuffer)     // Pitch : 1 - 10    Speed : 1 - 10
        Out("A_Morse_Code = "+A_Morse_Code);                                                                     // [R] = [�-� ]
        if (Speed<0) Speed=0;
        else if (Speed>10) Speed=10;
        int One_Unit_Time=100-9*Speed;
        try
          for (int i=0;i<A_Morse_Code.length();i++)
            switch (A_Morse_Code.charAt(i))
              case '�' : Make_Sound(300+60*Pitch,One_Unit_Time,synDataBuffer);break;                             // 1. short mark, dot or 'dit' (�) � one unit long           // '�'  !=  '.'
              case '-' : Make_Sound(300+60*Pitch,3*One_Unit_Time,synDataBuffer);break;                           // 2. longer mark, dash or 'dah' (�) � three units long
              case ' ' : Thread.sleep(7*One_Unit_Time);break;                                                    // 5. medium gap (between words) � seven units long
              case '?' : Make_Sound(100+60*Pitch,5*One_Unit_Time,synDataBuffer);break;
              default  : Make_Sound(100+60*Pitch,5*One_Unit_Time,synDataBuffer);break;
            Thread.sleep(One_Unit_Time);                                                                         // 3. intra-character gap (between the dots and dashes within a character) � one unit long
          Thread.sleep(3*One_Unit_Time);                                                                         // 4. short gap (between letters) � three units long
        catch (Exception e) { }
      }

    how to read from a file ? Probably the easiest way is to see the API documentation for java.io.BufferedReader
    how to delete an item from a file Not knowing what kind of "item" it is I'd suggest building a BufferedReader that reads your input file. Walk through it one line at a time using the readLine method and if the item is not there then write it to a new file. When you get to the item you want to delete just don't write it out.
    Further information on how to use file streams can be found here: http://java.sun.com/docs/books/tutorial/essential/io/filestreams.html

  • Why does Flash generate invalid class names for library items?

    I imported a bunch of bitmaps (PNGs).  The library symbol names all included the full file name and its extension.  When I check "export for actionscript" it generates a class name based on the symbol name, and it includes the ".png", even though that's invalid in a class name.
    When I select multiple bitmaps and choose properties and export for actionscript, it has a note saying that classnames will be automatically generated for all items, but it does the same thing... including the ".png" in all the class names.  Is this a problem?  Wouldn't it save time if Flash would automatically strip the file extension from the instance name of bitmap library symbols when generating class names?

    Thank you Nipun.  That is exactly the behavior I would expect, and I can confirm that in the trial of Flash CC it generates valid class names by removing the file extension.  For example, a file named "3ball.test.png" will receive an auto-generated class name of "_3ball_test", so it really does ensure the class name is valid (meeting AS3 class name syntax)
    kglad, what I'm saying is that an image file name like "ball.png" is not a valid "class name", because it contains a period, which is reserved as a package delimiter.  I know the runtime can handle it as a valid "fully-qualified class name", but it's misleading because it's actually creating a class named "png" in package "ball", BUT it's understood that the auto-generated name is not supposed to be specifying any package, hence the misleading specification.  The class would have to be instantiated like this: "import ball.png; var bd:BitmapData = new png();" or "import ball.*; var bd:BitmapData = new png();"  You would also then have to import every single class individually and always use their fully qualified names, because you'd technically have a bunch of classes all named "png" inside a hundred different packages.  It's just not acceptable.
    The other problem that occurred in CS6 is if you loaded a bunch of files whose names started with numbers, then when you select them all, choose properties, and use the batch properties window to export them for actionscript, I noticed that such images would be auto-assigned generic names like "Class4" as it would realize the default auto-generated class name would be invalid.  This problem has been fixed beautifully in Flash CC.
    Nipun, it would actually be very helpful to have a little more control over the class naming conventions.  For example, if I wanted all my BitmapData classes to exist in an "images" folder or package, it would be helpful if in the batch properties window I could specify a package name for all the auto-generated class names.  When importing hundreds of images, it's very tedius to have to edit them individually and I don't always have time to write a JSFL script.  There's room in that window to add a text field for a package name.  Thanks!

  • Generate sound(voice) from a String

    Hello everybody.
    I would like to generate sound from a String at Symbian devices automaticaly. I wil receive the value of this String remotely and then it will be generated to a sound.
    The String will not be very long (3 to 4 words).
    For example,
    String test="Hello everybody";Is it possible via J2ME API?
    Or do I need any external library?
    Regards,
    kalgik

    You can't easily do it... you can using reflection:
    MyStaticClass.class.getField().getXXX("MyVariable") //depending on what type the field is...But this seems like it may be a flawed design. Maybe you should try making a static HashMap in the class, use a Static init block and static get/set methods:
    public class StaticClass
        static Map properties;
        static
            properties = new HashMap();
            properties.put("MyVariable", "Some Value");
            properties.put("OtherVariable", new Integer(3));
        public static Object get(String property)
            return properties.get(property);
        public static void set(String property, Object value)
            //Maybe some code checking to make sure object is right type
            //or don't use a set method at all to make the properties immutable
            properties.put(property, value);
    }

  • How to Automatically generate .XSL file of XML file ???

    Hello Everyone,
    I have UI which provide the facility to create own format by using drag and drop utility. I have also xml file which contains the data. Now task is how to automatically generate the .xsl file of the dynamically designed format for the data stored in xml form.
    If you have any idea about the solution of the above problem.
    I will thankful for any help regarding this…
    Thanks
    B. Kumar

    XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents. .xsl is the extension of the XSL file.Thank you, I am aware of all that.
    When we design any format by using drag & drop utility, System has to generate the .xsl file (extensible stylesheet for the xml document).Why? To accomplish what?
    And then .xsl file is used to display the data which is stored in xml document on the webpage with designed format.So you need to define the mapping between XML and HTML? and you're hoping to do that automatically?
    That's a job for a user interface designer. Not a tool.
    In brief we need to write a parson
    Parser
    which will take any designed format and generate the .xsl file for that design, to display the data which is stored in XML document.Doesn't make sense. It would make more sense if you started from a schema. Starting from an actual XML document, i.e. an instance of the schema, no, not even slightly.

  • How to set a field that automatically generates a unique 'code'/'ID'  for fillable PDF form?

    Hi,
    I'm trying to create a PDF fillable form with Acrobat X Pro.
    Can Acrobat allow a function, so that it can automatically generate a 'number'/'code' which I could use as an 'identifier'?
    eg.  A hidden field named:  'DOC ID' and provide 100001 when added to response file as it's submitted and '100002' to another file when it another is submitted/added onto the response file etc...
    I am aware that Response files, if submitted correctly, could automatically generate numbers like 001, 002 etc...
    But I'd like to see if I could create a field, that 'numbers' the document for me automatically and uniquely.
    Any help and/or suggestions would be appreciated.
    Winnie

    Hi,
    to do this you need kind of interactivity in your form.
    You can achieve this either by:
    1) using JavaScript onchange-events on forename and surname items, or
    2) use the AJAX Computations option of ApexLib, see: http://www.oracle-and-apex.com/ajax-computations-rich-client-feeling/
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com

  • How to assign profit center to automatically generated line items

    Hi, Experts,
                       My problem is that I want system automatically assign profit center to automatically generated line items.
                       Eg.
                             (Vat is @ 10%)
                                        Transaction                             Amount                            Profit Center                    
                              Purchase                   Dr                    Rs.1000/-                           XYZ
                              Vat                             Dr                    Rs.100/-
                              To Vendor                  Cr                                      Rs 1100/-
    Here I have to assign Profit Center in VAT G/L by double clicking on it, in reality, system should automatically assign profit center to VAT G/L same as to purchase, because this vat amount belongs to same purchase G/L.
    Kindly help me
    Thanks in advance

    Hi,
    1. In which SAP version you are working ? Are you using SAP 4.7 or ECC 6.0. ?
    2. If you are in ECC 6.0, have you activated New G/L ?
    3. Segment reporting is happening with Profit Center is one of the scenario ?
    Auto updation of Profit Center will depend upon these conditions. Accordingly one can provide you the solution.
    Regards,
    Shridhar

  • First Line item not picked up in Automatically generated PR from Sales Ordr

    Hi,
    I am  creating Third party PO, concevrted from Qutation-SalesOrder -automatic PR to PO.
    In the  Purchase Request which is automatically generated in background skips first line item of SO.
    How to avoid this? This is happening to all PRs in Production server.
    Please try to give solution,
    Thanks & Regards
    Ajay.

    Hi,
    Check the requirement type in sales order.
    If sales order sepecific PR creatation means, Material Strategy group shoud be 26 in MAR view 3 in Material master.
    check the Material master maintained in Plant..
    Check the delvering Plant mention in sales view in material master.
    Thanks,
    Kumar Arcot

  • Compilation Error for import classes not found in generated Proxy Class

    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

    Hi,
    I resolved the other errors by changing all references from com.bea.jcom.Variant
    etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
    package.
    Thank you all anyways,
    Regards,
    rahul
    "Rahul Srivastava" <[email protected]> wrote:
    >
    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling
    the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
    class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used
    by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found
    inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface
    with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch
    to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the
    COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

Maybe you are looking for

  • Moving Photos to a new folder in Lightroom 1.3.1 using Mac OS 10.5.1 Doesn't Work

    I use an iMac with OS 10.5.1 and Lightroom 1.3.1. First, I successfully imported the photos from my Epson P-2000 to a folder (Germany) which I created as part of the import into Lightroom (for File Handling in the Import dialog I used Copy Photos to

  • I have Windows 7 and I get this error itunes -45019

    Can anyone tell me how to fix this error?  I have unistall and reinstalled itunes 64 bit.  Itunes doesn't recognize my ipod touch either.

  • Can't open .cwk files in Office 2004 - Help

    Hi, imac intel 24. Running latest software. I have several .cwk files from back when. Now, I can't open them. I believe they are spreadsheets but Office 2004 won't open them. Any ideas? I always get an error saying I need a 3rd party app. Thanks in a

  • Why can't I see my camera on the desktop?

    In the past my cameras connected via USB would show up both in iPhoto and the desktop.  At some point this option seems to have been revoked and I can no longer view it as a drive on the destop if I want.  Is there any way to make my camera show up a

  • How to view an image @ 100% ?

    When I do some editing in iPhoto, especially sharpening, I'd like to see it @100%. There is no indication at what % I'm viewing the image. Is there any way to know that ? When clicking "edit" on the bottom, at what size the image opens? Thanks!