Where is class Select in my code

Hi,
I writet the jave code and uset he class select like below
import org.openqa.*;
import org.openqa.jetty.*;
Select select1 = new Select(driver.findElement(By.name("Language")));
        select1.deselectAll();
        select1.selectByVisibleText("english");I check the 1.jar file and there is org/openqa/jetty/html/Select.class.
I complie the file
D:\ext_appl\J2SE\jdk1.6.0_24\bin>javac -cp 1.jar;*.jar;D:\ext_appl\J2SE\jdk1.6.0
_24\bin HGC1_select.java
HGC1_select.java:11: package org.openqa.jetty does not exist
import org.openqa.jetty.*;
^
HGC1_select.java:61: cannot find symbol
symbol  : class Select
location: class HGC1_select
        Select select1 = new Select(driver.findElement(By.name("Language")));
        ^
HGC1_select.java:61: cannot find symbol
symbol  : class Select
location: class HGC1_select
        Select select1 = new Select(driver.findElement(By.name("Language")));
                             ^
3 errorsThe class Select is not locate . Why ?? Any advice
Edited by: Darryl Burke -- corrected the code tags

import org.openqa.jetty.*;
only imports classes directly in the org.openqa.jetty package. It does NOT import classes in ort.openqa.jetty.html. There's no notion of "recursive subpackage importing." As far as the java language is concerned, package a.b.c.d is no more related to package a.b.c than a method named abcd() is related to one named abc().
Additionally, you should not be in your JDK tree when compiling, and you should not put any additional .jar, .class, or .java files there, except perhaps for a few security or encryption related jars that will document that they must go there.
Your directory structure should be something like this. Of course you can change the specific names to suit your own needs and preferences. The point is to keep stuff separate.
C:\jdk\...  // <--- Never add, modify, move, or remove anything in this directory tree
C:\libs\openqa\openqa.jar
C:\libs\jdbc\mysql-driver.jar
C:\development\proj1\src\com\mystuff\proj1\SomeClass.java
C:\development\proj1\output\com\mystuff\proj1\SomeClass.class

