Cannot compile sample code

I am geeting the following results while compiling
the sample code for class generator. What am I doing wrong ?
I am using cygnus bash shell on NT 4.0 server.
--Navjeet
bash-2.02$ make demo
Compiling SampleMain.java
javac -classpath "e:\jdk1.1.7
\lib\classes.zip;M:\dev\NETDYN_PROJECTS;e:\NetDynam
ics\NetDynamics40
\Classes\nd_client_4x.jar;e:\NetDynamics\NetDynamics40\Projects
;.;e:\jsdk2.0
\lib\jsdk.jar;e:\weblogic\classes;e:\weblogic\lib\weblogicaux.jar
;e
:\java_dev\oraclexml\parser\lib\xmlparser.jar;../lib/classgen.jar
;." SampleMain.
java
SampleMain.java:33: Class XMLParser not found in type
declaration.
XMLParser parser = new XMLParser();
^
SampleMain.java:33: Class XMLParser not found in type
declaration.
XMLParser parser = new XMLParser();
^
2 errors
null

Navjeet (guest) wrote:
: I am geeting the following results while compiling
: the sample code for class generator. What am I doing wrong ?
: I am using cygnus bash shell on NT 4.0 server.
: --Navjeet
: bash-2.02$ make demo
: Compiling SampleMain.java
: javac -classpath "e:\jdk1.1.7
: \lib\classes.zip;M:\dev\NETDYN_PROJECTS;e:\NetDynam
: ics\NetDynamics40
: \Classes\nd_client_4x.jar;e:\NetDynamics\NetDynamics40\Projects
: ;.;e:\jsdk2.0
\lib\jsdk.jar;e:\weblogic\classes;e:\weblogic\lib\weblogicaux.jar
: ;e
: :\java_dev\oraclexml\parser\lib\xmlparser.jar;../lib/classgen.j
ar
: ;." SampleMain.
: java
: SampleMain.java:33: Class XMLParser not found in type
: declaration.
: XMLParser parser = new XMLParser();
: ^
: SampleMain.java:33: Class XMLParser not found in type
: declaration.
: XMLParser parser = new XMLParser();
: ^
: 2 errors
Two possiblities come to mind. Are you using v1 of the XML
Parser as this is the one that works with the Class Generator?
Secondly, is you CLASSPATH set correctly to include the .jar
files?
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null

