I can't compile the converter tutorial example in J2EE

Hi,
I was wondering if someone could help me out with this.
I followed the instructions from the tutorial, but still can't use ant to compile the convert.
The following is the error output.
Many thanks.
C:\temp\j2ee_examples\j2eetutorial\examples\src>ant converter
Searching for build.xml ...
Buildfile: C:\temp\j2ee_examples\j2eetutorial\examples\src\build.xml
init:
BUILD FAILED
C:\temp\j2ee_examples\j2eetutorial\examples\src\build.xml:18: Class org.apache.t
ools.ant.taskdefs.Property doesn't support the "environment" attribute
Total time: 0 seconds

When you compile through J2EE it should give no apache type errors. You must of included apache xml cocoon jar files in the CLASSPATH as well later put the j2ee.jar. However j2ee.jar has XML libraries, no need to include other thrid party xml libaries.
Other words its picking your thrid party xml jar files first and using that instead of your j2ee.jar xml libaries.
Cheers
Abraham Khalil

Similar Messages

  • Can't compile the medrec tutorial

    I can't build the medrec tutorial. Following the Tutorial 10: Exposing a Stateless
    Session EJB as a Web Service, I execute the command "ant prepare build.split.dir".
    But the medrecEar
    can't be compiled correctly.
    There are primarily two kinds of errors/warnings:
    1)some classes, such as AdminSession can't be resolved;
    2)EJB Local Reference doesn't have a JNDI name.
    Who could help me. Thank you.

    When you compile through J2EE it should give no apache type errors. You must of included apache xml cocoon jar files in the CLASSPATH as well later put the j2ee.jar. However j2ee.jar has XML libraries, no need to include other thrid party xml libaries.
    Other words its picking your thrid party xml jar files first and using that instead of your j2ee.jar xml libaries.
    Cheers
    Abraham Khalil

  • I can't get the "converter" to engage

    I can't get the "converter" to ingage. It continually asks me to BUY after I already did

    Boy did I make a huge mistake. Congrats, your runaround is way better than most!

  • I can't get the convert to word command to work?

    How do I get the Convert to Word function to work?  

    The pane next to the document has a space for the file name and  the target conversion (Microsoft Word) and a conversion button.  I press it and nothing happens, and no inquiry comes up asking for my Acrobat user name and password.  Just no action.  I I have Windows 7.
    In a message dated 08/18/14 12:14:13 Pacific Daylight Time, [email protected] writes:
    I can't get the convert to word command to work?
    created by MichaelKazlow in Creating, Editing & Exporting PDFs - View the full discussion
    What happens when you try? Error Messages? What version of Acrobat? What OS? Does the document have real text or is it a scan which is a picture of text?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6651867#6651867
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Creating, Editing & Exporting PDFs by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Where can I find The JavaEE tutorial in the downloaded Glassfish and EE SDK

    Where can I find The JavaEE tutorial in the downloaded Glassfish and EE SDK.The downloaded URL is (http://java.sun.com/javaee/downloads/index.jsp). I downloaded the whole pack.It includes the Java EE tutorial, But I can't find it to view offline
    Varuna

    The LOAD command instruction is 0xE8 and not 0xE0/0xE1.
    Lc is one byte, so how can you exceed FF?
    Optionally the LOAD response can include a receipt (delegated management). If your card mandates a response length of 1 byte (Le=01) it means that no receipt is expected --> receipt length 00. JCOPs LOAD command has Le=0x00 set by default --> response length undefined. This is in accordance with Java Card API, which follows the ISO 7816-4 APDU structure.
    Let's look at the help of the JCOP tools upload command:usage: upload [-p|--progress][-c|--components][-r|--random][-l|--package package-name][-s|--sd SD-AID][-m|--params parameters][-b|--block_length length][-a|--auto][-d|--load-debug] CAP-file
    -c|--components
                Load CAP-file component wise.
    -r|--random
                Load with random APDU length.
    -b|--block_length length
                Max. block (APDU) length sent to the card during package upload.
        length  Max. block (APDU) length.So you can set the block length --> Lc as you wish.
    Message was edited by:
    lexdabear

  • How can i compile the program?

    hi,everybody:
    I have a program which include the next statments:
    public void println(boolean flag)
    throws IOException
    Object obj = lock;
    obj;
    JVM INSTR monitorenter ;
    print(flag);
    newLine();
    obj;
    JVM INSTR monitorexit ;
    break MISSING_BLOCK_LABEL_26;
    Exception exception;
    exception;
    obj;
    JVM INSTR monitorexit ;
    throw exception;
    how can i compile the program?
    thanks

    Hi,
    I'm trying to figure out how to use this decompiler, I have downloaded it to windows 2000 platform and it unzips to 1 file with extension "1-bin" - OS doesn.'t know what to do with and neither do I ;) - I'm starting out on something here and this tool would be useful.
    Thanks for any install instructions you might have.
    mufc1999
    Hi,
    I've had a similiar problem with decompiling certain
    classes. Try the following decompiler,
    http://jrevpro.sourceforge.net, after using this one,
    the code decompiled fine, this tool is also a
    disassembler and quite a nifty one i might add. :)
    Hope this helps!
    Have Fun!

  • Who can tell me the mean of "tm" in J2EE(tm)???

    who can tell me the mean of "tm" in J2EE(tm)???

    Thank you very much!

  • Errors compiling the rmi-iiop example.

    Hello,
    I have WebLogic Server 5.1, jdk1.3, Inprise's Visibroker for Java 4.0
    and Visibroker for C++ 4.0 all on Windows NT.
    I am following the steps on the index.html page in the
    examples/rmi_iiop/hello directory in my weblogic directory. The errors
    occur at step 5 of the section "Build the client".
    The errors are output by the java compiler. They are:
    examples\rmi_iiop\hello\_HelloWorld_Stub.java:17:
    examples.rmi_iiop.hello._HelloWorld_Stub should be declared abstract; it
    does not define bind() in examples.rmiiiop.hello._HelloWorld_Stub
    public class HelloWorldStub extends javax.rmi.CORBA.Stub implements
    HelloWorld {
    ^
    examples\rmi_iiop\hello\HelloImpl.java:12:
    examples.rmi_iiop.hello.HelloImpl should be declared abstract; it does
    not define isa(java.lang.String) in examples.rmi_iiop.hello.HelloImpl
    public class HelloImpl implements HelloWorld {
    Are there issues with jdk1.3? Or have I misapplied some steps?
    Any help would be greatly appreciated.
    David Hallam
    [email protected]

    The problem you are having is that the compiler is picking up another copy of HelloWorld... see if you can run the compiler with verbose turned on and find where it is getting the interface from... or try using javap...So, here is the output when I compile in verbose mode:
    D:\weblogic>javac -verbose -d %WL_HOME%\myserver\corbaclient
    examples\rmi_iiop\h
    ello\*.java
    [parsing started examples\rmi_iiop\hello\_HelloWorldStub.java]
    [parsing completed 160ms]
    [parsing started examples\rmi_iiop\hello\HelloClient.java]
    [parsing completed 30ms]
    [parsing started examples\rmi_iiop\hello\HelloImpl.java]
    [parsing completed 0ms]
    [parsing started examples\rmi_iiop\hello\HelloWorld.java]
    [parsing completed 10ms]
    [parsing started examples\rmi_iiop\hello\HelloWorldHelper.java]
    [parsing completed 0ms]
    [parsing started examples\rmi_iiop\hello\HelloWorldHolder.java]
    [parsing completed 0ms]
    [parsing started examples\rmi_iiop\hello\HelloWorldOperations.java]
    [parsing completed 0ms]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/ObjectImpl.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Object.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Object.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/IDLEntity.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/Serializable.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/Delegate.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/String.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/ObjectInputStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/ObjectOutputStream.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NameComponent.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContextHelper.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContext.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/ORB.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/rmi/RemoteException.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Exception.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Any.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/TypeCode.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/InputStream.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/OutputStream.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/Streamable.class)]
    [checking examples.rmi_iiop.hello._HelloWorldStub]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/ApplicationException.cl
    ass)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Throwable.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/MARSHAL.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/SystemException.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/RuntimeException.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/RemarshalException.clas
    s)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/InputStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/IOException.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/OutputStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Error.class)]
    [wrote
    D:\weblogic\myserver\corbaclient\examples\rmi_iiop\hello\_HelloWorldStub.
    class]
    [checking examples.rmi_iiop.hello.HelloWorld]
    [wrote
    D:\weblogic\myserver\corbaclient\examples\rmi_iiop\hello\HelloWorld.class
    [checking examples.rmi_iiop.hello.HelloWorldOperations]
    [wrote
    D:\weblogic\myserver\corbaclient\examples\rmi_iiop\hello\HelloWorldOperat
    ions.class]
    [checking examples.rmi_iiop.hello.HelloClient]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/System.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/PrintStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/FilterOutputStream.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContextOperations.clas
    s)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/BAD_PARAM.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContextPackage/NotFoun
    d.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/UserException.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContextPackage/CannotP
    roceed.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContextPackage/Invalid
    Name.class)]
    [wrote
    D:\weblogic\myserver\corbaclient\examples\rmi_iiop\hello\HelloClient.clas
    s]
    [checking examples.rmi_iiop.hello.HelloImpl]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Policy.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/SetOverrideType.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/DomainManager.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Context.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/NVList.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/NamedValue.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/ExceptionList.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/ContextList.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Request.class)]
    examples\rmi_iiop\hello\HelloImpl.java:12:
    examples.rmi_iiop.hello.HelloImpl sho
    uld be declared abstract; it does not define isa(java.lang.String) in
    examples
    .rmi_iiop.hello.HelloImpl
    public class HelloImpl implements HelloWorld {
    ^
    [loading D:\jdk1.3\jre\lib\rt.jar(javax/naming/Context.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(javax/naming/InitialContext.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(javax/naming/Name.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Comparable.class)]
    [checking examples.rmi_iiop.hello.HelloWorldHelper]
    [checking examples.rmi_iiop.hello.HelloWorldHolder]
    [total 1301ms]
    1 error

  • Re: Errors compiling the rmi-iiop example.

    As I said, apparently, you are trying to compile the IDL client in java using the RMI client classes. THere are two problems with this:
    1-- you must compile the rmi class definitions into a directory that can be easily excluded from the class path at the time you compile the idl definitions.
    2-- the idl definitions and the resulting classes are useless wrt the rmi definitions and wls, so the resulting classes must be compiled into directories other than those used by wls and the rmi clients.
    Another way to look at this is as follows:
    To compile the rmi definitions, you do:
    set ORIGINALCLASSPATH=CLASSPATH
    set CLASSPATH=../fooclasses;$CLASSPATH
    javac -d ../fooclasses rmi/FooImpl.java
    Then,
    -- you compile the jrmp classes as:
    rmic -d ../jrmpclasses rmi.FooImpl
    -- you compile the weblogic classes as:
    java weblogic.rmic -d ../wlsclasses rmi.FooImpl
    that is, you are allowed to compile from the same implementation class so long as it is compliant
    -- you compile the rmi-iiop classes as:
    java weblogic.rmic -iiop -d ../rmiiiopclasses rmi.FooImpl
    that is, as with jrmp and wls, the rmi-iiop classes share the same base type definitions and implementation.
    However, the idl classes are another matter. To compile the idl classes, you must generate the idl, generate the java files and generate the idl class files into another, separate directory, one which does not include any of ../fooclasses, ../jrmpclasses, ../wlsclasses or ../rmiiiopclasses
    directories.
    That is,
    java weblogic.rmic -idlDirtecory ../idl ...
    set CLASSPATH=ORIGINALCLASSPATH
    set CLASSPATH=../idlclasses;CLASSPATH
    cd ../idl
    idl2java rmi/Foo.idl
    javac -d ../idl rmi/*.java
    Hope this helps...
    "Hallam, David [CAR:5e10:EXCH]" wrote:
    The problem you are having is that the compiler is picking up another copy of HelloWorld... see if you can run the compiler with verbose turned on and find where it is getting the interface from... or try using javap...So, here is the output when I compile in verbose mode:
    D:\weblogic>javac -verbose -d %WL_HOME%\myserver\corbaclient
    examples\rmi_iiop\h
    ello\*.java
    [parsing started examples\rmi_iiop\hello\_HelloWorldStub.java]
    [parsing completed 160ms]
    [parsing started examples\rmi_iiop\hello\HelloClient.java]
    [parsing completed 30ms]
    [parsing started examples\rmi_iiop\hello\HelloImpl.java]
    [parsing completed 0ms]
    [parsing started examples\rmi_iiop\hello\HelloWorld.java]
    [parsing completed 10ms]
    [parsing started examples\rmi_iiop\hello\HelloWorldHelper.java]
    [parsing completed 0ms]
    [parsing started examples\rmi_iiop\hello\HelloWorldHolder.java]
    [parsing completed 0ms]
    [parsing started examples\rmi_iiop\hello\HelloWorldOperations.java]
    [parsing completed 0ms]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/ObjectImpl.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Object.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Object.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/IDLEntity.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/Serializable.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/Delegate.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/String.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/ObjectInputStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/ObjectOutputStream.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NameComponent.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContextHelper.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContext.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/ORB.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/rmi/RemoteException.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Exception.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Any.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/TypeCode.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/InputStream.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/OutputStream.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/Streamable.class)]
    [checking examples.rmi_iiop.hello._HelloWorldStub]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/ApplicationException.cl
    ass)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Throwable.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/MARSHAL.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/SystemException.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/RuntimeException.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/RemarshalException.clas
    s)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/InputStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/IOException.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/OutputStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Error.class)]
    [wrote
    D:\weblogic\myserver\corbaclient\examples\rmi_iiop\hello\_HelloWorldStub.
    class]
    [checking examples.rmi_iiop.hello.HelloWorld]
    [wrote
    D:\weblogic\myserver\corbaclient\examples\rmi_iiop\hello\HelloWorld.class
    [checking examples.rmi_iiop.hello.HelloWorldOperations]
    [wrote
    D:\weblogic\myserver\corbaclient\examples\rmi_iiop\hello\HelloWorldOperat
    ions.class]
    [checking examples.rmi_iiop.hello.HelloClient]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/System.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/PrintStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/FilterOutputStream.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContextOperations.clas
    s)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/BAD_PARAM.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContextPackage/NotFoun
    d.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/UserException.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContextPackage/CannotP
    roceed.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContextPackage/Invalid
    Name.class)]
    [wrote
    D:\weblogic\myserver\corbaclient\examples\rmi_iiop\hello\HelloClient.clas
    s]
    [checking examples.rmi_iiop.hello.HelloImpl]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Policy.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/SetOverrideType.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/DomainManager.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Context.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/NVList.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/NamedValue.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/ExceptionList.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/ContextList.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Request.class)]
    examples\rmi_iiop\hello\HelloImpl.java:12:
    examples.rmi_iiop.hello.HelloImpl sho
    uld be declared abstract; it does not define isa(java.lang.String) in
    examples
    .rmi_iiop.hello.HelloImpl
    public class HelloImpl implements HelloWorld {
    ^
    [loading D:\jdk1.3\jre\lib\rt.jar(javax/naming/Context.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(javax/naming/InitialContext.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(javax/naming/Name.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Comparable.class)]
    [checking examples.rmi_iiop.hello.HelloWorldHelper]
    [checking examples.rmi_iiop.hello.HelloWorldHolder]
    [total 1301ms]
    1 error[att1.html]

    test
    "Hallam, David [CAR:5e10:EXCH]" wrote:
    Eduardo,
    These directions worked perfectly, thank-you. One point though, this is
    COMPLETELY different to the directions on the index.html page in the
    examples directory.
    Regards,
    David Hallam.
    Eduardo Ceballos wrote:
    As I said, apparently, you are trying to compile the IDL client in
    java using the RMI client classes. THere are two problems with this:
    1-- you must compile the rmi class definitions into a directory that
    can be easily excluded from the class path at the time you compile the
    idl definitions.
    2-- the idl definitions and the resulting classes are useless wrt the
    rmi definitions and wls, so the resulting classes must be compiled
    into directories other than those used by wls and the rmi clients.
    Another way to look at this is as follows:
    To compile the rmi definitions, you do:
    set ORIGINALCLASSPATH=CLASSPATH
    set CLASSPATH=../fooclasses;$CLASSPATH
    javac -d ../fooclasses rmi/FooImpl.java
    Then,
    -- you compile the jrmp classes as:
    rmic -d ../jrmpclasses rmi.FooImpl
    -- you compile the weblogic classes as:
    java weblogic.rmic -d ../wlsclasses rmi.FooImpl
    that is, you are allowed to compile from the same implementation class
    so long as it is compliant
    -- you compile the rmi-iiop classes as:
    java weblogic.rmic -iiop -d ../rmiiiopclasses rmi.FooImpl
    that is, as with jrmp and wls, the rmi-iiop classes share the same
    base type definitions and implementation.
    However, the idl classes are another matter. To compile the idl
    classes, you must generate the idl, generate the java files and
    generate the idl class files into another, separate directory, one
    which does not include any of ../fooclasses, ../jrmpclasses,
    ../wlsclasses or ../rmiiiopclasses directories.
    That is,
    java weblogic.rmic -idlDirtecory ../idl ...
    set CLASSPATH=ORIGINALCLASSPATH
    set CLASSPATH=../idlclasses;CLASSPATH
    cd ../idl
    idl2java rmi/Foo.idl
    javac -d ../idl rmi/*.java
    Hope this helps...
    "Hallam, David [CAR:5e10:EXCH]" wrote:
    The problem you are having is that the compiler is picking upanother copy of HelloWorld... see if you can run the compiler with
    verbose turned on and find where it is getting the interface from...
    or try using javap...
    So, here is the output when I compile in verbose mode:
    D:\weblogic>javac -verbose -d %WL_HOME%\myserver\corbaclient
    examples\rmi_iiop\h
    ello\*.java
    [parsing started examples\rmi_iiop\hello\_HelloWorldStub.java]
    [parsing completed 160ms]
    [parsing started examples\rmi_iiop\hello\HelloClient.java]
    [parsing completed 30ms]
    [parsing started examples\rmi_iiop\hello\HelloImpl.java]
    [parsing completed 0ms]
    [parsing started examples\rmi_iiop\hello\HelloWorld.java]
    [parsing completed 10ms]
    [parsing started examples\rmi_iiop\hello\HelloWorldHelper.java]
    [parsing completed 0ms]
    [parsing started examples\rmi_iiop\hello\HelloWorldHolder.java]
    [parsing completed 0ms]
    [parsing started examples\rmi_iiop\hello\HelloWorldOperations.java]
    [parsing completed 0ms]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/ObjectImpl.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Object.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Object.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/IDLEntity.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/Serializable.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/Delegate.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/String.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/ObjectInputStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/ObjectOutputStream.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NameComponent.class)]
    [loading
    D:\jdk1.
    \jre\lib\rt.jar(org/omg/CosNaming/NamingContextHelper.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CosNaming/NamingContext.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/ORB.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/rmi/RemoteException.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Exception.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Any.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/TypeCode.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/InputStream.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/OutputStream.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/portable/Streamable.class)]
    [checking examples.rmi_iiop.hello._HelloWorldStub]
    [loading
    D:\jdk1.
    \jre\lib\rt.jar(org/omg/CORBA/portable/ApplicationException.cl
    ass)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Throwable.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/MARSHAL.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/SystemException.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/RuntimeException.class)]
    [loading
    D:\jdk1.
    \jre\lib\rt.jar(org/omg/CORBA/portable/RemarshalException.clas
    s)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/InputStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/IOException.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/OutputStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Error.class)]
    [wrote
    D:\web
    ogic\myserver\corbaclient\examples\rmi_iiop\hello\_HelloWorldStub.
    class]
    [checking examples.rmi_iiop.hello.HelloWorld]
    [wrote
    D:\web
    ogic\myserver\corbaclient\examples\rmi_iiop\hello\HelloWorld.class
    [checking examples.rmi_iiop.hello.HelloWorldOperations]
    [wrote
    D:\web
    ogic\myserver\corbaclient\examples\rmi_iiop\hello\HelloWorldOperat
    ions.class]
    [checking examples.rmi_iiop.hello.HelloClient]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/System.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/PrintStream.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/io/FilterOutputStream.class)]
    [loading
    D:\jdk1.
    \jre\lib\rt.jar(org/omg/CosNaming/NamingContextOperations.clas
    s)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/BAD_PARAM.class)]
    [loading
    D:\jdk1.
    \jre\lib\rt.jar(org/omg/CosNaming/NamingContextPackage/NotFoun
    d.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/UserException.class)]
    [loading
    D:\jdk1.
    \jre\lib\rt.jar(org/omg/CosNaming/NamingContextPackage/CannotP
    roceed.class)]
    [loading
    D:\jdk1.
    \jre\lib\rt.jar(org/omg/CosNaming/NamingContextPackage/Invalid
    Name.class)]
    [wrote
    D:\web
    ogic\myserver\corbaclient\examples\rmi_iiop\hello\HelloClient.clas
    s]
    [checking examples.rmi_iiop.hello.HelloImpl]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Policy.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/SetOverrideType.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/DomainManager.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Context.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/NVList.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/NamedValue.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/ExceptionList.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/ContextList.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(org/omg/CORBA/Request.class)]
    examples\rmi_iiop\hello\HelloImpl.java:12:
    examples.rmi_iiop.hello.HelloImpl sho
    uld be declared abstract; it does not define isa(java.lang.String)
    in
    examples
    .rmi_iiop.hello.HelloImpl
    public class HelloImpl implements HelloWorld {
    ^
    [loading D:\jdk1.3\jre\lib\rt.jar(javax/naming/Context.class)]
    [loading
    D:\jdk1.3\jre\lib\rt.jar(javax/naming/InitialContext.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(javax/naming/Name.class)]
    [loading D:\jdk1.3\jre\lib\rt.jar(java/lang/Comparable.class)]
    [checking examples.rmi_iiop.hello.HelloWorldHelper]
    [checking examples.rmi_iiop.hello.HelloWorldHolder]
    [total 1301ms]
    1 error
    Developer Relations Engineer
    BEA Support

  • Compiling the basic invoke example

    Hello everybody!
    I need your help :p
    Sorry for my english, I'm french...
    I just want to call java method from a c++ program. I've read that JNI do that, so I tryed to compile the basic example "invoke" (http://java.sun.com/docs/books/jni/html/invoke.html#11202).
    I created my java class, and my .c program like indicate, and tryed to compile it.
    But there is always error :
    [quentin]96% gcc -o invoke -l/usr/lib/jvm/java-1.6.0-sun-1.6.0.u11/include/
    -L/usr/lib/jvm/java-1.6.0-sun-1.6.0.u11/jre/lib/i386/ invoke.c -ljvm
    invoke.c: In function ‘main’:
    invoke.c:43: attention : incompatible implicit declaration of built-in function ‘exit’
    /usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld: cannot find -l/usr/lib/jvm/java-1.6.0-sun-1.6.0.u11/include/
    collect2: ld a retourné 1 code d'état d'exécutionBut jni.h is located :
    [quentin]44% locate jni.h
    /usr/include/thunderbird/java/jni.h
    /usr/include/xulrunner-1.9.0.3/stable/jni.h
    /usr/include/xulrunner-1.9.0.3/unstable/jni.h
    /usr/lib/gcc/i586-suse-linux/4.3/include/jni.h
    /usr/lib/jvm/java-1.6.0-sun-1.6.0.u11/include/jni.hI have already try this :
    [quentin]94% gcc -c -l/usr/lib/jvm/java-1.6.0-sun-1.6.0.u11/include/
    -L/usr/lib/jvm/java-1.6.0-sun-1.6.0.u11/jre/lib/i386/ invoke.c -ljvmIt works but :
    [quentin]94% gcc -o invoke invoke.o
    invoke.o: In function `main':
    invoke.c:(.text+0x45): undefined reference to `JNI_CreateJavaVM'
    collect2: ld a retourné 1 code d'état d'exécutionor :
    [quentin]95% gcc -o -l/usr/lib/jvm/java-1.6.0-sun-1.6.0.u11/include/
    -L/usr/lib/jvm/java-1.6.0-sun-1.6.0.u11/jre/lib/i386/ invoke.o -ljvm
    /usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld:
    cannot open output file --library=/usr/lib/jvm/java-1.6.0-sun-1.6.0.u11/include/: No such file or directory
    collect2: ld a retourné 1 code d'état d'exécutionI don't know what I did wrong...
    Have you any idea ?
    Thank you.
    Yours.
    edit : of course I work with linux (SUZE)

    Yeah I think I'm okay with it.
    But I have still the same problem : all that I want is calling a java method with an int in parameter, and I can't.
    this method :
    public class Point
         public static int pointX(int x)
              System.out.println(x);
              return x;
    }I tryed this :
    #include <jni.h>
    #include <iostream>
    using namespace std;
    #define PATH_SEPARATOR ';'
    #define USER_CLASSPATH "../workspace/test/bin"
    main() {
         JNIEnv *env;
         JavaVM *jvm;
         jint res;
         jclass      cls,
              clss;
         jmethodID mid;
         jstring jstr;
         jintArray i;
         jclass stringClass;
         jobjectArray args;
         int zzz[5] = {1, 2, 3, 4, 5};
    #ifdef JNI_VERSION_1_2
         JavaVMInitArgs vm_args;
         JavaVMOption options[1];
         options[0].optionString =
             "-Djava.class.path=" USER_CLASSPATH;
         vm_args.version = 0x00010002;
         vm_args.options = options;
         vm_args.nOptions = 1;
         vm_args.ignoreUnrecognized = JNI_TRUE;
         /* Create the Java VM */
         res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
    #else
         JDK1_1InitArgs vm_args;
         char classpath[1024];
         vm_args.version = 0x00010001;
         JNI_GetDefaultJavaVMInitArgs(&vm_args);
         /* Append USER_CLASSPATH to the default system class path */
         sprintf(classpath, "%s%c%s",
                 vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
         vm_args.classpath = classpath;
         /* Create the Java VM */
         res = JNI_CreateJavaVM(&jvm, &env, &vm_args);
    #endif /* JNI_VERSION_1_2 */
         if (res < 0) {
             fprintf(stderr, "Can't create Java VM\n");
             return(1);
    clss = env->FindClass("Point");
         if (clss == NULL) {
             goto destroy;
         mid = env->GetStaticMethodID(clss, "pointX", "(I)I");
         if (mid == NULL) {
             goto destroy;
         stringClass = env->FindClass("java/lang/Integer");
         jstr = env->NewStringUTF("kjis 51");
         i = env->NewIntArray(5);
         env->SetIntArrayRegion(i, (jsize)0, (jsize)1, zzz);
         if (jstr == NULL) {
             goto destroy;
         args = (jobjectArray)env->NewObjectArray(1, stringClass, i);
         if (args == NULL) {
             goto destroy;
         env->CallStaticIntMethod(clss, mid, args);
    destroy:
         if (env->ExceptionOccurred()) {
             env->ExceptionDescribe();
         jvm->DestroyJavaVM();
    }"It works" but my java methode print 134547664 as results.
    Exactly the same result if I change the line
    args = (jobjectArray)env->NewObjectArray(1, stringClass, i);for
    args = (jobjectArray)env->NewObjectArray(1, stringClass, jstr);I know that is wrong, but I just want to give an int in parameter, and I don't know how to do...
    I hope this will be my last question for you...
    I'm really sorry.
    Edited by: eatman on Aug 6, 2009 3:43 PM

  • Can's compile the gdbm program ?(SOLVED)

    Here is an example comes from Beginning Linux Programming 3rd ,and I can't compile it on my machine. I don't know why?? And the gdbm package is always in the base. Please help me.
    try compile 1:
    $gcc dbm1.c -o gdbm1 -lgdbm
    错误信息:
    /tmp/cc2vMknU.o: In function `main':
    dbm1.c: (.text+0x2d): undefined reference to `dbm_open'
    dbm1.c: (.text+0x244): undefined reference to `dbm_store'
    dbm1.c: (.text+0x2ee): undefined reference to `dbm_fetch'
    dbm1.c: (.text+0x379): undefined reference to `dbm_close'
    collect2: ld returned 1 exit status
    try compile 2:
    $ gcc dbm1.c -o gdbm1 -lndbm -L/usr/lib
    错误信息:
    /usr/bin/ld: cannot find -lndbm
    collect2: ld returned 1 exit status
    #include <unistd.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <fcntl.h>
    #include <ndbm.h>
    #include <string.h>
    #define TEST_DB_FILE "/tmp/dbm1_test"
    #define ITEMS_USED 3
    /* A struct to use to test dbm */
    struct test_data {
    char misc_chars[15];
    int any_integer;
    char more_chars[21];
    int main() {
    struct test_data items_to_store[ITEMS_USED];
    struct test_data item_retrieved;
    char key_to_use[20];
    int i, result;
    datum key_datum;
    datum data_datum;
    DBM *dbm_ptr;
    dbm_ptr = dbm_open(TEST_DB_FILE, O_RDWR | O_CREAT, 0666);
    if (!dbm_ptr) {
    fprintf(stderr, "Failed to open database\n");
    exit(EXIT_FAILURE);
    /* put some data in the structures */
    memset(items_to_store, '\0', sizeof(items_to_store));
    strcpy(items_to_store[0].misc_chars, "First!");
    items_to_store[0].any_integer = 47;
    strcpy(items_to_store[0].more_chars, "foo");
    strcpy(items_to_store[1].misc_chars, "bar");
    items_to_store[1].any_integer = 13;
    strcpy(items_to_store[1].more_chars, "unlucky?");
    strcpy(items_to_store[2].misc_chars, "Third");
    items_to_store[2].any_integer = 3;
    strcpy(items_to_store[2].more_chars, "baz");
    for (i = 0; i < ITEMS_USED; i++) {
    /* build a key to use */
    sprintf(key_to_use, "%c%c%d",
    items_to_store[i].misc_chars[0],
    items_to_store[i].more_chars[0],
    items_to_store[i].any_integer);
    /* build the key datum strcture */
    key_datum.dptr = (void *)key_to_use;
    key_datum.dsize = strlen(key_to_use);
    data_datum.dptr = (void *)&items_to_store[i];
    data_datum.dsize = sizeof(struct test_data);
    result = dbm_store(dbm_ptr, key_datum, data_datum, DBM_REPLACE);
    if (result != 0) {
    fprintf(stderr, "dbm_store failed on key %s\n", key_to_use);
    exit(2);
    } /* for */
    /* now try and retrieve some data */
    sprintf(key_to_use, "bu%d", 13); /* this is the key for the second item */
    key_datum.dptr = key_to_use;
    key_datum.dsize = strlen(key_to_use);
    data_datum = dbm_fetch(dbm_ptr, key_datum);
    if (data_datum.dptr) {
    printf("Data retrieved\n");
    memcpy(&item_retrieved, data_datum.dptr, data_datum.dsize);
    printf("Retrieved item - %s %d %s\n",
    item_retrieved.misc_chars,
    item_retrieved.any_integer,
    item_retrieved.more_chars);
    else {
    printf("No data found for key %s\n", key_to_use);
    dbm_close(dbm_ptr);
    exit(EXIT_SUCCESS);
    Last edited by 009lin (2007-08-19 02:29:54)

    GDBM includes dbm and ndbm compatability.
    I found the solution from the man page, it said:
    If you wish to use the dbm or ndbm  compatibility  routines,  you  must
           link in the gdbm_compat library as well.  For example:
                gcc -o prog proc.c -lgdbm -lgdbm_compat
    Last edited by 009lin (2007-08-19 02:29:27)

  • Can't compile the HTML-Java Wizard generated file.

    I have created a java file using HTML-Java Wizard.
    when compiling the java file it gives an error
    method getDeclaredMethod(java.lang.String,null) not found in
    class in java.lang.class
    can anyone tell me how can I remove the error ?
    waiting for your early reply in this regard.
    Thanks
    null

    Thanks, My problem has been solved.Now it is working.
    Initially I was using wrong classes.zip file in myclasspath.The
    Correct one is in %JDEVELOPER_HOME%\java\lib. The size of that
    file is 9.48 MB.
    Regards
    -- Sujit
    JDeveloper Team (guest) wrote:
    : Sujit,
    : I assume that you have access to the OAS jars needed to compile
    : this file (refer to the "Building Java Applications for OAS"
    : guide in the helpsystem for details).
    : Also, try deleting the dependecy files in your
    : myclasses/your_package directory .
    : Regards,
    : Sujit Hazra (guest) wrote:
    : : Hi,
    : : The error is still there.
    : : I have tried as you suggested.That brought me the code of
    : : java.lang.Class and also found that method as you
    : mentioned.This
    : : means my libraries are properly installed.
    : : The following code is taken from the HTML-Java Wizard
    generated
    : : file:
    : : private HtmlPage makePage() {
    : : HtmlPage hp = new HtmlPage(new java.io.File(filepath +
    : : java.io.File.separator +
    filename));
    : : for(int i=0;i<WRB_tags.length;i++) {
    : : try {
    : : hp.setItemAt(WRB_tags[0], new SimpleItem(
    : : this.getClass().getDeclaredMethod(
    : : "get"+WRB_tags[i][2],null).invoke(this,null)));
    : : catch (java.lang.Exception ex) {
    : : hp.setItemAt(WRB_tags[i][0],
    : new(SimpleItem(WRB_tags[i][1]));
    : : return hp;
    : : I didn't change anything on that.What else should I do?
    : : waiting for your early reply in this regard.
    : : Thanks
    : : - Sujit
    : : JDeveloper Team (guest) wrote:
    : : : Sujit,
    : : : Test this:
    : : : Bring up JDeveloper
    : : : Press Ctrl / - Control key and the Slash key
    : : : Type in java.lang.Class
    : : : This brings up the code for java.lang.Class
    : : : If it does not, then somehow your libraries
    : : : are not properly installed for JDeveloper to find
    : : : (see IDEClassPath ).
    : : : Otherwise, there you should see many methods including:
    : : : public Method getDeclaredMethod(String p0, Class[] p1)
    : : : throws NoSuchMethodException, SecurityException {
    : : : // implementation not available
    : : : Also note: Your spelling for Class should be
    : : : java.lang.Class
    : : : - JDeveloper Team
    : : : You can browse the class
    : : : Sujit Hazra (guest) wrote:
    : : : : I have created a java file using HTML-Java Wizard.
    : : : : when compiling the java file it gives an error
    : : : : method getDeclaredMethod(java.lang.String,null) not found
    : in
    : : : : class in java.lang.class
    : : : : can anyone tell me how can I remove the error ?
    : : : : waiting for your early reply in this regard.
    : : : : Thanks
    null

  • Can't compile the Forms,please help me.

    when I compile the form in Linux, I got the following error:
    ======================================================
    error while loading shared libraries: libig.so.0: cannot open shared object file: No such file or directory
    ==========================
    and I can find this file under
    /ora11510/oracle/visora/8.0.6/lib/
    Can you help me to resolve it? Thanks.

    Hi...
    How are you compiling the form in linux? are you using frmcmp (or f90genm for Forms 9i) executable? If so, try using frmcmp.sh script (its also available in $ORACLE_HOME/bin).
    If it does not work either, try setting LD_LIBRARY_PATH to $ORACLE_HOME/lib:$ORACLE_HOME/lib32
    HTH.
    Regards,
    Arun

  • How can i open the "Convert to Indexed Color" dialog with custom presets?

    Hi,
    I need to automatically open the "Convert to Indexed Colors" dialog in Photoshop. Before and after that i have some scripts running so its not possible to open the dialog manually. Also i want to set some custom presets (like number of colors etc.).
    Found something similar to what i want for the Color Range selection (opens the dialog with the presets you put in):
    function colorrange(enabled, withDialog, fuzziness) {
        if (enabled != undefined && !enabled)
          return;
        var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
        var desc1 = new ActionDescriptor();
        desc1.putInteger(app.charIDToTypeID('Fzns'),fuzziness);
        var desc2 = new ActionDescriptor();
        desc2.putDouble(app.charIDToTypeID('Lmnc'), 31.22);
        desc2.putDouble(app.stringIDToTypeID("a"), 0.86);
        desc2.putDouble(app.stringIDToTypeID("b"), 0.31);
        desc1.putObject(app.charIDToTypeID('Mnm '), app.charIDToTypeID('LbCl'), desc2);
        var desc3 = new ActionDescriptor();
        desc3.putDouble(app.charIDToTypeID('Lmnc'), 95.34);
        desc3.putDouble(app.stringIDToTypeID("a"), 54.59);
        desc3.putDouble(app.stringIDToTypeID("b"), 49.85);
        desc1.putObject(app.charIDToTypeID('Mxm '), app.charIDToTypeID('LbCl'), desc3);
        desc1.putInteger(app.stringIDToTypeID("colorModel"), 0);
        var desc4 = new ActionDescriptor();
        var desc4 = executeAction(app.stringIDToTypeID('colorRange'), desc1, dialogMode);
    How can i achieve the same for the indexed color conversion dialog? Apart from doing a lot of guessing regarding the stringIDs.
    Is there some kind of "lookup table" for char and string IDs?
    Thank you guys in advance! This forum has been a great help many times.

    Ok never mind i got it, stupid me.
    Recorded it with Script Listener and changed the "DialogMode" parameter of the executeAction function from "DialogModes.No" to "DialogModes.All".
    var idCnvM = charIDToTypeID( "CnvM" );
                var desc249 = new ActionDescriptor();
                var idT = charIDToTypeID( "T  " );
                    var desc250 = new ActionDescriptor();
                    var idPlt = charIDToTypeID( "Plt " );
                    var idClrP = charIDToTypeID( "ClrP" );
                    var idSele = charIDToTypeID( "Sele" );
                    desc250.putEnumerated( idPlt, idClrP, idSele );
                    var idClrs = charIDToTypeID( "Clrs" );
                    desc250.putInteger( idClrs, 4 );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idNone = charIDToTypeID( "None" );
                    desc250.putEnumerated( idFrcC, idFrcC, idNone );
                    var idTrns = charIDToTypeID( "Trns" );
                    desc250.putBoolean( idTrns, false );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDfsn = charIDToTypeID( "Dfsn" );
                    desc250.putEnumerated( idDthr, idDthr, idDfsn );
                    var idDthA = charIDToTypeID( "DthA" );
                    desc250.putInteger( idDthA, 75 );
                var idIndC = charIDToTypeID( "IndC" );
                desc249.putObject( idT, idIndC, desc250 );
            executeAction( idCnvM, desc249, DialogModes.ALL ); //Change from NO to ALL

  • Without adminWebApp.zip,I can't practice the MedRec tutorial 19.

    Help me, experts.
    Thank you in advance.
    Answer me,quickly,ok?

    I can't reach the link you gave, which seems not
    to exist in the edocs website.
    By the way, could you please take a look at the
    the message 405. I can't finish that tutorial either,
    "Securing Enterprise JavaBean (EJB) Resources Using the Administration Console".
    Thanks a lot.
    "Jen Hocko" <[email protected]> wrote:
    >
    "Paul Green" <[email protected]> wrote:
    I can't find the "AdminWebApp Web Application" (adminWebApp.zip )
    on the dev2dev Web site. Is there any alternative way to do that
    or where can I find the file adminWebApp.zip ? Thank you.Hi Paul,
    I'm sorry you are having problems with tutorial 18. I have researched
    the issue
    with the missing adminWebApp.zip file with the dev2dev folks and my records.
    I
    have discovered that the latest version of tutorial 18 on edocs (http://edocs.bea.com/wls/docs81/medrec_tutorials/ejb_security.html)
    no longer makes use of that file. Perhaps your browser is caching an
    old version
    of this tutorial? Please let me know if a browser refresh does not solve
    the problem.
    Thanks,
    Jen
    Sr. Technical Writer
    BEA Systems, Inc.

Maybe you are looking for

  • Small Office Network Setup

    Hello everyone! Pretty soon I will be starting a graphic design, video, and music production company with my brother and friend. All 3 sections will be using apple macs. I was just wondering if any of you can offer suggestions as far as networking ha

  • Master-Detail-Form; Hide/Show columns in detail form depending on column

    Hi, i have a master detail form. In the detail form i have the columns: ID, MASTER_ID_FK, PC_SOURCE, A_C1, A_C2, A_C3, B_C1, B_C2, B_C3 The Column PC_SOURCE should be a LOV with values NULL A B So if i choose or enter a master record the detail form

  • IE returns "Cannot find server" page during Servlet processing

    I have 2 JSP applications, that require a certain amount of server processing before they complete. For small amounts of information, both of these applications work fine. However, with larger amounts of processing, IE seems to timeout or have a prob

  • Problem in standard in cluded RSSTATDA

    Hi gurus in my report CALL FUNCTION 'SAPWL_INST_LONG'        EXPORTING             inst_short                    = rsystem        IMPORTING             inst_long                     = long_instance           HOST_LONG                     =        EXC

  • Playbook hanging on "limited Warranty" Screen

    Hope somebody can help.... I have a BlackBerry playbook that is hanging at the limited warranty screen, no ability to access WIFI settings, no text on screen except the title - never got past the Blackberry ID screen, now cannot do anything on device