Importing packages from other projects

Hey Folks,
I have an abstract class in one project called Test, and I want a class in project Test2 to extend it. How do I figure out the proper name of the package that the abstract class is in to import it into the second project?
Thanks,
Tav

so the problem I have now (i am using NetBeans, and included the other project in my libraries) is this:
It is claiming that i am not overriding the abstract method getRandomNumbers() when i clearly am.
public class MyRandom2 extends AbstractRandom {
    private int[] results;
    private static final int A = 48271;
    private static final int M = 2147483647;
    private static final int Q = M / A;
    private static final int R = M % A;
    private int state;
    MyRandom2()
       state = (int)System.currentTimeMillis()%A;
       results = new int[5];
       for(int a = 0; a < results.length; a++)
           if(state%2 == 0)
              results[a] = nextInt();
           else
              results[a] = -nextInt();
    private int nextInt()
        int tmpState = A * ( state % Q ) - R * ( state / Q );
        if( tmpState >= 0 )
            state = tmpState;
        else
            state = tmpState + M;
        return state;
    int [] getRandomNumbers()
        return results;
}any ideas?

Similar Messages

  • Import package from one project into another

    Hello everyone,
    I have some projects.
    An enterprise and war project created in netbeans.
    I would like to use some files from one project to another. when I import
    the package I get the error-
    'package x does not exist'
    I have added the package to the project but I still get the error.
    I have also added the project to import to my glasspath but still.
    E.g.
    set classpath
    .;c:\enterpriseA;
    My next idea is to create a war project into my enterprise project and copy the files
    from the war project into it in order to use it. But I'm sure there is a better way.
    THanking you in advance.
    eve
    Edited by: evepokua on Nov 22, 2009 1:44 PM

    One mistake I keep making is that I don't add the package to the
    Dependencies of the plugin I'm writing. You have to go to plugin.xml,
    and add the package you depend on to the Dependencies section. Maybe you
    didn't do this?
    Michael
    nasti wrote:
    > Hello everybody!
    > I am new user of osgi and eclipse. I tried to do some of Oscar examples
    > but I had some problems. Namely, the problem in import of package from
    > one project into another in Eclipse.
    > I add first project to the Build Path of the second one.
    > I add to the first project manifest line: Export-Package example2.service.
    > I add to the second project manifest line: Import-Package example2.service.
    > But when I tried to execute these bundles the
    > java.lang.NoClassDefFoundError was occurred. May be you will help me
    > with this problem.
    > Thanks....
    >
    >

  • Importing Slides from other Project

    Hi,
    I am trying to import a few slides from an existing project
    and the application stalls on me. (not responding) I tried it
    numerous times - same result. Is there a way around this problem???
    Thanks
    Trudy
    Canada

    Hi folks and welcome to our community
    Instead of Importing, have you tried opening a second
    instance of Captivate that has the project you want the slides from
    and copying the slides to the Windows Clipboard? You then paste
    into the destination project.
    Give that a go and see if it works somewhat better.
    Cheers... Rick

  • Import video clip from other project

    How to get video clip from other project?
    I have been saving all the clips into one huge project and I think it is time to divide them into different projects.
    Also, how do I know if the project would fit into one DVD when I burn it?
    Your help is greatly appreciated.
    Thank you,
    Karen

    You need iDVD for that.
    See the iMovie tutorials (in html and QT movie form) at:
    http://www.apple.com/support/imovie/
    (Scroll down a bit)
    See the iMovie tutorials (in pdf form) at:
    http://manuals.info.apple.com/en/iMovieAtAGlance.pdf
    http://manuals.info.apple.com/en/iMovieHDGettingStarted.pdf
    http://manuals.info.apple.com/en/iMovieLesson1.pdf
    http://manuals.info.apple.com/en/iMovieLesson2.pdf
    http://manuals.info.apple.com/en/iMovieLesson3.pdf
    http://manuals.info.apple.com/en/iMovieLesson4.pdf
    http://manuals.info.apple.com/en/iMovieLesson5.pdf
    http://manuals.info.apple.com/en/iMovieLesson6.pdf
    http://manuals.info.apple.com/en/iMovieLesson7.pdf
    See the iDVD tutorial at:
    http://manuals.info.apple.com/en/iDVDAtAGlance.pdf
    http://manuals.info.apple.com/en/iDVD5GettingStarted.pdf
    http://manuals.info.apple.com/en/iDVDTutorial.pdf

  • Button Actions are not working -invoking task flow from other project regio

    Hi
    I have a project using a mani.jspx file having a regions and the region is updated with different views based on a router condition in my bounded task flow. Everything working fine with in the project. I have a seperate project in my application having an index.jspx and region in it. I created the ADF lib jar file of the first project and imported to this project. I could invoke the task flow in the first project to the region in the index.jspx file in the seconed project.But none of the action managed bean method attached to the buttons in this view are working.The methods are not getting called on clicking on button and no error in the backend console of Integrated weblogic server.Any body can help what could be the issue ?
    Thanks
    Suneesh

    The issue that is happening when I refreshed the region with task flow from the project I imported.If I load the taskflow from the imported project on first time rendering all my managed bean actions are executing but if I load a different flow initially and change the taskflow Id imported from other project none of the managed actions are working.
    Thanks
    Suneesh

  • Import task from ms project to special sharepoint list

    Hi
    Can I import task from ms project to special sharepoint list not to sharepoint task list?
    Thanks.

    From what I understand, it has to be a task list:
    http://office.microsoft.com/en-001/project-help/sync-with-a-sharepoint-tasks-list-HA102828524.aspx
    The default columns that automatically sync are Task Name, Start Date, Finish Date, % Complete, Assigned To, and Predecessors.  If you want to map additional columns, check out this article: 
    http://support.microsoft.com/kb/2876901
    kashif

  • Importing package from ecc5.0 to 4.6c - gui not getting imported????

    Hi,
    We are importing package from ecc5.0 to 4.6c, but  gui is not getting imported. Please advice.....
    Thanks for your help in advance.
    Thanks,
    Sheel

    Hi Sheel,
    Have you looked through SAP Note 330367 and what is the error you are getting? Are you going from a unicode box to a non-unicode box (SAP Note 638357 discusses the requirements for this)?
    Generally, you can move everything from the ECC 5.0 box to the 4.6 box except for some CUA interfaces (you might see an error concerning EUDB table entries on the transport log). First you will want to update the transport programs (including tp) and then make any needed changes for going from UC to NUC. Finally you will bring in the transports and transfer the CUA screens using a program called from SE38 (detailed in SAP Note 327565).
    Hope that helps!
    J. Haynes

  • How to access ejb jar in ear package from other war web package?

    How to access ejb in jar packed in ear package from other war web package?

    Typically you would just look the EJB Home up in JNDI. If you're
    looking for example code, the medrec example in WLS 8.1 or petstore has
    plenty of webapps calling EJBs.
    -- Rob
    CottonXu wrote:
    How to access ejb in jar packed in ear package from other war web package?

  • Import JSPs from one project to another (depends on or ??)

    I'd like to solve the large product problem: Broke up into several projects.
    The problem is most evident in unit testing with the internal container. Any jsp includes
    or forwards to JSP's in other projects just is not supported with local testing.
    I'd be very happy to live with the same solution I'm using for classes from other projects.
    I.E. a Project library that points to the output path of another project.
    The deployment config for project B who depends on project A's classes, includes the classes
    from A into the projB.ear.
    I can live with this. It supports use of Tester and Local running of JSPs.
    I'd like the same solution for JSPs too.
    I'm happy to forgo the URL distinction that's possible by deploying all modules to an
    external container. I'd be willing to live with all JSP's in proj A accessed as if they
    where local to proj B.
    Anybody have a solution?
    At present I'm living in HELL, with JSP src in both places. As the project grows into
    more modules, replication from A to B-->E just won't work. Plus, as JDev and SCM go,
    someone always screws up and adds these copied files to SCM and the project.
    It's currently a mess!
    Thanks, curt

    Although classes have the notion of a classpath, the HTML Root directories from several projects cannot be strung together like that. The OC4J server does not support multiple document roots for a single web module.
    There are a few possibilities for you though:
    1) Change the settings of each project so that they all point to the same HTML Root directory. In this configuration, a WAR profile in any one of the projects will deploy the entire contents of the HTML Root directory.
    2) If you can't put all the JSPs in the same HTML Root directory, formalize the boundaries between the web modules by defining a "J2EE Web Context Root" for each project according to your exact need. Then when JSPs include or forward to each other, use URIs that contain the context root as part of the URI.
    3) Keep everything in one project, but separate the JSPs into different directories. Then to get a filtered view of your JSPs in the JDev navigator. switch the navigator into "Category view" (Project | Show Categories). You can then selectively drill into a specific directory. If you select the project and then choose View | Display in New Navigator, you can get a separate navigator whose scope is narrowed onto your specific project.
    Hope that helps. If you have any specific suggestions on enhancements that would improve your productivity in this area, please let us know.

  • Using the Import utility from other users and going to a different schema

    I has a user today with rights
    Insert into XXXX.TABLE values(); Works just fine for another schema's table which has select,insert,update,delete.
    We tried to utiile the import utility from OTHER USERS
    Insert failed ORA-00942
    Do you want ot ignore all errors
    Even though we have rights to the schema under OTHER USERS.
    When connected as the owner it works fine.

    I've be trying to find a work-around to this issue & found this old post -- I'm having the same problem.
    I'm using Oracle 11g and SD 2.1.1.64.
    I have user A with a table that grants select,insert,update, and delete privs to user B. Logging into user B I, of course, can do inserts, deletes, etc. on the the table in user A's schema.
    When I use the import data feature to load data from a CSV file I can't get it to work while logged into user B. It does work fine if logged into user A. It looks like the issue may be that it doesn't put the schema prefix of "A." on the insert statements.
    Has anyone found a way to get around this issue yet?

  • How do i import contact from other sim to iphone5

    How do i import contact from other sim to iphone5

    i would suggest backing up with iTunes or iCloud. This link should help.
    http://support.apple.com/kb/ht1766

  • What does "Easily import photos from other applications" really mean?

    What does "Easily import photos from other applications" really mean in the Lightroom 4 features list? I also see it stated as "...from other software" as well. Yes, I understand the LR can import from Elements libraries but can't find any reference to other applications anywhere, not in the online help, not in the user guide, not in any videos on Adobe TV. It would be nice if LR could see into iPhoto or Aperture libraries but that doesn't appear to be the case. Is that assumption correct? What other applications can LR import from?

    Hello bbb34vball,
    Since that article didn't help, I would suggest trying the steps in this article next:
    iOS: Unable to import photos to computer - Apple Support
    If that doesn't resolve your issue, you may find more information by using another one of Apple's support resources - https://getsupport.apple.com/GetproductgroupList.action.
    Regards,
    Jeff D. 

  • Importing clips from iMovie project (they keep ending up in the trash)

    I have never tried to import other clips from another iMovie project before and I just tried it yesterday. This is what I did:
    -I went into the other project and clicked on each individual clip from that project that I wanted (one at a time).
    -I copied that clip and then saved it to the desktop
    -From there I copied those clips to my external drive (which holds the new project that I am working on
    -I then opened up the new project in iMovie
    -I went to File<Import
    -I selected the clips that I had copied over to the external drive
    -I imported them
    -They all showed up fine, they played fine and I was able to edit them and put them into the time line as well
    The problem I face though is after I save the project and exit, the next time I open the project, each of those clips are missing and have been placed in the trash
    What am I doing wrong?
    Thanks ahead of time for your help!

    It sounds like something may be preventing iMovie from properly saving the project on the external drive. The drive format may be wrong, or third-party software might be causing conflicts. More here:
    http://discussions.apple.com/message.jspa?messageID=1852869#1852869
    Another possibility is that you are opening the wrong project file saved inside the iMovie 5 project. If your project was originally an iMovie 4 project converted to iMovie 5 that's an easy mistake to make. More here:
    http://discussions.apple.com/click.jspa?searchID=-1&messageID=1971832
    Note that the copy/export/import routine you used can be simplified enormously. iMovie 5 lets us Copy and Paste clips much more simply. To copy clips from Project A to Project B, open Project A, select all the clips you want copied to Project B, choose Edit > Copy, open Project B, move the playhead where you want to place the clips, and Paste. iMovie will import all the files that support those clips from Project A to Project B. Note that it imports the entire file for the clip, not just the clip itself. That's so the clip inherits all the non-destructive editing features it had in Project A.
    To avoid Project B becoming unnecessarily large, it's important to Copy and Paste all the clips you want together. If you copy two clips at the same time that share the same file iMovie imports their source file just one time. But if you Copy and Paste two clips that share the same source file separately, iMovie imports the same file twice.
    Karl

  • Import grades from another project

    Well, I've battled with this for a year now and here's the result – a simple AppleScript app to let you import grades and geometry from one project (or part of a project) into another for that big weekend render. Run it from the desktop, Dock or stick it in the Script menu. No more three-hourly feeds!
    It's here, it's free.

    Fearless,
    Pardon my ignorance on this, ( I have only been playin with color for a couple of weeks), but from what I have experienced is that I can work on a project, and in the setup room, under the grades tab, I can save the current grade that I'm on. Then in a new project I can import that grade and apply that to any clips that I choose in my timeline.
    I dont have any experience with trying it on geometry though. Again still in the learning part of this app, I guess I'm just looking at when your script would be needed.
    Its great to have an asset like you in the community, thank you for posting this free script. And any advice you have is appreciated!
    sz

  • Importing package from ext folder

    hello ,
    i am learning java and try to import packages ,
    now here is problem i am facing:-
    i made two files as follows :-
    1. package mypack1;
    public class Protection1{
    public void show(){
    System.out.println("i am in class Protection1");
    2. package mypack2;
    public class Protection2{
    public void show(){
    System.out.println("i am in class Protection2");
    now i made following class to import packages
    import mypack1.*;
    import mypack2.*;
    class Trial{
    public static void main (String args[]){
    System.out.println("trial class");
    mypack2.Protection2 ob2=new mypack2.Protection2();
    mypack1.Protection1 ob1=new mypack1.Protection1();
    ob2.show();
    ob1.show();
    my problem is class Trial is running fine when packages are in same directory with the file Trial.java .
    but when i try to create a jar file and store that file in ext folder so that i can import these packages from anywhere .no error comes at comilation time butwhen i try to run program it shows error the class mypack1/Protection1 can not be found and same for class Protection2 . i know that there is no problem in creating jar files.
    please help me to find out solution.
    thanks

    >
    but when i try to create a jar file and store that file in ext folder so that i can import these packages from anywhere .no error comes at comilation time butwhen i try to run program it shows error the class mypack1/Protection1 can not be found and same for class Protection2 . i know that there is no problem in creating jar files.I think problem here is you've to put the jar file in your classpath, and then you've to import the classname. it's something like import mypack1.*;can you post me the code. which u've used after creating the jar. and check whether the class files are there in your jar file are not. i mean open the jar with winzip/winrar and chech whether the .class files are there are not.
    Diablo

Maybe you are looking for