Similar Messages

  • Class selection in Material Classification Datasource

    I need to extract material classification from R/3 to BW. For this I generated a 1CL* datasource in transaction CTBW. As part of the datasource configuration I selected the Class type (001 in this case) and the characteristic objects to be extracted (for example, COLOR, SIZE, etc.). I have an additional requirement that is to select the Class from which the characteristic value is to be read (R/3 configuration is so that the same characteristic can be part of several different classes. For example, SIZE can be part of 'Ingrediends materials' and 'Packaging materials' classes).
    As far as I know, this is not possible because BW doesn't have the 'Class' level value for selection in the materia classification datasource, only the object level value. Is there a standard way to have the 'Class' filtered in the datasource generated with CTBW transaction?. Thank you.

    We came to the conclussion that it is not necessary to worry about the Class when extracting data to BW. Although it is possible to have one characteristic included in several classes in R/3, when a value is assigned to a material, the value is unique. Check the assignment of those values is saved in table AUSP in R/3 where the class is not part of the key, only the Class Type. This means that one material code is going to have always only one value for the characteristic despite of the class/classes it is included in. So, don't have to worry about the class when extracting data to BW. Hope this helps.

  • Use of LIKE in where clause of select statement for multiple records

    Hi Experts,
    I have a account number field which is uploaded from a file. Now this account numbers uploaded does not match fully with sap table account numbers but it contains all of the numbers provided in the file mostly in the upright positions.
    For example in file we have account number as 2ARS1 while in sap table the value is 002ARS1.
    And i want to fetch data from sap table based on account number uploaded. So, i am trying to use LIKE with for all entries but its not working as mentioned below but LIKE is not working with FOR ALL ENTRIES.
    data : begin of t_dda occurs 0,
            dda(19) type c,
           end of t_dda.
    data : begin of t_bukrs occurs 0,
            bukrs type t012k-bukrs,
           end of t_bukrs.
    data : dda type t012k-bankn,
           w_dda type t012k-bankn.
    CONCATENATE '%'
                             '2ARS1'
                     INTO  W_DDA.
    MOVE W_DDA TO T_DDA-DDA.
    APPEND T_DDA.
    CLEAR T_DDA.
    free t_bukrs.
    SELECT BUKRS
      FROM T012K
      into TABLE t_bukrs
        for all entries in t_dda
    WHERE BANKN like t_dda-dda.
    Can anybody suggest what should i use to get the data for multiple account numbers using one select statement only instead on using SELECT UP TO 1 ROWS in LOOP....ENDLOOP ?
    Thanks in advance,
    Akash

    Hi,
    yes, For All entries won't work for LIKE with '%  '.
    I think the other alternative is go for Native SQL by writing sub-query
    sample code is here:
    data: begin of i_mara occurs 0,
              matnr like mara-matnr,
              matkl like mara-matkl,
           end of i_mara.
    exec sql.
    select matnr, matkl from mara where matnr in (select matnr from marc) and matnr like '%ma' into :i_mara
    endexec.
    loop at i_mara.
    write:/ i_mara-matnr, i_mara-matkl.
    endloop.
    hope u got it.
    regards
    Mahesh
    Edited by: Mahesh Reddy on Jan 21, 2009 2:32 PM

  • Regarding  dynamically assigning the where clause to select query

    hi,
      Please send the code regarding how to dynamically assign the where clause to select query.
    thanks in advance

    SELECT <fileds>
            INTO TABLE itab
            FROM dbase
            WHERE  condition.

  • Conversion of class files to source codes

    I was informed that it is possible to convert class files back to the java sourcs codes from where those are generated. How can I protect my source codes from illegal copying by others ?

    hai ,
    yes it is possible to convert class file into source code. there is a software called jad.exe available in the net
    using witch u can convert class file into jar file. but i don't know how to protect the class file to avoid the illigal convertion.

  • Where can I get the sample code of gantt chart?

    hi, all
    I want to use gantt chart component.I find this video http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html.
    where can I get the sample code in this video?
    I have got the demo <strong>dvt-faces-demo.ear</strong>.but in this demo, the code of events process is too simple.I want more detail code of date change, denpendency change and so on.
    this is my mail [email protected]
    Thanks
    Best Regards
    kenshin
    Edited by: Himura Kenshin on 2010-8-20 上午4:57
    Edited by: Himura Kenshin on 2010-8-20 上午9:03

    Hi Katia,
    Essentially the same sample app which was referenced above (http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html). There are many features implemented in this sample which I'll be "reinventing the wheel" with. Its been a bit since I worked with the gantt component as I had to abandon for other development but will be getting back into it here shortly.
    Namely as I remember, I had difficult time getting the gantt to load quickly with large amount of tasks, difficulty getting the selected item when using context menus or buttons defined within the control, and a few other minor issues which could be fixed as I was using the first release of 11g and cannot remember specifics. I'll let you know as I get back into it if I see similar problems.
    For example, if you go to the ADF Demo Site (http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/index.jspx) and click on "Project Gantt Custom Menu and Toolbar - add menus and buttons on the Project Gantt Menu and Toolbar". The buttons work, however if you first select a row in the left and then click the button, you have to click twice for it to work (in my findings the action listener never "fires"). So in my case I want to select a row and then have a custom event for that selected row when I click the button. There were other similar findings I had when I tried to go off of the examples.
    Hope this helps.
    Thank you,
    Kris

  • I am trying to work at home on an urgent project today, however I appear not to be able to open my recently purchased CC ai & photoshop & id. Where can I find my redemption code please?

    Please can someone tell me where to find my redemption code Please can someone tell me where to find my redemption code

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    If yes
    Some general information for a Cloud subscription
    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
    If no
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Where can I see Controller source code

    Hello all,
    My question might be stupid for some ADF gurus, however many people we found that R12 Pages have lots of code and there is not too much documentation about how to customise a controller.
    1. I can see the *.class of my controller in the $JAVA_TOP/oracle/apps/ar/cusstd/createcus/webui/ArCreCusCO.class on my server, BUT I only see all the code encrypted when I open JDeveloper. So I guess I am doing all wrong.
    2. I want to change ArCreCusCO.class. I see many people say hey I customised XYZ controller but how they found the code and proceed to change it is the least of my headaches
    3. Do I need to configure something in JDeveloper so that I can see the server classes to my JDeveloper is this what they do, if so how you do it ????
    4. I saw something in the Help page saying Adding components to the OA Extension what the heck is this ???
    Thanks for illuminating some newbie in ADF.
    With the new Java philosophy some of 12 years experience developers we are starting from scratch due to this new architecture.
    Hector.-
    p.s. Any input will be taken, however don't make reference to the Oracle Tutorial, this is a piece of cake example I need some Hands-On example ;-)

    hi hbono99
    1.) as u can c .class in java top ,that is compiled code as source code is not delievered by oracle,so u need to decompile this ".class" file to see the source code,JAD decompiler version 1.5.8 will be latest .although it would be useful to see the source code ,but sometimes decompiled class create problems when try to compile again.
    2.) u can make changes in the ArCreCusCO.class after decompiling that and compile again the same to generate the class file ,bcz u can put only class file on the server,BUT this would be lethal to change the standard class,and from here concept of Extension come into the picture ,u need to extend this class."customised XYZ " means the extesion of the parent class,and to do the extension u dont dont need the source .
    3.) u cant see the source code of a .class in Jdeveloper ,there is no such type of setting.
    4.) To extend the ArCreCusCO.class,u need to create a workspace followed by creation of a project with in the workspace in Jdeveloper
    process to extend the class
    a.)create wokspace and project
    b.) create the same package in which the ArCreCusCO.class is residing ,under the \jdev\myprojects\ in your Jdeveloper
    c.) right click on project ,go to create new class,here u will find the option to metion the package where u want to put the extended class(normal package starts with xx.oracle.----) plus option to mention the classs nmae u want to extend
    d.) click ok at last ,u will get your extended class
    e.) source code generaly has two methods processRequest and ProcessFormRequest ,u can add the code according to the requirement .
    extension works bcz inside both the method it calls super ,so first it executes all the methods the parent class in your case ArCreCusCO.class and then control comes to extended class,now your code will get executed ,which will accomliseh your requirement
    f.)tranaser the class file of extended file to server , to add this extended class with seeded page u need personalize the page ,there u will find the option to add your class ,u mention your class with compete package (the way as we import the file with their package names in our source code,here import is not required)
    thanx
    Pratap

  • Where I find description on error codes?

    Where I find description on error codes?
    I programme TCP-IP protocol and don't find description on error codes given me VI's.

    Hi Alex,
    right-click the error cluster and select "Explain Error"!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I would like to know, on the ringtone page, where you can select songs out of your music library, is there a way to remove a song from the list after its selected? I would thin there would be a way to "delete" the songs from the list. (Clock app)

    I would like to know, on the ringtone page, where you can select songs out of your music library, is there a way to remove a song from the list after its selected? I would thin there would be a way to "delete" the songs from the list. (Clock app)
    Let me explain:
    In the clock app for ios 6.0.2 I am a little confused. It allows you to go into your music library, and create a ringtone using any songs you choose. However, I cannot find a way to remove a song from this list, just like I cannot delete one of the preset ringtones (which I'm not trying to do, but just as an example)
    Thanks for your time! If you need more information just ask.
    (I believe both my iPod and iTunes are up to date)

    I believe you just are able to delete them from iTunes.
    Hope it will be helpful

  • TS3376 How do I find the menue where I can select the list of previous phones I have had and my new one ? at the moment it is still set to an old one so everytime I try to set it up it tells me it it's the wrong one - gggrrrrr help please

    How do I find the menue where I can select the list of previous phones I have had and my new one ? at the moment it is still set to an old one so everytime I try to set it up it tells me it it's the wrong one - gggrrrrr help please

    iPods (except for iPod touch) are not linked to any iTunes "account."  They are associated with your iTunes library. The account in iTunes is your Apple ID, and that is used to buy and download content from the iTunes Store.  It is not required to use an iPod.
    The 1st (and 2nd) gen shuffle can only be used with one iTunes library at a time.  When you connect it, iTunes should prompt you to start using it with your iTunes library, and warn that the shuffle's existing content will be erased.  Have iTunes erase the shuffle, and it will be associated with your iTunes library going forward.  You can then add content to your shuffle.
    The need for the previous owner's Apple ID and password should only come up if you are trying to transfer existing content from the shuffle to your iTunes library, AND the previous owner had content purchased from the iTunes Store.  Just cancel out of that step, if iTunes asks.

  • Firefox fails to import history, cookies, favourites etc. from opera; cookies etc. are not listed in the space where you can select the items you want to import any idea how this comes? thanks!

    In the importing operation Firefox detects Internet Explorer and Opera as installed browsers. When i select Internet Explorer cookies, history, favourites etc. are listed in a box where you can select the items you want to import in Firefox. When i select Opera no items are listed that can be imported. Any idea how this comes?

    Hi,
    I think that what you are searching be in Tools >> Options >> Privacy >> On Firefox will: change to "Use custom settings for history" then Button Show Cookies will be allowed and you will see the cookies in your browser in the next window
    If you uncheck "Accept cookies from sites", probably the sites that need cookies will alert you that you need active the storage cookies

  • F110 - No bank can be selected for comp code 8888 payment pethod C cur USD

    Dear All Experts,
    I am running F110 program, while doing getting this error
    *No bank can be selected for comp code 8888 payment pethod C cur USD*
    I have configured the FBZP section with possible all entries as follows :-
    1 ) Payment Method in country - Currencies Allowed is blank - Means all aplicable.
    2 ) Payment method company code data :- Forign currencies allowed option is Ticked.
    3 ) Bank Determination - Ranking Order - Payment Method , currency USD  , rank order , House Bank.
    4 ) Bank Determination - Bank Account -  House Bank , payment Method, currency USD , Account ID, Bank Subaccount.
    Which part of configuration is missing ?
    P.S. :- My company code currency is INR. Invoice posted in USD and require to pay in USD itself.
    Experts guidance will be appreciable.
    Regards,
    Sharvari Joshi.

    Hi:
             Please make sure that you have specified a House Bank in the vendor master record or line item.
    Also have a look at what you have configured in  FBZP . SAP reads the  Bank Determination ,Ranking Order to determine whether payment method C can be used. Ranking Order, Bank Acocunts, Available Amounts and Value Date all should must be configured for payment method C. Also make sure the payment method C is assigned to the company code.
    Please check these all and revert back.
    Regards

  • Where can i get my PUK code?

    where can i get my PUK code?

    Hi You need to contact your network service provider For your PUK CODE. Cheers Brian

  • WHERE clause in SELECT statement

    hi experts..
    i want to give 'OR' condition in the 'where' clause of 'SELECT' statement.
    is it possible?
    for examlpe..
    IF EXIDV2 IS NOT INITIAL.
       SELECT * FROM YSDT_SHIPLOAD
                INTO TABLE IG_SHIPLOAD
                WHERE EXIDV2 = EXIDV2 AND
                             VHILM = PC1 OR PC2 OR PC3.
    ENDIF.
    i want that VHILM should be one of those three.
    how can i do this?
    thanks..

    Hi ,
    its possible,
    Select * from ysdt_shipload int table ig_shipload where exidv2 = exidv2
                                                                            AND vhilm = pc1
                                                                            OR     vhilm = pc2
                                                                             OR   vhilm = pc3.
    OR
    Select * from ysdt_shipload int table ig_shipload where exidv2 = exidv2
                        AND (vhilm = pc1 or vhilm = pc2 or vhilm = pc3).
    Regards
    Arani Bhaskar
    Edited by: arani bhaskar on Mar 16, 2009 5:14 PM

Maybe you are looking for