Compiling interfaces

Hi,
I have an interface Compute.java
package compute;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Compute extends Remote {
Object executeTask(Task t) throws RemoteException;
Also there is one more interface in the same package "Task.java".
package compute;
import java.io.Serializable;
public interface Task extends Serializable {
Object execute();
Now these two files are placed in compute directory whose path is
C:\sharvan\src\compute
I tried compiling Compute.java interface using the follwing command
C:\Myjava\mine\sharvan\src> javac compute/Compute.java
But ended up getting the following error
compute/Compute.java:7: cannot resolve symbol
symbol : class Task
location : interface compute.Compute
Object executeTask(Task t) throws RemoteException;
I downloaded these interface files from RMI trail in the Java tutorial.
Any idea how to rectify this error.
Thanks,
sharvan

sharvan,
MAHIM_MISHRA's comments are incorrect. The order in which you compile the classes is irrelevant when using javac.
The problem is that your src directory is not on your compile-time classpath or sourcepath. The fact that Task.java is in the same directory as Compute.java is irrelevant if that directory cannot be found by searching the classpath.
For now, use the following command line to compile:
C:\Myjava\mine\sharvan\src> javac -classpath . compute/Compute.java
Then look up classpath and sourcepath in your Java books and online. Search these forums and you'll find plenty of old threads about it.

Similar Messages

  • IMAQdx External Compiler Interface

    Hello,
    I wish to use the IMAQdx and NI-Vision External Compiler Interfaces with Cygwin gcc/g++ compilers.
    I am already doing this sort of game without any problem with the NI-VISA and NI-DAQmx External Interfaces (g++ appears to be happy with the dll files in C:\WINDOWS\system32 for NI-VISA, NI-488.2 and NI-DAQmx).
    I have written a simple C test code that calls IMAQdx symbols.
    I compile it from Cygwin terminal with the command :
    gcc -I/cygdrive/c/PROGRA~1/NATION~1/Shared/EXTERN~1/C/include TestIMAQdx.c -L/cygdrive/c/WINDOWS/system32 -lniimaqdx -lnivision
    It apparently compiles and links fine, but I get unreliable behavior and segmentation faults.
    (But the camera is found and I get some informations from it, so the symbols are somehow found. But there seems to be some problems with memory alignments)
    If I compile the very same C test code with MSVC from the Microsoft Visual Studio command line:
    cl -IC:\PROGRA~1\NATION~1\Vision\Include -IC:\PROGRA~1\NATION~1\NI-IMA~1\include TestIMAQdx.c /link C:\PROGRA~1\NATION~1\Vision\Lib\MSVC\nivision.lib C:\PROGRA~1\NATION~1\NI-IMA~1\lib\msvc\niimaqdx.lib
    Then, everything works fine. So, I guess it is not a bug in my C source file, but rather some incompatibilities between the library and the compiler. But since it is a C interface (and not, eg. a C++ interface, with ABI problems), I see no reason why it shouldn't work.
    However, I cannot use MSVC for my application because I require linking with several Cygwin C++ libraries that are not compatible with MSVC (for ABI reasons). Since IMAQdx are C interfaces, it SHOULD work.
    So:
    Is there a compatible interface library available somewhere ? Could NI possibly provide a standard external interface ?
    What could I possibly do to have g++ link properly ?
    Why does it work like a charm with VISA and DAQmx, and not with IMAQdx and Vision ?
    Thank you for your help.
    Attachments:
    TestIMAQdx.c ‏4 KB

    Hi jsalort,
    I have reproduced this issue with the code you provided. Specifically, I noted that some of the calls were corrupting the stack. This appears to be due to a mismatched calling convention. Looking at NIIMAQdx.h, it appears that the calling convention (stdcall for most functions) is NOT declared when __GNUC__ is defined (presumably under the assumption that GCC platforms were non-Windows and did not deal with multiple calling conventions).
    I think you can work around this on your own by putting the following before including NIIMAQdx.h:
    #define _NI_FUNC_DEFINED
    #define NI_FUNC         __stdcall
    #define NI_FUNCC       __cdecl
    I have also filed this issue as CAR #410920 so that it can be addressed in the header file itself.
    Eric

  • JAXB Compiler Interface generation problem

    I have a schema where two different elements extend the same base type. The JAXB compiler throws the following error. How do I fix this?
    parsing a schema...
    An interface with the same name "generated.FooType" is generated from more than one schema component.
    line 10 of sample.xsd
    (Relevant to above error) another one is generated from this schema component.
    line 23 of sample.xsd
    Failed to parse a schema.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" >     <xsd:element name="Sample" type="Sample_Type"/>
         <xsd:complexType name="Sample_Type">
              <xsd:sequence>
                        <xsd:element     ref="Foo"/>
                        <xsd:element     ref="Bar"/>
              </xsd:sequence>
         </xsd:complexType>
         <xsd:element name="Foo">
              <xsd:complexType>
                   <xsd:complexContent>
                        <xsd:extension base="Foo_Type"/>
              </xsd:complexContent>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="Bar">
              <xsd:complexType>
                   <xsd:complexContent>
                        <xsd:extension base="Foo_Type"/>
                   </xsd:complexContent>
              </xsd:complexType>
         </xsd:element>
         <xsd:complexType name="Foo_Type">
                   <xsd:sequence>
                             <xsd:element ref="FooBar"/>
                        </xsd:sequence>
         </xsd:complexType>
         <xsd:element name="FooBar" type="FooBar_Type"/>
         <xsd:simpleType name="FooBar_Type">
              <xsd:restriction base="xsd:long"/>
         </xsd:simpleType>
    </xsd:schema>

    The problem is because of you have a complex type Foo_Type
    Solution:
    =============
    Replace all occurences of Foo_Type with something else say "Some_Type"
    It should work
    Explaination:
    =============
    Basically you were getting FooType generated from 2 cases. You have an element "Foo" inside which you have an anonymous complex type. So the java class for the anonymous complex type would be "FooType"
    Then you had a named complex type Foo_Type and the java class would be "FooType" again because "_" is removed when generating classes
    Hence the compiler reported the error
    For more explaination see Section 5.7.2 of the spec Also Table 3.2 of the spec
    Also you seem to be using xjc <schemafile>
    Hence the code by default gets generated in package "generated"
    Recommendation
    =============
    Use xjc -p com.something <schemafile>
    to get the package com.something

  • Error while compiling Interface-ODI

    Hello to all,
    When i run the interface of ODI, i got an error on session list. Below are the error:
    ODI-1217: Session INF_TEST (8001) fails with return code 928.
    ODI-1226: Step INF_TEST fails after 1 attempt(s).
    ODI-1240: Flow INF_TEST fails while performing a Integration operation. This flow loads target table TARGET_TEST.
    ODI-1228: Task INF_TEST (Integration) fails on the target ORACLE connection RAODI_DB.
    Caused By: java.sql.SQLSyntaxErrorException: ORA-00928: missing SELECT keyword
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1079)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3937)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1535)
         at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:619)
    Is anyone know how to solve this error??
    Thanks in advance
    Rubita

    Hello Guru Shankar,
    The code i found is:
    insert into     DEV_ODI_REPO.TARGET_TEST
    select
    FROM (     
    select      
    from     DEV_ODI_REPO.TEST TES
    where          (1=1)     
    ) ODI_GET_FROM
    I have created the model and also data store for target and source table, but i found no field name on the query?
    Thanks,
    Rubita.

  • Java Interface with Package

    Hai,
    I cannot run this package with interface.
    My interface is interTest.java Under
    C:\Test\src\com\jeya
    package com.jeya;
    public interface interTest {
    public void Myname(String n);
    My java program is classTest.java under
    C:\Test\src\com\jeya
    package com.jeya;
    public class classTest implements interTest
    public void Myname (String n) {
    System.out.println(n);
    public static void main(String args[])
    classTest st=new classTest();
    st.Myname("Jeyanthi");
    After compiling interface the Class file are stored in
    C:\Test\classes\com\jeya\interTest.class
    But If I run the classTest.java, It shows the error in "implements interTest" Cannot Resolve Symbol .
    So pls help to solve this problem

    Hi Jaya,
    After you have create the package,
    you should run the file from this path, like this,
    C:\Test\src>java com.jeya.classTest
    regards
    Dhinakaran

  • Compilation errors from decl-32.h

    Hello:
    I have the following configuration.
    GPIB card: AT-GPIB PnP
    : Win 95
    : Borland C/C++ compiler
    Interfaced instrument: Oscilloscope, HP54501A.
    Using IBIC (interactive control), I am able to communicate with the device without porblems. I then tried to run the following program for getting the device ID.
    #include
    #include "decl-32.h"
    #include
    #include
    #include
    main()
    int scope_id;
    scope_id= ibfind("HPSCOPE");
    printf("The address of hp oscilloscope is %d.\n",scope_id);
    I compile this program using the following command:
    bcc -w32 -j5 scope2.c Borlan~1.obj
    and I get the follwing error message:
    Borland C++ Versio
    n 3.00 Copyright (c) 1991 Borland International
    scope2.c:
    Error decl-32.h 248: ) expected
    Error decl-32.h 268: Declaration syntax error
    Error decl-32.h 269: Declaration syntax error
    Error decl-32.h 270: Declaration syntax error
    Error decl-32.h 309: Declaration syntax error
    Error decl-32.h 310: Declaration syntax error
    Error decl-32.h 310: Too many error or warning messages
    *** 7 errors in Compile ***
    I looked at line 248 of decl .h but could not understand why it is causing the error.
    I would very much appriciate any pointers on ths problem.
    Thanking you.
    Sinerely,
    Giridhar.

    It's seems for me that there is a problem with you decl-32.h header ! Maybe
    you have changed it ?
    I attached you my header file !
    I hope that help you !
    Gorgo
    "M. S. Giridhar" wrote in message
    news:[email protected]..
    > Hello:
    > I have the following configuration.
    >
    > GPIB card: AT-GPIB PnP
    > : Win 95
    > : Borland C/C++ compiler
    > Interfaced instrument: Oscilloscope, HP54501A.
    >
    > Using IBIC (interactive control), I am able to communicate with the
    > device without porblems. I then tried to run the following program
    > for getting the device ID.
    >
    >
    > #include
    > #include "decl-32.h"
    > #include
    > #include
    > #include
    >
    > main()
    > {
    > int scope_i
    d;
    >
    > scope_id= ibfind("HPSCOPE");
    > printf("The address of hp oscilloscope is %d.\n",scope_id);
    > }
    >
    > I compile this program using the following command:
    > bcc -w32 -j5 scope2.c Borlan~1.obj
    >
    > and I get the follwing error message:
    >
    > Borland C++ Version 3.00 Copyright (c) 1991 Borland International
    > scope2.c:
    > Error decl-32.h 248: ) expected
    > Error decl-32.h 268: Declaration syntax error
    > Error decl-32.h 269: Declaration syntax error
    > Error decl-32.h 270: Declaration syntax error
    > Error decl-32.h 309: Declaration syntax error
    > Error decl-32.h 310: Declaration syntax error
    > Error decl-32.h 310: Too many error or warning messages
    > *** 7 errors in Compile ***
    >
    > I looked at line 248 of decl .h but could not understand why it is
    > causing the error.
    >
    > I would very much appriciate any pointers on ths problem.
    >
    > Thanking you.
    >
    > Sinerely,
    >
    > Giridhar.
    [Attachment Decl-32.h, see below]
    Attachments:
    Decl-32.h ‏19 KB

  • Is it true that bundle by name can cause FPGA compiles to fail?

    Dear forum,
    I have attached a full log of my experience with this apparent bug, but I will summarize it here:
    I attempted to compile a labview robotics project for cRIO 9074. The code was all on the FPGA, and I'd tested it all before attempting to compile--much of it was skeleton code proving that the self test system would turn on blinky lights on the front panel. My first attempted compile received a strange failure message in stage 3 of labview's pre-xilinx compilation interface, and the message was strange mostly because it was so intensely vague. It read "An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information: Error 1000 occurred at an unidentified location. Possible reason(s): LabVIEW:  The VI is not in a state compatible with this operation."
    It being Tuesday the 6th of July 2010, I was unable to reach either the support staff who were on holiday or the web service, which was down for maintenance, so I began disabling pieces of my code using my debugging conditional disable statements. Eventually I found one skeletal code module, one to interface with analog flood sensors, which did not fail to compile. I compared this with another skeletal code module which did fail to compile, and after several tests noticed that adding a bundle by name from a strict type definition (but not an un-bundle by name or a standard anonymous bundle) would cause the vi to fail the compile. With several more tests I confirmed that while the vi would fail to compile with the bbn, with a standard bundle it would compile successfully all the way to the xilinx stage (by which point I didn't care, the bug was definitively pre-xilinx.) 
    So tonight I will be going into my code and doing a lot of replacing bundle by name blocks with anonymous bundles, but I am still haunted by the extreme vagueness of the error, and by the fact that bundle by name is usually a solid part of the FPGA development platform. It was clearly intended to work. Why didn't it?
    Gray Cortright Thomas
    Franklin W. Olin College of Engineering
    Engineering: Robotics
    Class of 2012
    Needham, MA
    Gray Cortright Thomas
    Franklin W. Olin College of Engineering
    Engineering: Robotics
    Class of 2012
    Needham, MA
    Attachments:
    gtlog2010-07-06-18-24-00.txt ‏7 KB

    So I did as Donovan suggested, and this worked for the code example which I posted. But when I started trying to put more of the bundle by names back in this solution stopped working. I then went on to solve a seemingly unrelated problem with the version that had compiled using only anonymous bundle: it had been unable to run some while loops that were in subvis. When I took the code from these subvis and put the loops on the back panel of the main vi, to my utter horror, they began to function again in the compile (running on the hardware). I was afraid that it was subvis themselves that were causing this failure to run, but was relieved when my next test proved this not to be the case: I took that loop on the front panel where it worked and used edit>create subvi to put it in a subvi. It still worked. Thus I was left to search out the difference between the subvi that successfully compiled, and the subvi which compiled but didn't run--and this was that the failed subvi was part of a library. I placed the new, working, subvi in the same library and the code once again displayed the same symptoms as when it had been tested the first time: the loop would not run even once and the flow of control would never finish with the loop--it just delayed forever. This might be a problem with the way I had used the libraries, but I think everything within them was public. My guess now it that the Libraries don't behave the same way they do on the FPGA as they do on the FPGA simulator, and this is why the vis seemed to work when I simulated them. So... I took all the vis, typedefs, and globals out of the libraries and into virtual folders of the same name and... Everything works! Even bundle by name!
    The implementation of project libraries in the FPGA compiler may be suboptimal in some respects, but I probed only as deep as necessary to run my code.
    And this code is in 7z format because my zip file did not meet the maximum file size requirements of the forum.
    It is also very possible that I misunderstood the functioning of the libraries, and the FPGA simulator was blowing sunshine up my nose when it showed them working properly in simulation. Either way, it is probably worth looking into. This weekend I might try to find the simplest project file that shows these symptoms just to prove I'm not crazy.
    Gray Cortright Thomas
    Franklin W. Olin College of Engineering
    Engineering: Robotics
    Class of 2012
    Needham, MA

  • How an array implements an interface?

    Section 5.5 of JLS (dealing with casting conversions) explains something like this:
    When an interface type S is cast to an array type T,
    "then T must implement S, or a compile-time error occurs. "
    I could not understand how an array can be made to implement an interface.
    I guessed it means that the component type of array implements the interface, and prepared the following test code. It doesn't compile.
    interface S{  }
    class C implements S{ }
    class Test {
    public static void main(String[] args) {
         C[] ac = new C[100];
         S s = new C();
         C[] ac1 = (C[])s; //doesn't compile
         System.out.println(ac1.length);
    Would someone open my eyes? Thank you

    dmbdmb Your correction compiled my code. But I was not looking for that, because the corrected code casts an array type to array type. Anyway, thanks.
    jverdYou are the man. Now I got it. Thank you.
    I think I will have to remember your simplified rule (Then S must be Serializable or Cloneable) rather than the JLS' rule. With your rule, I can write a test code like this, which compiles, and which shows that an interface type can be cast to array type.
    import java.awt.Point;
    import java.io.Serializable;
    class Test {
            public static void main(String[] args) {
               Point[] pa = new Point[100]; //any array of reference type
               Serializable s = new String("test");
               Point[] pa1 = (Point[])s; //compiles, though invalid at runtime
    }

  • @SuppressWarnings("deprecation") is not working as described in the Tutoria

    @SuppressWarnings("deprecation") is not suppressing warnings when I compile the below code on SDK 1.6.0. This code is copied straight from the Java Tutorial page at http://java.sun.com/docs/books/tutorial/java/javaOO/QandE/annotations-answers.html
    Any hints would be appreciated.
    Thank you,
    Andrew Bloss
    public class MyHouse implements House {
        @SuppressWarnings("deprecation")
        public void open() {}
        public void openFrontDoor() {}
        public void openBackDoor() {}
    }I get the message
    "MyHouse.java uses or overrides a deprecated API."
    I copied both the interface and the code from the tutorial page. The message does appear if I replace
    @SuppressWarnings("deprecation") with
    @Deprecated.
    The interfac is
    public interface House {
         * @deprecated use of open is discouraged, use
         * openFrontDoor or openBackDoor instead.
        @Deprecated
        public void open();
        public void openFrontDoor();
        public void openBackDoor();
    }

    You have, as far as I can tell, found a bug in Sun's compiler.
    Java language Specification 3rd edition, p#9.6.1.6, says:
    9.6.1.6 Deprecated
    A program element annotated @Deprecated is one that programmers are discouraged from using, typically because it is dangerous, or because a better alternative exists. A Java compiler must produce a warning when a deprecated type, method, field, or constructor is used (overridden, invoked, or referenced by name) unless:
    The use is within an entity that itself is is annotated with the annotation @Deprecated; or
    The declaration and use are both within the same outermost class; or
    The use site is within an entity that is annotated to suppress the warning with the annotation @SuppressWarnings("deprecation")
    Use of the annotation @Deprecated on a local variable declaration or on a parameter declaration has no effect.
    Using Java 6, I verified that the following code issues a warning when compiled:
    interface House {
         * @deprecated use of open is discouraged, use
         * openFrontDoor or openBackDoor instead.
        @Deprecated
        public void open();
        public void openFrontDoor();
        public void openBackDoor();
    class MyHouse implements House {
        @SuppressWarnings("deprecation")
        public void open() {}
        public void openFrontDoor() {}
        public void openBackDoor() {}
    }The compiler produced these results:
    Note: Xy.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.This bug (resolved in Mustang) may be involved.
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6394563

  • JDeveloper Build Error with JDK1.3beta

    Dear JDev Team,
    I have a project that uses SQLJ and has been compiling fine with both JDK1.2.2 and 1.3beta. This morning it stopped working. There have been no great code changes. Once it fails using 1.3beta it will also fail using 1.2.2.
    There error message in the window is as follows. Your help would be very much appreciated, as this project cannot be built.
    Many thanks,
    Richard
    JniPortal for D:\Program Files\JDeveloper 3.0\java1.2\jre\bin\ferrari\jvm.dll reported
    InnerClasses attribute
    java.lang.IncompatibleClassChangeError: InnerClasses attribute
    int sqlj.runtime.profile.util.CustomizerHarness.customizeProfile(sqlj.runtime.profile.util.ProfileIOContext)
    void oracle.jdeveloper.sqlj.TranslatorInternal.customizeProfiles(borland.compiler.interfaces.Log)
    void oracle.jdeveloper.sqlj.TranslatorSystemImpl.customizeProfiles(borland.jbuilder.jipcbmj.portal.ComLog)
    void oracle.jdeveloper.sqlj.TranslatorSystem_JavaDispatch.invoke(int, borland.javaport.JavaCallStack)

    Richard,
    SQLJ is not supported with JDK1.2 in JDev 3.0:
    (from the release notes)
    Using SQLJ under JDK 1.2
    The 8.1.5 SQLJ version distributed with this release of JDeveloper only supports JDK 1.1.X, it does not run under JDK 1.2. A future version of SQLJ will support JDK 1.2
    Having said that it looks like you have it working anyway :-)
    There have been no great code changes. Once >it fails using 1.3beta it will also fail >using 1.2.2.Try the following :
    -Locate the output directory from Project|Project Properties
    -Close JDeveloper
    -Go to the output directory and delete all the classes and profiles related to your SQLJ project
    -Restart JDev and recompile
    Hope this helps.
    Regards,
    Arun
    null

  • Error while translating SQLJ files containing SDO objects in JDeveloper

    I have a problem with the JDeveloper environment. When I try to
    make a sqlj file containing an oracle.sdoapi.geom.Geometry
    object I get the following error message:
    JniPortal for D:\Program Files\Oracle\JDeveloper 3.2.3\java1.2
    \jre\bin\OJVM\jvm.dll reported
    Geometry
    java.lang.ClassFormatError: Geometry
         void sqlj.framework.ide.Translator.translate(boolean)
         void sqlj.framework.ide.Translator.translate()
         boolean
    oracle.jdeveloper.sqlj.TranslatorInternal.translate
    (borland.compiler.interfaces.Storage[],
    borland.compiler.interfaces.Storage[], java.lang.String,
    borland.compiler.interfaces.Log, java.util.Properties)
         java.lang.String[]
    oracle.jdeveloper.sqlj.TranslatorSystemImpl.translate
    (java.lang.String[], java.lang.String[], java.lang.String,
    borland.jbuilder.jipcbmj.portal.ComLog, boolean)
         void
    oracle.jdeveloper.sqlj.TranslatorSystem_JavaDispatch.invoke(int,
    borland.javaport.JavaCallStack)
    and JDeveloper crashes.
    Has anyone experienced anything like that, or does anyone know
    how to resolve it?

    I have a problem with the JDeveloper environment. When I try to
    make a sqlj file containing an oracle.sdoapi.geom.Geometry
    object I get the following error message:
    JniPortal for D:\Program Files\Oracle\JDeveloper 3.2.3\java1.2
    \jre\bin\OJVM\jvm.dll reported
    Geometry
    java.lang.ClassFormatError: Geometry
         void sqlj.framework.ide.Translator.translate(boolean)
         void sqlj.framework.ide.Translator.translate()
         boolean
    oracle.jdeveloper.sqlj.TranslatorInternal.translate
    (borland.compiler.interfaces.Storage[],
    borland.compiler.interfaces.Storage[], java.lang.String,
    borland.compiler.interfaces.Log, java.util.Properties)
         java.lang.String[]
    oracle.jdeveloper.sqlj.TranslatorSystemImpl.translate
    (java.lang.String[], java.lang.String[], java.lang.String,
    borland.jbuilder.jipcbmj.portal.ComLog, boolean)
         void
    oracle.jdeveloper.sqlj.TranslatorSystem_JavaDispatch.invoke(int,
    borland.javaport.JavaCallStack)
    and JDeveloper crashes.
    Has anyone experienced anything like that, or does anyone know
    how to resolve it?

  • How to design a churn Data Mining application

    Dear All,
    I am a beginning software engineer. I am interested in designing a churn data mining applications for telecom companies.
    My questions are:
    1. Can I use the ODM sample codes to do this for creating the models,lifts, and scoring, etc?
    2. How do I attach Java Swing front-end applications to the data mining in the Oracle 9i database server ?
    3. Are the scoring posted in the sample codes accurate and useful in life deployment?
    4. On the data warehouse for the data mining, what are the special considerations for the warehouse vis-vis dimensions, fact tables, etc?
    Regards,
    Olatuja Abayomi

    Thanks :)
    However, what i mean is the implementation (java file).
    For example, the Java RMI tutorial at http://java.sun.com/docs/books/tutorial/rmi/overview.html defines two interfaces on server side.
    One interface is for the Remote Interface, which has to be on server side.
    Another is an interface with generic type, which is
    public interface Task<T> {
        T execute();
    } Then both copiled interfaces (two class files) are compressed into a jar file, and this jar file needs to be reachable by both client and server side of the code.
    So, client side needs the implementation of interface Task.
    Or after we defined the two interface (Remote interface and Task interface) on server side, we also implement the Task interface
    on server side, then compile the server side and compress compiled interfaces and implementation (three cless files) into a jar file, and pass this
    jar file to client, so server needs no implementation for the interface Task, since the implementation is defined and compressed in the jar file already.
    I hope i explained better this time, or i am just lost at this point.

  • Unbalanced quotes in -define -classpath

    I run the command "ant web-package" in my service folder and I got this error:
    [BUILD FAILED
    D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O'Reilly - Java In A Nutsh
    ell 5Th Edition\examples\chapter2\bookservice\build.xml:99: unbalanced quotes in
    -define -classpath D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O'Reil
    ly - Java In A Nutshell 5Th Edition\examples\chapter2\bookservice/output/interfa
    ce[/b]
    the whole output:
    D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O'Reilly - Java In A Nutsh
    ell 5Th Edition\examples\chapter2\bookservice>ant web-package
    Buildfile: build.xml
    sense:
    platform-check:
    check:
    jwsdp-tomcat-prepare:
    [echo] Target platform is JWSDP with Tomcat
    j2ee14-prepare:
    prepare:
    init:
    [mkdir] Created dir: D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O
    'Reilly - Java In A Nutshell 5Th Edition\examples\chapter2\bookservice\output\in
    terface
    [mkdir] Created dir: D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O
    'Reilly - Java In A Nutshell 5Th Edition\examples\chapter2\bookservice\output\se
    rver
    [mkdir] Created dir: D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O
    'Reilly - Java In A Nutshell 5Th Edition\examples\chapter2\bookservice\output\cl
    ient
    [mkdir] Created dir: D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O
    'Reilly - Java In A Nutshell 5Th Edition\examples\chapter2\bookservice\generated
    \client
    [mkdir] Created dir: D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O
    'Reilly - Java In A Nutshell 5Th Edition\examples\chapter2\bookservice\generated
    \server
    [mkdir] Created dir: D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O
    'Reilly - Java In A Nutshell 5Th Edition\examples\chapter2\bookservice\temp_depl
    oy
    compile-interface:
    [javac] Compiling 3 source files to D:\Documents and Settings\MichalD\Pulpit
    \JWSDP\J2ee - O'Reilly - Java In A Nutshell 5Th Edition\examples\chapter2\bookse
    rvice\output\interface
    compile-server:
    [javac] Compiling 2 source files to D:\Documents and Settings\MichalD\Pulpit
    \JWSDP\J2ee - O'Reilly - Java In A Nutshell 5Th Edition\examples\chapter2\bookse
    rvice\output\server
    [javac] Note: D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O'Reilly
    - Java In A Nutshell 5Th Edition\examples\chapter2\bookservice\server\ora\jwsnu
    t\chapter2\bookservice\BookServiceServantData.java uses unchecked or unsafe oper
    ations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [copy] Copying 1 file to D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2e
    e - O'Reilly - Java In A Nutshell 5Th Edition\examples\chapter2\bookservice\outp
    ut\server
    BUILD FAILED
    D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O'Reilly - Java In A Nutsh
    ell 5Th Edition\examples\chapter2\bookservice\build.xml:99: unbalanced quotes in
    -define -classpath D:\Documents and Settings\MichalD\Pulpit\JWSDP\J2ee - O'Reil
    ly - Java In A Nutshell 5Th Edition\examples\chapter2\bookservice/output/interfa
    ce
    Please HELP

    If you are completely desparate, try
    1) moving the libraries to a place where their path names are shorter. For example, c:\lib instead if c:\this\that\other\thing.
    2) defining a symbol like "X" that is assigned to the long pathname (assuming Windows allows this) so you get oathnames like $X\lib1.jar. The limit may be applied to symbols after expansion, so this may not work.
    3) Remove libraries you don't use.
    Good luck

  • Getting compilation error: java.util.Set is an interface. This interface is not supported.

    Hi Folks,
    Is there a limitation in BEA's web services implementation? I have a simple web
    service that returns an array of java objects. However I am calling another middle
    tier API that returns a Set. I convert this Set into array of object and return
    it via the web service.
    However the .jws file that implements the webservice does not compile. I get the
    following error message:
    java.util.Set is an interface. This interface is not supported.
    Is there a limitation on using Collections within the .jws file? If that is the
    case it is a severe limitation.
    Note my Web Service API returns an array of java objects with no collections in
    them.
    Sanjay

    Hello,
    Generic java collections can only be handled in a very generic, weakly
    typed manner.
    Take a look at the
    http://workshop.bea.com/xmlbeans/guide/conXMLBeansSupportBuiltInSchemaTypes.html
    and also
    http://workshop.bea.com/xmlbeans/guide/conJavaTypesGeneratedFromUserDerived.html
    You might also ask your question to the XMLBeans newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.xmlbeans
    Regards,
    Bruce
    Sanjay wrote:
    >
    Hi Folks,
    Is there a limitation in BEA's web services implementation? I have a simple web
    service that returns an array of java objects. However I am calling another middle
    tier API that returns a Set. I convert this Set into array of object and return
    it via the web service.
    However the .jws file that implements the webservice does not compile. I get the
    following error message:
    java.util.Set is an interface. This interface is not supported.
    Is there a limitation on using Collections within the .jws file? If that is the
    case it is a severe limitation.
    Note my Web Service API returns an array of java objects with no collections in
    them.
    Sanjay

  • [svn:fx-trunk] 10459: Change to ensure ScriptNodes are no longer part of the node tree after interface compilation stage in order to avoid the extra code that was necessary to avoid tripping over them during type checking , etc.

    Revision: 10459
    Author:   [email protected]
    Date:     2009-09-21 08:42:44 -0700 (Mon, 21 Sep 2009)
    Log Message:
    Change to ensure ScriptNodes are no longer part of the node tree after interface compilation stage in order to avoid the extra code that was necessary to avoid tripping over them during type checking, etc.
    Improving revision 10199 a bit, to allow for single line comments.
    QE notes: None
    Doc notes: None
    Bugs: SDK-22027
    Reviewer: Paul
    Tests run: Checking, Compiler cyclones
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22027
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/AbstractSyntaxTreeUtil.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

Maybe you are looking for

  • What happens at each step of an iPhone Backup and Sync?

    Can someone tell me exact what is happening at each step of an iPhone backup and sync? I see 5 to 7 steps. So what has happened after step 1, then after step 2, and so forth? I would appreciate if only those who knows exactly what happens will list i

  • Creating .RTF output files - PI7.0  Receiver file adapter

    Hi Experts, I am currently facing an issue with the Receiver File adapter where in the output files are required to be of the format of .RTF (Rich Text Format). The scenarios is an outbound proxy from SAP ABAP  - >  PI 7.0 ->  .RTF File All the data

  • JTabbedPane switching from within added component

    Hey guys, Anyone know how/if its possible to change between JTabbedPanes by using a button within a component added to one of the Panes? Class A has a JtabbedPane in it and Class B extends JPanel and is added to the TabbedPane as a Component Is there

  • InDesign and Quark documents

    Hi all Is it possible to index the content of InDesign and Quark Xpress Documents? I have tried to so but to success so far. Anybody know how or not possible at the moment? TIA.

  • Getting and error of Dynamic CRM Destination connection?

    Hi, I have used KingswaySoft Dynamic CRM Destination component to connect CRM 2013 in SSIS. bu getting below error when try to execute the package? [Dynamics CRM Destination [20]] Error: An error occurred with the following error message: "KingswaySo