Similar Messages

  • Problem to compile sample code with C++ Parser on Unix

    I just downloaded C++ parser and tried to compile the sample source code, but I got
    the following error:
    g++ -o DOMSample -I../include DOMSample.cpp -L../lib/xml8 -L../lib/core8 -L../lib/nls8 -L../lib/xmlc8 -L../lib/nsl -L../lib/socket
    Undefined first referenced
    symbol in file
    Node::getFirstChild(void) /var/tmp/ccarlA8y.o
    Node::getValue(void) /var/tmp/ccarlA8y.o
    XMLParser::xmlterm(void) /var/tmp/ccarlA8y.o
    XMLParser::getDocumentElement(void) /var/tmp/ccarlA8y.o
    xmlinit__9XMLParserPUcPFPvPCUcUi_vPvP8xmlsaxcbT3T1 /var/tmp/ccarlA8y.o
    Node::hasChildNodes(void) /var/tmp/ccarlA8y.o
    Node::getChildNode(unsigned int) /var/tmp/ccarlA8y.o
    Node::getName(void) /var/tmp/ccarlA8y.o
    Node::numChildNodes(void) /var/tmp/ccarlA8y.o
    XMLParser::xmlparse(unsigned char *, unsigned char *, unsigned int)/var/tmp/ccarlA8y.o
    Node::getType(void) /var/tmp/ccarlA8y.o
    ld: fatal: Symbol referencing errors. No output written to DOMSample
    collect2: ld returned 1 exit status
    make: *** [DOMSample] Error 1
    Please help me out. Thanks,
    null

    I have the similar problem when I tried to compile sample code with C++ parser on WinNT4. I am using Micrsoft Visual Studio V6.0. I added the include file and lib file in the path.
    Here are the error messages:
    Linking...
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall XMLParser::xmlterm(void)" (?xmlterm@XMLParser@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall DocumentType::getEntities(void)" (?getEntities@DocumentType@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NamedNodeMap::item(unsigned int)" (?item@NamedNodeMap@@QAEPAVNode@@I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall NamedNodeMap::getLength(void)" (?getLength@NamedNodeMap@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall DocumentType::getNotations(void)" (?getNotations@DocumentType@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class DocumentType * __thiscall XMLParser::getDocType(void)" (?getDocType@XMLParser@@QAEPAVDocumentType@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall XMLParser::xmlparse(unsigned char *,unsigned char *,unsigned int)" (?xmlparse@XMLParser@@QAEIPAE0I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall XMLParser::xmlclean(void)" (?xmlclean@XMLParser@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::replaceData(unsigned long,unsigned long,unsigned char *)" (?replaceData@CharacterData@@QAEXKKPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::deleteData(unsigned long,unsigned long)" (?deleteData@CharacterData@@QAEXKK@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::insertData(unsigned long,unsigned char *)" (?insertData@CharacterData@@QAEXKPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::appendData(unsigned char *)" (?appendData@CharacterData@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall CharacterData::substringData(unsigned long,unsigned long)" (?substringData@CharacterData@@QAEPAEKK@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall CharacterData::getLength(void)" (?getLength@CharacterData@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::setData(unsigned char *)" (?setData@CharacterData@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall CharacterData::getData(void)" (?getData@CharacterData@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Text::splitText(unsigned long)" (?splitText@Text@@QAEPAVNode@@K@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::cloneNode(int)" (?cloneNode@Node@@QAEPAV1@H@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NamedNodeMap::removeNamedItem(unsigned char *)" (?removeNamedItem@NamedNodeMap@@QAEPAVNode@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall NamedNodeMap::setNamedItem(class Node *,class Node * *)" (?setNamedItem@NamedNodeMap@@QAEHPAVNode@@PAPAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall Node::getAttributes(void)" (?getAttributes@Node@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::removeAttributeNode(class Attr *)" (?removeAttributeNode@Element@@QAEPAVAttr@@PAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::setAttribute(unsigned char *,unsigned char *)" (?setAttribute@Element@@QAEPAVAttr@@PAE0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Element::removeAttribute(unsigned char *)" (?removeAttribute@Element@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::getAttributeNode(unsigned char *)" (?getAttributeNode@Element@@QAEPAVAttr@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Attr::setValue(unsigned char *)" (?setValue@Attr@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Element::setAttributeNode(class Attr *,class Attr * *)" (?setAttributeNode@Element@@QAEHPAVAttr@@PAPAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Document::createAttribute(unsigned char *,unsigned char *)" (?createAttribute@Document@@QAEPAVAttr@@PAE0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class DocumentFragment * __thiscall Document::createDocumentFragment(void)" (?createDocumentFragment@Document@@QAEPAVDocumentFragment@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Element::normalize(void)" (?normalize@Element@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::removeChild(void)" (?removeChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::replaceChild(class Node *)" (?replaceChild@Node@@QAEPAV1@PAV1@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall Node::getOwnerDocument(void)" (?getOwnerDocument@Node@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getParentNode(void)" (?getParentNode@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NodeList::item(unsigned int)" (?item@NodeList@@QAEPAVNode@@I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall NodeList::getLength(void)" (?getLength@NodeList@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NodeList * __thiscall Document::getElementsByTagName(class Element *,unsigned char *)" (?getElementsByTagName@Document@@QAEPAVNodeList@@PAVElement@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Node::setValue(unsigned char *)" (?setValue@Node@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getPreviousSibling(void)" (?getPreviousSibling@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getLastChild(void)" (?getLastChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getNextSibling(void)" (?getNextSibling@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getFirstChild(void)" (?getFirstChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::insertBefore(class Node *,class Node *)" (?insertBefore@Node@@QAEPAV1@PAV1@0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class EntityReference * __thiscall Document::createEntityReference(unsigned char *)" (?createEntityReference@Document@@QAEPAVEntityReference@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class CDATASection * __thiscall Document::createCDATASection(unsigned char *)" (?createCDATASection@Document@@QAEPAVCDATASection@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class ProcessingInstruction * __thiscall Document::createProcessingInstruction(unsigned char *,unsigned char *)" (?createProcessingInstruction@Document@@QAEPAVProcessingInstruction@@PA
    E0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Comment * __thiscall Document::createComment(unsigned char *)" (?createComment@Document@@QAEPAVComment@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Text * __thiscall Document::createTextNode(unsigned char *)" (?createTextNode@Document@@QAEPAVText@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Element * __thiscall XMLParser::getDocumentElement(void)" (?getDocumentElement@XMLParser@@QAEPAVElement@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::appendChild(class Node *)" (?appendChild@Node@@QAEPAV1@PAV1@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Element * __thiscall Document::createElement(unsigned char *)" (?createElement@Document@@QAEPAVElement@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall XMLParser::getDocument(void)" (?getDocument@XMLParser@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall XMLParser::createDocument(void)" (?createDocument@XMLParser@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall XMLParser::xmlinit(unsigned char *,void (__cdecl*)(void *,unsigned char const *,unsigned int),void *,struct xmlsaxcb *,void *,unsigned char *)" (?xmlinit@XMLPar
    ser@@QAEIPAEP6AXPAXPBEI@Z1PAUxmlsaxcb@@10@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall Node::numChildNodes(void)" (?numChildNodes@Node@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NodeList * __thiscall Node::getChildNodes(void)" (?getChildNodes@Node@@QAEPAVNodeList@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Node::hasChildNodes(void)" (?hasChildNodes@Node@@QAEHXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Attr::getValue(void)" (?getValue@Attr@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Attr::getSpecified(void)" (?getSpecified@Attr@@QAEHXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Attr::getName(void)" (?getName@Attr@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Node::getValue(void)" (?getValue@Node@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Node::getName(void)" (?getName@Node@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: short __thiscall Node::getType(void)" (?getType@Node@@QAEFXZ)
    LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Debug/orafulldom.exe : fatal error LNK1120: 64 unresolved externals
    Error executing link.exe.
    orafulldom.exe - 65 error(s), 0 warning(s)
    null

  • Newbie need help in compiling sample code

    Hi,
    I know this is a very newbie question.
    Could someone please help me out on how to compile the sample code?
    [root@localhost getting_started]# gcc -I/usr/src/db-4.7.25.NC/build_unix gettingstarted_common.c example_database_read.c
    /tmp/ccMnYv8b.o: In function `open_database':
    gettingstarted_common.c:(.text+0xeb): undefined reference to `db_create'
    gettingstarted_common.c:(.text+0xfc): undefined reference to `db_strerror'
    /tmp/ccMnYv8b.o: In function `databases_close':
    gettingstarted_common.c:(.text+0x513): undefined reference to `db_strerror'
    gettingstarted_common.c:(.text+0x565): undefined reference to `db_strerror'
    gettingstarted_common.c:(.text+0x5ba): undefined reference to `db_strerror'
    collect2: ld returned 1 exit status
    Thanks alot.
    JB

    Hi,
    I tried:
    [root@localhost getting_started]# gcc -I/usr/src/db-4.7.25.NC/build_unix -L/usr/src/db-4.7.25.NC/build_unix -ldb gettingstarted_common.c example_database_read.c
    /tmp/ccaHcwAy.o: In function `open_database':
    gettingstarted_common.c:(.text+0xeb): undefined reference to `db_create'
    gettingstarted_common.c:(.text+0xfc): undefined reference to `db_strerror'
    /tmp/ccaHcwAy.o: In function `databases_close':
    gettingstarted_common.c:(.text+0x513): undefined reference to `db_strerror'
    gettingstarted_common.c:(.text+0x565): undefined reference to `db_strerror'
    gettingstarted_common.c:(.text+0x5ba): undefined reference to `db_strerror'
    collect2: ld returned 1 exit status
    But it still does not work.
    Any idea?
    Sorry for the newbie question.
    JB

  • Cannot find sample code: how-to-jazn.war/jar

    Hi,
    As referenced in this online article
    http://otn.oracle.com/tech/java/oc4j/htdocs/how-to-jazn.html I cannot find where this sample code is located. Does anyone know where this is?
    Thanks

    Find it here
    http://download.oracle.com/otn/java/oc4j/how-to-jazn.zip
    Chandar

  • Error while compiling CS5.5 sample code

    Hi,
    I have just started on using InDesign CS5.5. I am trying to compile the sample code on Windows 7 and with Visual Studio 2008. On compilation it is giving me an error of SDKLib.sdk.lib
    "LINK : fatal error LNK1181: cannot open input file '..\..\..\build\win\objr\SDKLib.sdk.lib'"
    Have I missed some settings. I have set the Bin folder in the tools option. If anyone knows about this error please do let me know.
    Thanks all in advance.
    Regards,
    Farzana.

    Hi to all again,
    I just noticed that I don't have the SDKLib.sdk.lib file in the folder. Neither for Debug or for Release I have this file. Do I need to download this from somewhere??
    Thanks in advance.
    Regards
    Farzana.

  • Sun ejb tutorial compilation problem with sample code

    I have been trying to follow the ejb tutorial off of Sun's web site. However, I get the following problem when I try to compile the sample code.
    prompt>javac Demo.java
    works fine
    Prompt>javac DemoBean.java
    works fine
    Prompt>javac DemoHome.java
    DemoHome.java:23: cannot resolve symbol
    symbol : class Demo
    location: interface ejb.demo.DemoHome
    public Demo create() throws CreateException, RemoteException;
    ^
    1 error
    Prompt>
    Can anyone help me out as I have tried several books which conveniently skip the part about compiling errors.
    I noticed I don't have a CLASSPATH variable and then i created one with just '.' in it and that didn't work. any help would be appreciated as this is driving me crazy. Thanks.

    try to change the order of the exception.
    first RemoteException and then CreateException

  • Help!! cannot compile codes...

    i've found several codes in the internet which is works (said the author)
    when i try to compile the codes (.java) there's a lot of errors occur. example of the error is:
    ContributorMgr.java:73:cannot resolve symbol
    symbol: class ChatItem
    location: class ContributorMgr
    ChatItem ci = new ChatItem();
    ^
    but i can compile ChatItem class.
    why this problem happens?
    how to overcome it?
    anyone can help me?
    thanks in advance

    Read the docs.
    You call it like this:
    javac -d targetDirectory MyClass.java
    If MyClass.java is defined within a package "dog.cat", then javac will create appropriate subdirectories under the targetDirectory directory, and put the class file there. So the result of the above would create:
    targetDirectory/dog/cat/MyClass.class
    What you did was to tell javac to put compiled classes under a directory named "ContributorMgr.java", but then not to tell it to compile anything.
    This is all covered in the docs!
    You should really define a package for any non-trivial code.
    Also your classpath should include the root directory of your package directory hierarchy.

  • Cannot run OCCI sample code.. cant find Dbmanager.h

    Hi , I am trying to connect to my oracle 10g database and i am getting an error. I downloaded instantclient-sdk-win32-10.2.0.3-20061115.zip from
    [http://www.oracle.com/technetwork/topics/winsoft-085727.html| http://www.oracle.com/technetwork/topics/winsoft-085727.html]
    Then I used the following ever so popular code
    #include <DbManager.h>
    #include <iostream>
    using namespace std;
    using namespace oracle::occi;
    const string sqlString("select empno, ename from employee");
    int main(int argc, char **argv)
    if (argc != 2)
    cerr << "\nUsage: " << argv[0] << " <db-user-name>\n" << endl;
    exit(1);
    // Initialize OracleServices
    DbManager* dbm = NULL;
    OracleServices* oras = NULL;
    Statement *stmt = NULL;
    ResultSet *resultSet = NULL;
    try
    // Obtain OracleServices object with the default args.
    dbm = new DbManager(userName);
    oras = dbm->getOracleServices();
    // Obtain a connection
    Connection * conn = oras->connection();
    // Create a statement
    stmt = conn->createStatement(sqlString);
    int empno;
    string ename;
    // Execute query to get a resultset
    resultSet = stmt->executeQuery();
    while (resultSet->next())
    empno = resultSet->getInt(1); // get the first column returned by the query;
    ename = resultSet->getString(2); // get the second column returned by the query
    if (resultSet->isNull(1))
    cout << "Employee Number is null... " << endl;
    if (resultSet->isNull(2))
    cout << "Employee Name is null..." << endl;
    cout << empno << "\t" << ename <<endl;
    // Close ResultSet and Statement
    stmt->closeResultSet(resultSet);
    conn->terminateStatement(stmt);
    // Close Connection and OCCI Environment
    delete dbm;
    catch (SQLException& ex)
    if (dbm != NULL)
    dbm->rollbackActions(ex, stmt, resultSet); // free resources and rollback transaction
    return 0;
    But the problem is I cannot fint find DBManager.h. I read on a certain post we could use <occi.h> instead of dbmanager but then i get an error with the types
    Dbmanager,OracleService and ResultSet. Can anyone please help me out , The code wont even build i am using Visual studio 2010 and i included all the header files.
    Did the i download the wrong package or what am i doing wrong ????

    This website has some sample codes that I want to run, but I'm getting errors. For the very first sample code, I removed ; in line 1 and it reduced number of errors. I can't post image because MS has to verify my account first.
    Someone told me that this is missing MFC and main method. I googled and MFC is like SKD made by users. So, my guess is that I need to find the MFC this person used and include them as like #include ".h" and have int main(). Is this true? If it is
    true where can I get the MFC? and how do I know which MFC this person used?
    MFC stand for  Microsoft Foundation Class Library is a library that wraps portions of the Windows API in C++ classes, including functionality that enables them to use a default application framework. To work on MFC you have to download Visual
    Studio . As you are new to window So i will suggest you to start with VS2008 onward .And Before you start working with MFC have some fundamental of Win32 As well.
    Thanks
    Rupesh Shukla

  • Can I use gcc to compile sample driver code?

    Hi:
    I am trying to compile the sample driver code using gcc.
    I got lots of error messages while parsing header files under the sys/ directory.
    Have I missed something?
    Or does it mean that I have to use the cc compiler from Sun?
    By the way, need I any tools other than the compiler if I want to develope Solaris driver?
    Any replies would be appreciated.
    B.Regards
    Steven

    Thanks for your help.
    I just found out this might be due to the conflicts between different OSs.
    Becuase I usually work under the MicroSoft Windows enviroment, so I first downloaded and unzipped the sample code in Windows.
    (I might have opened the file using Visual Studio, too.)
    Then I copied the files to the Solaris environment and compiled them there.
    In that case, lots of errors are found by the make utility and gcc.
    But if I do all the jobs under Solaris, everying is going well.
    Now I find myself in trouble becuase I have used Visual Studio to edit my own driver source file.
    Could anyone please tell me how to transform my source code so that it can be compiled under Solaris?

  • Issues in Deploying the Sample code

    Hi,
    I downloaded  BusinessObjects Enterprise Java SDK Sample Code from SDK Developer Library.  I unzipped the content to a folder(Sample) in tomcat/webapps.  Now when I launched the application using the following url http://localhost:8080/Sample/start.jsp
    I am getting the following error.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Only a type can be imported. com.crystaldecisions.sdk.exception.SDKException resolves to a package
    Generated servlet error:
    Only a type can be imported. com.crystaldecisions.sdk.framework.CrystalEnterprise resolves to a package
    Generated servlet error:
    Only a type can be imported. com.crystaldecisions.sdk.framework.IEnterpriseSession resolves to a package
    Generated servlet error:
    Only a type can be imported. com.crystaldecisions.sdk.framework.ISessionMgr resolves to a package
    An error occurred at line: 36 in the jsp file: /start.jsp
    Generated servlet error:
    ISessionMgr cannot be resolved to a type
    An error occurred at line: 36 in the jsp file: /start.jsp
    Generated servlet error:
    CrystalEnterprise cannot be resolved
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Please let me know whether I have to do any configuration to make this application running.
    Thanks and Regards,
    Subbu S

    You can find the neccessary jar files here:
    C:Program FilesBusiness ObjectsCommon4.0javalib
    Check the developer guide for guidance on exactly which jars are required:
    https://www.sdn.sap.com/irj/boc/sdklibrary
    BusinessObjects Enterprise Java SDK > Developer Guide > Setting up the development environment > Web application setup > JAR files needed for deployment of Business Objects Software

  • Sample code for a custom field added to LIS Communication structure for Del

    We appended a new custome field into extraction structure of the LO Cookpit datasource 2LIS_02_ITM through RSA6.  And then run CMOD to write the exit code to populate the value and it works fine.  But after we read Roberto's Weblog:
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    Find the enhancement we did can't make the Delta mechanism works if only this new field gets changed in a record, and the change cannot be reflected on BW.  I know we can run SMOD on the enhancement LEINS001 to write the code for LIS Communication structure customer exit.  But we have never writen such a code for LIS Communication Structure enhancement and also don't know on how to make the Delta mechanism works in the code.  We would be very appreciated if some expert here can provide the sample code!
    Thanks

    hi AHP,
    Have you tried Sanyam's code listed in this article you recommended?
    Now our R3 team has added a custom field called ZZZ to EKKO table and I modify the code to suit our need and the code would be as following:
    *& Include ZXM06U16 *
    DATA: i_t_ekko LIKE ekko OCCURS 1 WITH HEADER LINE.
    DATA: ebeln LIKE ekpo-ebeln,
    it_ekko TYPE TABLE OF ekko WITH HEADER LINE,
    old_val(50) TYPE c. "For storing the value from the Field Symbol
    FIELD-SYMBOLS <fs> TYPE ANY TABLE.
    CASE zeitp.
    WHEN 'MA'. "When creating a purchase order
    MOVE '(SAPLEINS)T_EKKO[]' TO old_val.
    ASSIGN (old_val) TO <fs>.
    i_t_ekko[] = <fs>.
    LOOP AT xmcekko.
    ebeln = xmcekko-ebeln.
    IF xmcekko-supkz = '1'. "Old Value ?
    SELECT SINGLE * FROM ekko INTO it_ekko WHERE ebeln = ebeln.
    xmcekko-ZZZ = it_ekko-ZZZ.
    ELSE. "New Value ?
    READ TABLE i_t_ekko WITH KEY ebeln = ebeln.
    xmcekko-ZZZ = i_t_ekko-ZZZ.
    ENDIF.
    MODIFY xmcekko.
    ENDLOOP.
    EndCase.
    The compile of the above code works fine and we activated everywhere including project level. Then we set debug points in this code, and run RSA3 on 2LIS_02_ITM, but find the extraction program never reaches this code or call this user exit function EXIT_SAPLEINS_001 of this enhancement LEINS001. Any reason?
    Thanks
    Kevin
    Message was edited by: Kevin Smith

  • J2EE Tutorial sample codes question

    Hi there,
    I just started to catchup some tutorials' sample codes using J2EE tutorial, what happened when i tried to compile the first example called "Converter" EJB, using the command:
    ant converteri get all the files compiled except the ConverterClient.java which leads to some errors:
    ConverterClient.java:15: '.' expected
    import Converter;
    ^
    ConverterClient.java:16: '.' expected
    import ConverterHome;
    ^
    ConverterClient.java:26: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    ConverterHome home =
    ^
    ConverterClient.java:27: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    (ConverterHome)PortableRemoteObject.narrow(objref,
    ^
    ConverterClient.java:28: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    ConverterHome.class);
    ^
    ConverterClient.java:30: cannot resolve symbol
    symbol : class Converter
    location: class ConverterClient
    Converter currencyConverter = home.create();
    ^
    6 errors
    whats wrong actually? I also tried to put the ConverterClient.java into another directory, after compiled the rest, then i copied the file into the build folder and compile it manually, yet still getting this error. Please help!
    Thanks
    Neo

    I think you didn't read my question properly, i had said that i manually copied the ConverterClient to the other class together as it needs;
    This is the code for ConverterClient:
    * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
    * This software is the proprietary information of Sun Microsystems, Inc. 
    * Use is subject to license terms.
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    import Converter;
    import ConverterHome;
    public class ConverterClient {
       public static void main(String[] args) {
           try {
               Context initial = new InitialContext();
               Context myEnv = (Context)initial.lookup("java:comp/env");
               Object objref = myEnv.lookup("ejb/SimpleConverter");
               ConverterHome home =
                   (ConverterHome)PortableRemoteObject.narrow(objref,
                                                ConverterHome.class);
               Converter currencyConverter = home.create();
               BigDecimal param = new BigDecimal ("100.00");
               BigDecimal amount = currencyConverter.dollarToYen(param);
               System.out.println(amount);
               amount = currencyConverter.yenToEuro(param);
               System.out.println(amount);
               System.exit(0);
           } catch (Exception ex) {
               System.err.println("Caught an unexpected exception!");
               ex.printStackTrace();
    } also please try the tutorial before answering...TQ :D

  • CHLinguistic Sample code doesn't add languages

    I have a problem with CHLinguistic speller example in Adobe InDesign CS3 version 5.0. Based on this sample code, I want to create a speller for Lithuanian language, a different one than provided by Proximity, but it seems I can't change the vendor. Different vendor doesn't show up in Edit->Preferences->Dictionary for spelling. When I compile and load CHLinguistic plug-in as it is, I do not see Aramaic, English Zambia, Bemba Zambia, Bemba Botswana, and I cannot change the vendor for Bulgarian or Hungarian language dictionary. What might be a problem?
    Jurate

    Thank you, I have just run out all this patches, it's a so hard work, and it took me three days to run them.
    Now I'll turn to test the effect of the patches to the ODM schema, if there is still any question, I'll turn to you for help, thanks in advance!

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

  • What does it take to run OTN sample code?

    Do I have to install some kind of developers tool kit in order to compile and run the OTN and Oracle-install related sample code?
    Also, I noticed that OTN only has toolkits for Oracle 9i, and nothing for Oracle 8i. Is Oracle abandoning 8i? Lots of us are not moving to 9i for some time, and abandoning 8i is not a swift idea. If we can not do what we need to do in 8i, we can always use Microsoft SQL Server, which we already have and are familiar with . . . There are those in the department that are using this to argue for a return to SQL Server.

    I re-read my posting, looking for any mention of a lack of Oracle 8i documents and could not find any.
    But I did notice that I mentioned OTN Samples and a question regarding the need to install toolkits in order to run them. I still don't know the answer. You see, the OTN sample readme files seem quite 'lean', and the classpath info needed to compile the Java code is not provided. I have not been able to compile the code after quite a bit of effort, prompting me to question the need for a tool kit. Or perhaps some .jar or .zip files are missing?
    I also questioned support for Oracle 8i in that OTN is featuring 9i almost exclusively. This was prompted by my inability to locate 8i toolkit downloads in case I needed them. Plus the fact that we will be on 8i until next year . . .
    Have a nice day.

Maybe you are looking for

  • Ubuntu, Windows, and iTunes can't see my iPod. What can I do?

    I have an iPod 5g and i have been messing around with it and i discovered the problem of iTunesLock preventing me from accessing the iPod and putting itself back on. Well in a stroke of genius I deleted the Play Counts and iTunesLock files also tryin

  • Where can I buy a certain Macbook A1278 case?

    I recently picked up a mid-2010 Macbook Pro, 13.3 inches. It's an A1278 model, and I'm wanting to buy a good case for it. I've seen on multiple occasions people with matte black cases which will cause the apple to change color, and I'd prefer somethi

  • Quicktime always opens up..........

    hello, when safari or firefox is running and a page is displayed which shows a video which show run on that page, quicktime opens up and displays it box and then a error message which says "url is not valid". thanks. lee

  • 11.1.3 (8) iTunes fails to transfer newest music tracks to iPhone 4

    For the past few days, I noticed that my version of iTunes 11.1.3 (8) fails to transfer my newest music tracks, which I imported into my MacBook's Itunes in the past week, to my 2011 iPhone 4. Both my MacBook's and iPhone's software appear to be up t

  • Qosmio G10: Write failures, strange noises & system locking on

    Hello Im currently away on holiday with my Laptop and im having write failures and strange noises coming from system speaker and the system keeps locking up. Any ideas??