Compiling two packages referenced to each other

I've got two Packages named PackageA and PackageB from other developer
PackageB imports a class from PackageA as
import PackageA.class1;
PackageA imports all classes from PackageB as
import PackageB.*;
My questions are:
1. Is it allowed in Java?
2. How do I compile these packages? Here is what I tried. I wrote a Ant Script to compile I couldn't compile succefully. Then I tried to compile manually by compiling first Class1 from PackageA, followed by PackageB and then came back to compile remaining classes in PackageA. The compilation was successful. But what I don't understand is how it compiled successfully in the command prompt.
Any help would be appreciated
thanks

Probably the classpath setting wasn't correct, so the "other" class couldn't be found. See How Classes are Found, http://java.sun.com/j2se/1.4.1/docs/tooldocs/findingclasses.html

Similar Messages

  • I have a new Macbook Pro - trying to migrate files etc from my Macbook Air using a Thunderbolt Cable between the two.  I follow the directions but the two computers never "discover" each other.  WiFi connect works but 70 hours is a rough deal.

    I have a new Macbook Pro.  Trying to migrate files etc from my Macbook Air using a Thunderbolt Cable between them.
    I follow the directions but the two computers never "discover" each other - using a WiFi connection works but 70 hours is a rough deal.
    (Mac OS 10.8.2 on both computers)

    Are you trying target disk mode?
    http://support.apple.com/kb/PH10725
    Ciao

  • HT3263 I am trying to transfer files from my MacBook Pro (using Mac OSX 10.6.8) to MacBook Air (Mac OSX 10.7.4) using Migration Assist via WiFi connection.  The two macs cannot find each other.  any suggestions

    I am trying to transfer files from my MacBook Pro (using Mac OSX 10.6.8) to MacBook Air (Mac OSX 10.7.4) using Migration Assist via WiFi connection.  The two macs cannot find each other.  any suggestions

    Try this article - http://support.apple.com/kb/HT4889.
    If it doesn't help, post back in this thread.
    Best of luck,
    Clinton

  • Can two RMI Servers talk each other

    Can two RMI Servers talk each other ?
    For it to happen, does one of them be dependent on another ?

    1. Absolutely.
    2. No

  • Two sessions are blocked each other in

    Hi All,
    My database is Exadata machine. 11.2
    These days we encountered one case, that is two sessions are always blocked by each other. I get this info from v$session blocking_session.
    For examle, the information looks like
    sid blocking_session event
    1 2 libarary cache lock
    2 1 row cache lock
    and as you know there are many other sessions are blocked by sid 1.
    By lookiing up v$sql, I got the sql for these 2 sessions.
    /* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_TEMP_MV" COMPILE
    /* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_MV" COMPILE
    Both of these 2 MV share some underlying objects. And both of the 2 sessions started at the same time roughly.
    If the compilation incurs the lock on the object, why the 2 sessions block each other?
    Can someone give me some tips,please?
    Best regards,
    Leon

    Leon,
    sid blocking_session event
    1 2 libarary cache lock
    2 1 row cache lockYou are saying that above situation does not cause a deadlock error to be generated in either one of those two sessions?
    /* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_TEMP_MV" COMPILE
    /* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_MV" COMPILEThese to me look like programmed 'ALTER SUMMARY' commands (the comment in front of the statement seems to indicate so). It's the application that's doing this right?
    - Can you reproduce this with two sqlplus sessions?
    - Why is the application compiling the MV's? Are underlying objects being altered frequently?
    - Should the application not just be 'refreshing' the MV's instead of compiling them?
    Just some thoughts.
    Toon
    Edit:
    Dom's right. The alter summary statements seem to be Oracle internal calls generated by DBMS_MVIEW.REFRESH executions.
    Edited by: Toon Koppelaars on Nov 24, 2011 10:41 AM

  • How to print two tables adjacent to each other?

    Hi,
    Scenario
    I have a form with a body page and two tables. The property of the body page is set to 'Flowed', 'top to bottom' as flow direction and the check box for page break is set.
    Requirement
    The two tables need to be printed adjacent to each other.
    Approach followed until now
    1. Since the body page is 'Flowed' type, the two tables are placed one below the other (Tab1 & Tab2). So I tried to set the Flow direction of the Body page to 'Western text'. But this did not solve the issue as since it is set to 'western text', only after Tab1 is rendered, table Tab2 starts printing itself, which is not desired. Both the tables should be printed at the same time.
    2. I wrapped both the tables in one sub form with 'Type' set to 'Positioned' and set the check box for page break. Now I arranged the tables adjacent to each other. But the check box for page break for both the tables were disabled and because of this if there is not enough space to print the total records of both the tables, the complete tables is shifted to another page leaving the previous page blank.
    Kindly suggest how to resolve this issue.
    Regards
    s@k

    Dear Andres,
    I tried as per you suggestion and it works fine. Thanks a lot.
    Now adding to this, I am trying to print the 'formatted text'. The tables have two columns. the first column is a normal field and the second column is table having the 'formatted text'.
    As per your suggestion, I concatenated the two tables in one table. So the final table has 2 normal fields and 2 tables.
    Final table structure:
    Column1      Column2(Table)             Blank             Column3          Column4(Table)
    Settings maintained:
    I have set the 'Body' row of the table to 'Flowed' with direction as 'Western text' (Top to bottom does not help ).
    The settings for Column 2 & 4 (tables) are maintained as:
    1. The Table is set to 'Flowed' with direction 'Top to Bottom'.
    2. The body row is 'Flowed' with direction 'Western Text'
    (The Border 'Edges' for the tables, columns is maintained as 'None')
    Issue:
    The sample data has around 10 entries in the (final)  table. When I try to print the form, if column2(table) is initial, the data in Column3 and 4 are shifted towards Left hand side.
    Kindly suggest how to resolve this issue.
    Regards
    s@k

  • Delete masterdata from two infoobjects which have each other as attribut

    Hello,
    we have the infoobject 0BPARTNER und 0CUSTOMER which have each other within as an attribut.
    0BPARTNER
       Attribute 0CUSTOMER
    0CUSTOMER
       Attribute 0BPARTNER
    Now we want to delete the master data from both of them. But it's not possible the delete in RSA1because of the assignment to each other.
    Can you help me?
    Best regards
    Stefan

    Hi Stefan:
      Do you want to delete ALL the Master Data records from the 2 InfoObjects? In case you need to do this on your DEVELOPMENT environment, then you could use Tcode SE14 to delete the CONTENTS from the SID table, Master Data Table, etc., please be aware that you need to use Tcode SE14 very carefully, because you could also delete the physical tables and not only the contents.
    *Important: Also note that it is not recommended to use SE14 on your PRODUCTION environment, unless you perfectly understand the implications (you would need to reload your DSOs or Cubes).
    Regards,
    Francisco Milán.
    Edited by: Francisco Milan on Jun 15, 2010 10:48 AM

  • How to restrict two employees from viewing each others' activities in a particular account?

    Dear Experts,
    I have a scenario here and request your kind input to bring a solution to it.
    I have two sales org. in one company. One is SO1 and other one is SO2. I want to restrict the sales employee of SO1 and SO2. Both of them are working in the same national account. I don’t want the SO1 sales employee to see what the SO2 sales employee does in that particular account; and the vice versa. So, it’s just restricting the view of particular account for both of them. Is it possible in CRM? If yes, how do you do that?
    Looking forward to the right solution.
    Thanks & Regards,
    SMTP

    Hi SMTP,
    This can be done by using authorization profiles. Here we need to crete two Authorization objects separately such a way that each of them should be allowed to one sales organization. And then assign these Authorization objects to users, based on their sales organization(Your requirement).
    You need to reach your Basis Consultant and explain the scenario.Basis people can easily do this.
    Thanks & Regards
    Ravi

  • HT1660 if i create a copy in mp3 format in itunes from the mp4 music i already have in itunes it puts both formats in the same file is there a way of seperating the two formated albums from each other completely but keep them in itunes

    HAVE CONVERTED MY ITUNES MUSIC INTO A SECOND FORMAT OF MP3. WHEN I DID THIS IT COPIES THE MP3 FORMAT DIRECTLY INTO THE SAME FILE. THEN IT SHOWS TWO OF EACH SONG IN THE MUSIC FILE IN MP3 AND MP4. WOULD LOVE TO SEPERATE THEM INTO DIFFERENT FILES LIKE WINDOWS MEDIA PLAYER DOES WITH WMA AND MP4 IT CREATES A SEPERATE FILE FOR THE MP4 FILE DIRECTLY IN THE WMP MUSIC FOLDER THAT YOU CAN CLICK ON. QUESTION IS CAN IT BE DONE IN ITUNES IS THERE SOMETHING I CAN CLICK ON IN ITUNES THAT WILL SEPERATE THESE TWO FORMATS FROM EACH SO IT WILL BE EASIER FOR ME TO PICK WHEN NEEDED WHICH ONE I NEED WITHOUT DOING IT ONE SONG AT A TIME. THANKS PLEASE HELP!!!

    Select the Songs view. Use the Search window to display the tracks from the album. Turn on the Kind column and sort on it. Give each version of the album a distinct title. E.g. Album [AAC] and Album [MP3].
    See Grouping tracks into albums for tips on iTunes organization.
    tt2

  • Assigning two dimensional array to each other

    Hi All,
    I have two two-dimensional arrays and I want to assign one's second dimension's values as the other's second dimension's values in this way:
            int userCounter = 0;
            for (int userID : mostCommonUsers) {
                reducedTrainingVectorForSimilarity[userCounter] = trainingVectorForSimilarity[userID];
                userCounter++;
            }In the above code, I have an *"ArrayList<Integer> mostCommonUsers"*, and iterate through this. I'm using the values inside this array list, as a first dimension's index number of the *"trainingVectorForSimilarity"*, and assigning all the values in the second dimension to the left-hand-side array's second dimension. Both array has fixed length of second dimension. So, am I right by doing this, or I should make a for-loop to iterate over the individual values on the second dimensions of both arrays?
    Another similar question: In the below code, *"trainingVectorForSimilarity"* is an *"float[][]"*, so basically I assign all the second dimensions' values into a newly created array named *"trainingUserRatings"*. Again, I assumed that if the corresponding first dimesion's second dimension values will be assign without any iteration over each values.
    for (int i = 0; i < trainingVectorForSimilarity.length; i++) {
                float[] trainingUserRatings = trainingVectorForSimilarity;
    similarity[i] = calculateCosineSimilarity(testingVectorForSimilarity, trainingUserRatings);
    Am I right for both cases?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Here is the output for the code that you sent:
    [[1, 2, 3], [4, 5, 6]]
    [[1, 2, 3], [4, 5, 6]]
    [[1, 2, 3], [4, 5, 6]]
    [[1, 2, 3], [4, 5, 6]]
    [[1, 2, 3], [4, 999999, 6]]
    [[1, 2, 3], [4, 999999, 6]]
    [[1, 2, 3], [4, 999999, 6]]
    [[1, 2, 3], [4, 5, 6]]
    [null, [4, 999999, 6]]
    [null, [4, 999999, 6]]
    [[1, 2, 3], [4, 999999, 6]]
    [[1, 2, 3], [4, 5, 6]]I confused that even making an array copy still refers the same object but not a copy of that object. For example:
    float[][] trainingVectorForSimilarity is defined and initialized.
                float[] trainingUserRatings = new float[trainingVectorForSimilarity.length];
    trainingUserRatings = trainingVectorForSimilarity[i];
    is the same withfloat[] trainingUserRatings = new float[trainingVectorForSimilarity[i].length];
    System.arraycopy(trainingVectorForSimilarity[i], 0, trainingUserRatings, 0, trainingUserRatings.length);

  • Compare two dropdownlists values with each other!!!!!!

    Hi ,
    I have two dropdown s with some values i want to compare two dropdowns values. I have java script on the click event of the button it will compare values of drodpowns. If any redundant/duplicate value found then those values need to be deleted from the second dropdown.
    function dummy()
    var dd1=xfa.resolveNode(form1.Page1.State.somExpression);       //path to first dropdown
    var dd2 = xfa.resolveNode(form1.Page1.Dummy.somExpression);  //path to second dropdown
    var i =0;
    var j=0;
    if(State.length!= 0)//State is first dropdown
         for (;i<dd1.length;i++)
              for(;j<dd2.length;j++)
                   if(dd1.getDisplayItem(i)==dd2.getDisplayItem(j))
                       dd2.deleteItem(j);   //deleting the value from second dropdown.
                        break;
                   else
                        continue;
    But this function is not working properly it is taking first value of the DD1 and comapring with all the values of DD2 and coming out of the loop .There are other values in the DD1.So for that comapring is not happening.
    Please help me !!!
    Thanks in advance,
    Bharathi.

    Hi,
    You just need to re-initialise the j variable each time though the i loop.  As you have it the second time around j will already be equal to dd2.length so will skip the inner loop.
    try
    for(var j=0;j<dd2.length;j++)
    Regards
    Bruce

  • How does two ERP systems of two different release communicate each other?

    Dear Experts,
    i have a query regarding the communication method between two ERP Systems of different releases.
    for example ECC6.0 and ECC4.7, how do i do the integration to make the communication happen?
    Regards,
    Binod Sahu

    Hi,
    You can use RFC for communication any version of SAP.
    This is good and easy.
    Regards,
    Anil

  • 2 files in same package and depends each other need import package??

    test1.java and test2.java are in the same package mypackage,
    and test1.java will call methods in test2.java, does it mean
    test1.java needs to import mypackage.test2;
    i.e.
    //test1.java
    package mypackage;
    import mypackage.test2;
    class test1
    }

    no, once classes are in the same packages they are picked up ie tc1 is in tc_package and tc2 is also in tc_package, tc1 need not import tc_package.tc2 to use tc2 methods.
    /Paul

  • Two wireless connect to each other but not the hardwire

    Hello all, I have a wrk54G with Firmware 1.55.02 and two wireless access points. The two wireless access points I've been able to set up to share files just fine.
    The trouble comes when I try to bring in the computer that is hard wired to the router. It can see the two other computer but when I try to access them, the system says they are not there.
    I'm new to all of this and I feel like I've been going around in circles.
    I've read and printed out all of the material that I can find on this, from here as well as Microsoft, so I know that I have all of the needed protocols loaded and the proper connections made.
    Any thoughts?????
    Thanks

    have you tried disabling the firewall or antivirus on that specific computer first to see if that is what's causing the problems... it may be blocking your PC to be seen on the network
    "a helping hand in a community makes the world a universe"

  • Acrobat search. Two words close to each other.

    Hello.
    I recently bought Adobe Acrobat XI Pro.
    I am a college student so I frequently need to search large volumes of text for a specific keyword.
    How do I tell my Advanced Search to look for text if the distance between two keywords doesn't exceed some number of symbols or words?
    Lets say I want to find the word "Blood" in the same sentance as the word "Pressure" but not "Blood Pressure". How do I tell my search program to find that?
    In Microsoft Word, there is a feature I am talking about. See micture included.
    Those search commands are called commands, tokens or something of that nature. I forgot.
    This feature existed in some programs since the days of DOS as I remember.
    So how do I use this feature in Adobe Acrobat XI Pro ?
    Where may I find a full list of those search operators?
    Thank you.

    That isn't possible in exactly the way you describe - Acrobat has no regexp-driven search feature.
    Acrobat's Advanced Search feature has a 'proximity' option to match two or more words separated by up to a maximum number of words (which is set on the application preferences) but it will also match adjacent words, and can only be run against multiple files (not against the current document). Neither can you filter the search results using another set of rules.

Maybe you are looking for