How packages A uses packages B, Please?

Dear All
I have two packages and like to have the classes in A uses the Classes in B, A and B are seperate packages and each is compsed of many classes. My IDE is NetBeans 4.0, just if that important.
Please let me know how I can uses Package B classes as easy as importing jar files.
Cheers, khalid

ok I will try this, I understand that you mean when
both packahes a and b ar ein the same directory.Has nothing to do with whether the packages are in the same directory: You always provide the full package name in the import statement. Go through a tutorial or two, carefully. ...\com\mycompany\foo\Bar.class
...\com\mycompany\baz\quz\Splort.class
// For Bar to use Splort:
package com.mycompany.foo;
import com.mycompany.baz.qux.Splort;
public class Bar {}
// For Splort to use Bar:
package com.mycompany.baz.qux;
import com.mycompany.foo.Bar;
public class Splort {}
One
more to ask, What about when many classes in package
b.You can use import whateverpakcage.*; It's generally considered more maintainable to list individual classes though.
import a.B;
import a.C;
// etc.

Similar Messages

  • E71 - how can i use the gps, please help

    I have never used GPS before, i got E71 last week, it says in the manual that there is an inbuilt gps receiver in it.
    From the discussion here it looked like i still need something else to use the GPS. I saw someone
    mentioned 'Mapping', does E71 come with this program or do i need to get it from somewhere?
    Can someone tell me how i can use the GPS in the E71? Is it possible to use gps in this phone without paying additional charges?
    Many thanks.
    Solved!
    Go to Solution.

    Phones with free navigation
    Nokia E72
    Nokia E71
    Nokia E66
    Nokia N97 mini Gold Edition
    Nokia N97mini
    Nokia N97
    Nokia N86 8MP
    Nokia X6 16GB
    Nokia 5800 XpressMusic
    Nokia 5235 Ovi Music Unlimited
    Nokia 5230
    To find Ovi Maps for other phones visit Maps Support-http://www.nokia.co.in/get-support-and-software/download-software/maps-support/compatibility-and-dow...
    How to install and setup GPS in nokia E-71.
    Firstly Install Nokia Ovi Suite (advance version of PC Suite) in your respected computer.
    http://www.nokia.co.in/get-support-and-software/download-software/nokia-ovi-suite
    After installation of Nokia Ovi Suite go to following link
    http://www.nokia.co.in/explore-services/ovi-maps/downloads?intc=ncomexpserv-fw-ilc-lft-con-na-ncomex...
    Now install the the second link file into your phone, i.e., "nokia_maps_3.03_10wk11_b04_s60_3.1_rom.Nocs.sis".
    After successful installation connect your phone with data cable in PC Suite (DON'T run PC suite application in your system) mode and open Nokia Ovi Suite application in your system.
    Now in Nokia Ovi Suite application click on View-Go to-Maps (make sure your system is connected to Internet and your mobile phone key pad doesn't get locked, if keypad autolock period is on switch it off for that moment and your phone is fully charged, now in maps select Asia in that India and download that India Map (103 MB) into your phone.
    Please Note that do not disconnect your phone from data cable else maps will not get downloaded and will not to be
    transferred to your phone.
    After successful installation of maps into your phone download "Voice Guidance Languages", which ever is preferred by you, if you really want to enjoy it. Like- English(UK)-with street names or in Hindi, Tamil, Urdu.
    Now you are almost done, just take your phone into your hand,
    Go to Maps then select Options-then Settings
    Internet-Connection-Offline ( don't worry your GPS will work fine as data bearer is Nokia which is free of charge, so just relax).
    Navigation-Drive Guidance-Select the desired Voice
    Walk Guidance-Select the desired Voice or you can set it to Beeps and Vibrations (if downloaded).
    Home Location- define you home location by searching in maps, this will make easier to drive back to home by simply selecting Drive Home option while using navigation.
    Now go to option Map-Categories-select the categories you want to be shown on the map.
    Its DONE, now search for any desired location press the selection button and then select Drive to or Walk to option and you will be connected to GPS.
    Please Note as GPS needs free environment so it may not work in home and generally it takes 10-15 minutes to connect so please be patient.

  • How do I use packages tab to access private packages?

    In the adobe CQ cloud there is a packages tab, but I can't find my own packages only public ones, how do I find private packages ?
    AC

    Hi,
    Are you interested in uploading your own packages to Cloud Manager or accessing your own packages you have already uploaded to Package Share?
    Thanks.

  • How to achive using analytical functions -- please help

    oracle version : 10g
    -- 999 means ALL values for that key
    with input_parameters as (select 10 filter_key , '10ACCC' filter_value from dual union all
    select 50 filter_key ,'10ACCC0001' filter_value from dual union all
    select 60 filter_key , 'PIP' filter_value from dual union all
    select 70 filter_key , 'A' filter_value from dual) select * from input_parameters;
    with profile_search as(
    select 100 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all
    select 100 profile_id , 50 filter_key , '10ACCC0001' filter_value from dual union all
    select 100 profile_id , 50 filter_key , '10ACCC0002' filter_value from dual union all
    select 100 profile_id , 60 filter_key , '999' filter_value from dual union all
    select 100 profile_id , 70 filter_key , '999' filter_value from dual union all
    select 101 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all
    select 101 profile_id , 50 filter_key , '10ACCC001' filter_value from dual union all
    select 101 profile_id , 60 filter_key , 'PIP' filter_value from dual union all
    select 101 profile_id , 70 filter_key , '999' filter_value from dual union all
    select 102 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all
    select 102 profile_id , 50 filter_key , '10ACCC0001' filter_value from dual union all
    select 102 profile_id , 60 filter_key , 'PIP' filter_value from dual union all
    select 102 profile_id , 70 filter_key , 'A' filter_value from dual)
    select filter_key , wm_concat(filter_value) from profile_search group by profile_id, filter_key ;
    need to identify profile that matches input parameters
    102 is first match because it matches exactly
    101 is second match because 999 can match any value
    100 is third match KEY 70 HAS HIGHEST WEIGHT,
    KEY 60 has next highest weight and KEY 50 has next highest weight
    results required :
    profile_id : 102
    Edited by: devarade on Jan 19, 2010 8:01 PM
    Edited by: devarade on Jan 19, 2010 8:01 PM

    I assume there is a typo in your sample:
    select 101 profile_id , 50 filter_key , '10ACCC001' filter_value from dual union allshould be:
    select 101 profile_id , 50 filter_key , '10ACCC00<font color=red size=2>0</font>1' filter_value from dual union allThen:
    with input_parameters as (
                              select 10 filter_key , '10ACCC' filter_value from dual union all
                              select 50 filter_key ,'10ACCC0001' filter_value from dual union all
                              select 60 filter_key , 'PIP' filter_value from dual union all
                              select 70 filter_key , 'A' filter_value from dual
            profile_search as(
                              select 100 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all
                              select 100 profile_id , 50 filter_key , '10ACCC0001' filter_value from dual union all
                              select 100 profile_id , 50 filter_key , '10ACCC0002' filter_value from dual union all
                              select 100 profile_id , 60 filter_key , '999' filter_value from dual union all
                              select 100 profile_id , 70 filter_key , '999' filter_value from dual union all
                              select 101 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all
                              select 101 profile_id , 50 filter_key , '10ACCC0001' filter_value from dual union all
                              select 101 profile_id , 60 filter_key , 'PIP' filter_value from dual union all
                              select 101 profile_id , 70 filter_key , '999' filter_value from dual union all
                              select 102 profile_id , 10 filter_key , '10ACCC' filter_value from dual union all
                              select 102 profile_id , 50 filter_key , '10ACCC0001' filter_value from dual union all
                              select 102 profile_id , 60 filter_key , 'PIP' filter_value from dual union all
                              select 102 profile_id , 70 filter_key , 'A' filter_value from dual
    select  profile_id,
            sum(direct_match_cnt) || ' direct matches out of ' || (select count(*) from input_parameters) match
      from  (
             select  b.profile_id,
                     b.filter_key,
                     b.filter_value,
                     sum(case when b.filter_value = a.filter_value then 1 else 0 end) direct_match_cnt
               from  input_parameters a,
                     profile_search b
               where b.filter_key = a.filter_key
                 and (b.filter_value = a.filter_value or b.filter_value = '999')
               group by b.profile_id,
                        b.filter_key,
                        b.filter_value
            ) x
      group by profile_id
      having count(*) = (select count(*) from input_parameters)
      order by sum(direct_match_cnt) desc
    PROFILE_ID MATCH
           102 4 direct matches out of 4
           101 3 direct matches out of 4
           100 2 direct matches out of 4
    SQL> SY.

  • How to compile all package body using sqlplus ?

    hi all,
    How to compile all package body using sqlplus ?
    Please help.
    Amy

    dbms_utility.compile_schema will compile all the invalid objects in a schema, including the invalid package bodies. If you only want to compile the invalid package bodies, you could write your own dynamic SQL stored procedure to do that using the user_source view, but that's a lot more effort for a very minimal benefit.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Deleting files when installing application using package maker

    Hello,
    I have made package maker for my application. It is made such that it will be installed in Application directory.
    I want to delete directory at ~/Library/Application Support/TestApp.
    This is necessary for me, because when user install my application i need to remove all the files that my application has created.
    So, how can i use package maker to remove this files and folders if there exist?
    Thanks
    xmax

    Hi xmax
    I'm not sure I understand your meaning.
    When you drag a file (that you're going to install) into the left hand side of package maker, more options open up, including the ability to add pre and post flight scripts.
    To change what your user will see during the installation process, run Package Maker and click on Edit Interface.
    Bob

  • How can I use ebooks downloaded on my laptop to samsung galaxy S5 smartphone?

    I purchased some ebooks from BPP publications which requires Adobe Digital Editions for opening. I created the Adobe ID and downloaded the files. The publisher allows to use the product on three machines. Now I want to use the ebooks downloaded on my laptop on my Samsung Galaxy S5 phone. how can I use it?
    Please help

    I have the same problem, just a chequered screen for me as well.
    I have an early 2011 MacBook Pro &amp; an Apple TV 3 so hardware is ok.
    You'd think using an Apple app with the latest kit would'nt throw up any problems.
    Any ideas anyone?

  • How can i use passbook in romania?

    How can i use passbook in romania?
    when i open the app and i touch app store, something is loading and aftept waiting 10 minutes is still loading...
    how can i use it?
    please help me
    iPhone 4s I.O.S 6

    Re the Canvas window ... before exporting your sequence, rendering, etc it should be set to Fit to Window, this can avoid problems
    In FCE you can't set your own default transition. It is always the Cross Dissolve. If that is the one you want to use, when you drop your pics onto the timeline you can drag them over to Overwrite with Transition or hit Shift-F10. If you want to use multiple occurances of another trans, apply it once, double click to put it in the Viewer then just drop that down onto your clips
    I haven't used Aperture but I think that how they appear in the timeline depends upon the size they are created in. Search this forum, there is plenty of info about that. Generally Final Cut sizes the pics to fit into your video sequence. Put a pic in the timeline, click it, select Edit>Remove Attributes and from the submenu select Motion, see what happens

  • Hi, I have a mac ios x 10.7.5, how can I use imessage?

    Hi, I have a mac ios x 10.7.5, how can I use imessage? please help me

    Hi paoalvarez,
    iMessage is only available with OSX Mountain Lion. It is not available in Lion.
    Cheers,
    GB

  • What is Extension Manager and what/how do you use it?

    What is Extension Manager an how do you use it?

    Please refer to http://helpx.adobe.com/extension-manager/topics/extensions.html.

  • Please tell how to use package and import?

    Hi,
    My classes are in different packages
    for eg
    package manage.ui
    package manage.data
    package manage.layer
    if I try to import
    import manage.layer.*;
    in a class in manage.ui
    it shows
    package manage.layer does not exist
    Please help to find the problem?????

    Are your classes placed in a folder stucture that mirrors the package structure? So, like this:
    -manage(folder)
    --ui(subfolder of manage)
    --data(subfolder of manage)
    --layer(subfolder of manage)

  • How do I use bin variable in package without asking a user?

    hi,
    I would like to write an SQL but I want to use bind variable in package as a static without asking user? Like below?
    I would like to ask you, below there is a emp_id variable? Is this BIND variable?
    DECLARE
    bonus NUMBER(8,2);
    emp_id NUMBER(6) := 100;
    BEGIN
    SELECT salary * 0.10 INTO bonus FROM employees
    WHERE employee_id = emp_id;
    END;
    If not, like this SQL how can define a BIND variable as static inside a code? not asking a user?
    db version. 9.2.0.8
    regards and thanks

    OracleADay wrote:
    I would like to ask you, below there is a emp_id variable? Is this BIND variable?
    DECLARE
    bonus NUMBER(8,2);
    emp_id NUMBER(6) := 100;
    BEGIN
    SELECT salary * 0.10 INTO bonus FROM employees
    WHERE employee_id = emp_id;
    END;
    /In the query "SELECT salary * 0.10 INTO bonus FROM employees WHERE employee_id = emp_id" emp_id is turned into a bind variable because
    if you are coding static SQL in PL/SQL then PL/SQL wil automatically use bind variables: please read http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/overview.htm#sthref145.
    This can also be proved with SQL trace. The following code:
    alter session set sql_trace=true;
    declare
    v number;
    c number;
    begin
    select count(*) into c
    from t
    where x=v;
    end;
    show errors
    alter session set sql_trace=false;generates following raw trace file section with 10G XE:
    =====================
    PARSING IN CURSOR #2 len=79 dep=0 uid=69 oct=47 lid=69 tim=33338762257 hv=2860574766 ad='3c10120c'
    declare
    v number;
    c number;
    begin
    select count(*) into c
    from t
    where x=v;
    end;
    END OF STMT
    PARSE #2:c=46800,e=329811,p=0,cr=9,cu=0,mis=1,r=0,dep=0,og=1,tim=33338762253
    =====================
    PARSING IN CURSOR #1 len=35 dep=1 uid=69 oct=3 lid=69 tim=33338788761 hv=3539261652 ad='3c10053c'
    SELECT COUNT(*) FROM T WHERE X=:B1
    END OF STMT
    PARSE #1:c=0,e=216,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=1,tim=33338788755
    =====================Edited by: P. Forstmann on 17 mai 2011 17:47
    Edited by: P. Forstmann on 17 mai 2011 17:55

  • How can I use 3D function in Photoshop CS6 (student package)?

    Please let me know how can I use 3D function in Photoshop CS6 (student package)?
    Thanks,

    Thanks so much for your helpful reply.
    Now I' ve already installed Adobe Creative Suite 6 Production Premium (Student Package), Extended included. But when I open Photoshop CS6, there' s still no 3D function in menu bar.
    Would you please tell me how to activate this function?
    Thanks,

  • How to make use of 32bit packages on Arch64

    Hello everyone, I recently installed arch 64bit which was not yet fully tweaked to suit my needs. 
    My 32bit version has some nice apps and I would like to know how to make use of them or even reuse them so that I won't download things anymore because I have a slow internet connection...:)
    Arch x86_64 / XFCE4
    Thanks in advance
    Last edited by kaola_linux (2008-12-09 15:24:36)

    kaola_linux wrote:
    Hello everyone, I recently installed arch 64bit which was not yet fully tweaked to suit my needs. 
    My 32bit version has some nice apps and I would like to know how to make use of them or even reuse them so that I won't download things anymore because I have a slow internet connection...:)
    Arch x86_64 / XFCE4
    Thanks in advance
    You can reuse the packages in /var/cache/pacman/pkg/ on your  Arch32.
    You can use these saved packages in a 32bit chroot ENV on your Arch64. Just pacman -U all of them.

  • How can we use the same package in our report used by some other report

    how can we use the same package in our report used by some other report

    Hi,
    You just need to assign package while saving your report.
    No extra is required providing you are aware of package to be used.

Maybe you are looking for

  • Videos on my macbook pro won't play sound after apple tv was installed in the house

    Hi! Need some help... for christmas my dad received the little black Apple TV device to watch videos on our big tv from his iPad. After it was installed no sound came from my macbook, it instead comes out of the tv speakers. When dad is airplaying a

  • App crash when using JAVA callbacks from native threads in solaris

    Hi all, Sorry for putting the thread here. I did use the native methods forum, I wasnt lucky. I Hope more people would look into this forum, which brings me here. I have a solaris application which crashes when I try to callback the JAVA methods and

  • Airport Base Station not showing up and network disappeared

    I only use Airport Express to stream music from iTunes to my stereo speakers.  It had been working just fine until a couple of weeks ago.  Now, it appears that the base station cannot connect to my network, and I can't even find my network.  When I c

  • Double tap to open doesn't work

    I've been using OS X for some time. When I double tapped (double clicked/pressed return) it used to open file in finder but this function suddenly disappeared. I cannot neither open song in itunes by tapping on it. Do you have any idea how to reactiv

  • IPhoto videos seem to hang iMovie for 10-15 minutes

    When I first launch iMovie and click into the iPhoto Videos in the Events Library the app hangs for around ten minutes. After that it seems to work normally. Non-iPhoto videos do not cause this problem. Any ideas?