Copy Webdynpro Tutorial Sample Code

Hi Experts,
There are plenty of tutorials and sample codes available on SDN. Can anybody please specify how to import these applications. It always gives me a classpath error when I try. The steps I use are
1. Create a new Webdynpro Application.
2. Import - Filesystem and select the folder that contains the code.
Please do guide as to where I am going wrong.
Regards
Abdullah

Hi ,
The classpath errors are because they refer to some jars which are in a different path.
Right click on the imported webdynpro project - > Properties - > Project Build Path ..
Remove those jar assignments with errors (warning icon on them) and add those jars from your local system.
Regards
Bharathwaj

Similar Messages

  • 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

  • Services tutorial sample code

    hi all,
    can someone point me to a book/web tutorial that details how to go about creating standalone components that provide the Service menu functionality in finder.
    trawling through the various docs at apple don't seem to give a full picture of whats needed.
    <moan>
    it would be nice if there was an xcode template the could produce some boiler plate code.
    </moan>
    many thanks
    bg

    Have you looked at 10.6 yet?
    From Apple:
    "New Automator templates.
    It’s easier to create workflows using Automator with new starting points for Applications, Services, Folder Actions, iCal alarms, and more."
    'starting points' seems exactly what you're after. You might want to at least take a look before you write it off...good luck w/your efforts in any case.

  • Need Sample code to retrieve Data from Portal DB(Oracle)

    Would anyone provide me steps to create application with a sample code to retrieve data from portal DB which is oracle and see the output in table format.

    Hi Bris ,
    The sample code , you didnt specified from where do u want to access the oracle thorough java code or through webdynpro .
    Sample code to access through Java
    import java.sql.*;
    class Customer
    public static void main(String args[]) throws SQLException
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    System.out.println("Connecting to the database...");
    try
    Connection cn=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott","t");
    Statement st=cn.createStatement();
    ResultSet rs=st.executeQuery("select 'Connected' from dual");
    rs.next();
    String s=rs.getString(1);
    System.out.println(s);
    st.close();
    cn.close();
    catch(Exception ex)
    System.out.println("The exception raised is:" + ex);
    [code]
    If accessing through JDBC datasorce.
    https://www.sdn.sap.com/irj/sdn/thread?threadID=328550
    https://www.sdn.sap.com/irj/sdn/thread?threadID=309386
    [code]
    package com.dhl.employeemodel;
    import java.sql.Connection;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    public class DBConnectionManager {
         Connection connection;
          * @return
         public Connection getConnection() {
              try
                   Context jndiContext = new InitialContext();
                   DataSource ds = (DataSource)jndiContext.lookup("jdbc/MyAlias");
                   connection = ds.getConnection();
             catch(Exception connectionErrEx)
                   //connectionErrEx.printStackTrace();
                   return null;
              return connection;
    Thanx
    Pankaj

  • Sample code - webdynpro java Handheld.

    Dear all,
    I am new to webdynpro java handheld.
    I need sample code for
    1. how to get a value from context element.
    2. how set a value in a context element.
    3. how to create a context and bind.
    and any sample tutorial available with create,update,retrieval, delete operations.
    I have modeled a data object in DOE with all operation (c,u,r.d).
    present i am trying develop a handheld application for the object.
    I have created query,and costume operations in services component.
    But i am unable use the service component (becuse lake of coding knowledge)
    please help me
    lakshman balanagu

    Hi,
    Please go thorugh the following document for the sample code you had asked for.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40fcc34f-af0e-2e10-41b3-f1f60bcb5a7f?quicklink=index&overridelayout=true
    There are code snippets mentioned here.
    You will get answers for your queries there in the documents.
    Hope this helps.
    Thanks,
    Lakshmi

  • 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

  • Need sample code in webdynpro for java

    Hi all
    actually i have one webdynpro form which is having multiple input elements. for example name,address,phoneno,price quantity and amount. and there is update button for that form.
    when i click the update button the multiplication of quantity and price value will be updated by in one input field which is part of the another webdynpro form is part of the same view.
    i want to update the input field in another form only when i change the value of either price or quantity otherwise the value of inputfield in another form should be same.
    now how do we retrieve the event of either price or quantity inputfield which only changes rather than changes of name or adreess.
    only when i modify the value of price or quantity in form and updated button then only the multiplication will be reflected in inputfield of another form.i dont want to reflect that inputfield of another form when i changes of other inputfields except price or quantity.
    please provide the sample code on the same...especially how to retrieve the event of that price or quantity in a form..
    Regards
    Suresh babu

    Hi Suresh,
    please post your issue to the Web Dynpro forum.
    Greetings,
    Carsten

  • 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

  • Look for JDeveloper Tutorial with samples code

    Hello All ,
    my name is Ron ,
    i'm new user of JDeveloper i'm looking for a place to start a tutorial "How to use
    the JDeveloper ? " with samples code .
    from very basic use ( Hello world program ) to addvanced programming ( Like GUI Forms and Database )
    please show me links where to start learning from
    thanks in advance

    The tutorials in the JDeveloper help system are a very good place to start. Choose Help | Help Topics from the JDeveloper menu then click the Tutorials book in the Help navigator. The tutorials are also available on OTN, see:
    http://otn.oracle.com:8877/jdeveloper/help/
    You may also find the 'how to' documents and samples on OTN helpful:
    Oracle9i JDeveloper How To Documents
    http://otn.oracle.com/products/jdev/howtos/content.html
    Oracle9i JDeveloper Sample Code
    http://otn.oracle.com/sample_code/products/jdev/content.html
    Hope this helps.
    - jon

  • JTAPI tutorial and code samples??

    Hello guys!
    Please somebody could tell-me where can I download a tutorial and code samples to start my studies on Java Telephony?
    Or may could somebory send to me for [email protected] .
    Thanks a lot. God bless you all !
    bye bye.

    http://www.zurich.ibm.com/csc/distribsys/j323/jtapi-tutorial.pdf
    The above contains a simple tutorial. Also looking for tutorials if you get any let me
    know. email to nchirara at Gmail dot com.
    later
    you are what you think you are if you think you are what you are ?!

  • Tutorial or code sample in creating a .exe for windows

    Hi all,
    Can some kind soul guide me to a tutorial / materials / code sample in creating a .exe (for a java program) to run in windows ?
    My intention is to create a .exe such that when it is clicked, the java program runs.
    thanks a bundle.

    Java in not intended to compile into system executables. IMO, you should not do this, let your application remain cross-platform. You can simply make an executable JAR file, which makes your application run with a double-click on any system which have a JRE installed.
    Anyway, if you really want to help M$ solidify their work, search the forum. It has been asked and answered several times. You have two options:
    1. Bundle a version of JRE with your application, and create an executable file which runs your application on the bundled JRE.
    2. Use a native code compiler like ( http://www.excelsior-usa.com/jet.html ).
    Also, try these:
    http://www.dobysoft.com/products/nativej/
    http://www.ej-technologies.com/products/exe4j/overview.html

  • Core MIDI sample code or tutorial

    Anyone know of a good sample project or tutorial for Core MIDI? Or, indeed any sample code or tutorial at all. The documentation isn't exactly helpful; I've tried to do the most basic thing I can think of which is to get the number of devices connected to the system using MIDIGetNumberOfExternalDevices(). It always returns 0. I've got two lines of code in an NSButton action:
    UInt32 hello = MIDIGetNumberOfExternalDevices();
    NSLog(\[NSString stringWithFormat:@"Num devices: %1i", hello\]);
    using ObjC obviously. I've tried this with MIDIGetNumberOfDevices() as well, with the same result. There are, obviously, MIDI devices connected to the system.
    What am I doing wrong? Can anyone help?

    Hi Morgan
    There is a Core Audio mailing list where Core Audio/Midi specialists hang out.
    Go to here: http://lists.apple.com/mailman/listinfo
    then choose this list: Coreaudio-api
    I'm sure that if you repost your question there you will get the answer.
    Bob

  • Proper way to distribute sample code?

    I am about to release my first java package. What is the proper way to distribute the sample code? Should I place the source code in a jar file? Or a zip file? Yes I realize that a jar file is just a zip file but should my sample code have a zip or jar extension? Or maybe I should not put them in a jar / zip file at all??

    How long is a piece of string?
    If the program has a small number of classes you could get away with copying the class files. If you use a zip file then the user has to unzip.
    I recommend using a jar file. There's a jar tutorial on this site somewhere. There are a few "gotchas" in building jars but re-reading the tutorial helps.

  • How to create the Sap script & Layout Set (wants sample code)

    Hi All ,
    Can you please provide me the step by step procedure
    to create the Sap script & Layout Set .(please provide sample
    code/links /docs for layout & print program).
    Regards
    Rahul

    hi,
    go through the following links  what i found to create sap script.
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    how to create a  scripts?give steps?
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links

  • Sample code on how to populate data in DropDownListbox

    Hi all
    i am new to the webdynpro for java.
    i have one UI element called DropDownListBox and i want to populate some desired values to the dropdown list box.
    what are the different ways are there to populate data in DropDownList box.
    for example i have city as dropdownlist box and i want to populate some values in drop downlistbox like bangalore,hyderabad,chennai and delhi,
    can you pls send the sample code on the same?
    Regards
    Suresh Babu

    Hi,
    If you want to retrieve the city names then you can use the standard tables in R/3.
    We have countries list in T500T. Like this we have table for the cities also.
    Or
    You can manually populate a table and bind this table to the list box.
    Please check out this link -
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ded11778-0801-0010-258f-ac3b9408a194
    http://help.sap.com/saphelp_nw70/helpdata/EN/74/450e8af57065468e88e4b86de47e4b/frameset.htm
    Regards
    Lekha

Maybe you are looking for

  • Firefox will not open from the start menu or the taskbar, but WILL open when called from Windows Live Messenger

    This started a couple weeks ago, but doesn't seem to coincide with any other installations or reconfigurations, so I'm having trouble getting at the root cause. The first time I run Firefox after installing, it runs fine (complete with a full list of

  • Can't connect to Wireless Network. Officejet 6500a

    I just bought an Officejet 6500A and can't seem to have it connect to my wireless network via Ethernet. All the cables are connected, however when I try to install using the network connection I keep gettting an error saying no networks are found. I

  • My genius results cannot be delivered. Unknown error 13010.

    My genius results cannot be delivered. Unknown error 13010. Therefore itunes match doesn't work neither. I already tried deleting the genius itdb file. Didnt work. My music is on an external drive. Can anyone help?

  • Issue with Creating Database

    When I right Click and make a new connection then on the new connection screen I write my Connection Name - Username - Password - save password and just change the SID to "orcl" , but when I click test I get this error: "Status: Failure - Test failed

  • HR Org Structures and MSS

    Hello Everyone, We've been testing various scenarios in our QA system regarding the 'relationships' between teams and supervisors with and without the chief's top hat in the org structure. Then, we were left with some questions. How does MSS work? Ho