EJB DC, where to put other public java classes?

I'm wondering what the best way to structure my code is, in this context:
I have an EJB DC that utilizes some custom Java classes that need to be available to clients.  For example, the business methods in the EJB may return instances of said custom code classes. 
By default, the EJB DC contains a compilation public part called 'client', but you can't add any other entities to it, as you'll remove the default entity.  I could manually create the entities in the public part, but I think when I add another EJB to the DC, it will overwrite the entities that I've created....either that, I'm messing with the default config, something I'm not interested in doing. In fact, this [page indicates that you should NOT alter the generated PPs:
http://help.sap.com/saphelp_nw2004s/helpdata/en/02/6755bd296ade42931646f869b1fd15/frameset.htm
So, what's the best way to handle this situation?  I can create another public part, but that means that when someone wants to use the EJB's, they have to create two usage relationships - one to the EJB, and one to the PP that contains the helper classes.  I think that this is the only way to do it, however.
How have other folks handled this common situation?

Hi Ken,
I think you've found it.
I'm not so sure about DC projects, but in the plain J2EE case I would recommend to put all common (public) classes in a separate component (application library) and make references to it both from the EJB application as well as from its clients. This library would also contain the EJB interfaces, so there would not be a need for direct reference from the clients to the EJB application.
I think with DC public parts you are achieving almost the same.
Cheers,
Vladimir
PS: BTW, probably you would be able to get more thoughts on this in the SAP NetWeaver Development Infrastructure (NWDI) forum.
Message was edited by:
        Vladimir Pavlov

Similar Messages

  • Where I can find the java class about xml

    I need transfer a xml file to oracle use Java. I find a Java program can do it, but the java progran need a class(oracle.xml.sql.dml.*) and I don't find it.
    I use Kawa 4.01a and Java 1.3.
    I need people tell me where I can find the class.
    Thanks
    Chih-Ping Yang

    Go to: http://technet.oracle.com/tech/xml/oracle_xsu/
    Select [Software] from the tab on the top
    and download OracleXML SQL Utility.
    If you're using Oracle8.1.5, download version
    111. If using Oracle8.1.6, download XSU12.
    Unzip the archive file.
    Under the lib directory, there should be
    a jar file. This jar file contains the class
    you're looking for.
    You do not need to unzip this file. Just set
    it in your CLASSPATH.

  • Importing other package java classes

    I am doing a webapp using Tomcat .I have some classes which i want to use in another webapp.I did set the PATH variable to point to the my first webapp classes directory .But it is still not bale to locate the classes.
    Does anyone have any idea.

    Learn how the Tomcat class loaders work and how to deploy Web apps properly.
    PATH doesn't affect Java at all. That's an OS environment variable. If you meant CLASSPATH, that'll do you no good, either, because Tomcat ignores any CLASSPATH environment variable.
    Read up on the Tomcat CLASSPATH. It's important.
    If you want both apps to use those .class files you have a few alternatives:
    (1) Put those classes in a JAR file and put that in the TOMCAT_HOME/common/lib directory.
    (2) Put those classes in a JAR file and put copies in the WEB-INF/lib directory for both apps.
    (3) Copy those .class files into the WEB-INF/classes directory for both apps.
    I'd prefer (2) myself.

  • Where the $%^&* are the standard Java classes?

    I've loaded and run j2sdk-1_4_2_01-windows-i586.exe (I use Win 98).
    Then I tried to write my first applet, which began:
    import java.awt.Graphics;
    import java.awt.Font;
    import java.awt.Color;
    But the compiler said it could not find the Color class.
    So I looked in the installation directory and its various subdirectories and could not find Color.java or Color.class (or rather Wondows Explorer could not find them for me).
    So where the $%^&* are they supposed to be?
    If necessary how do I get them installed in the right place?

    Thanks for your initial responses, everyone. Here's the additional info some of you requested.
    I installed the SDK in directory C:\j2sdk1.4.2 in case I ever want to experiment with another version.
    I have not modified any MS-DOS environment variables - as far as I'm concerned this is the installer's responsibility and every other product I've ever installed has handled this - sound cards, CD readers, software, whatever.
    Directory C:\j2sdk1.4.2 contains file src.zip and WinZip (6.3, so AFAIK it handles long file names OK) tells me src.zip contains a vast collection of files - some look relevant to my current requirements (e.g. those with path java\applet and java\awt) and others not so relevent to my requirements.
    abramia is right, I used the Gel IDE (http://www.gexperts.com/). I've set the project properties as follows in Gel:
    Libraries:
    * Basic Java libraries
    Source paths:
    * Where I keep my own source code - no problem, javac is finding the applet code OK.
    * C:\j2sdk1.4.2 (where I installed the SDK).
    Command line generated by the "compile" menu option - too long to copy & paste!
    Output path: I'll worry about this when I get a clean compile. I used the same procedure as when I set the 1st source path, so I don't expect problems.
    So can anyone help me now with this additional info? Or is there any other info I need to supply?

  • Where find java classes corresponding to message mapping and interfaces ?

    Hi
    Forum,
    when i create my objects in Repository, like Message interface and messgae mapping, correspoding to them, java class in created,  where can i see these java classes in the XI's file system,

    Hi sudeep,
    During the installation of Xi we select a database.So all the objetcs and related things that we create in IR and ID will be saved in the database only.I dont know how to check the .class file for each object...
    Check these weblogs from sravya where she has given you the table names where the IR and ID objects are stored:
    /people/sravya.talanki2/blog/2007/01/11/ripping-off-sap-xi-stack-133sharing-the-goodies-of-abap-api146s
    /people/sravya.talanki2/blog/2005/12/02/sxicache--ripped-off
    /people/sravya.talanki2/blog/2006/12/28/skelton-of-mapping-runtime-in-sap-xi
    regards
    BILL

  • {@inheritDoc} not working for Java Classes

    Hello,
    i am using {@inheritDoc} for inherting super class's JavaDoc for a perticular function..
    It is working, if super class is my own class. i am able to see all JavaDoc in child class.
    But when i use {@inheritDoc} for extending JavaDoc of java class it is not working.
    i.e. if i am writing {@inheritDoc} in public void actionPerformed(ActionEvent e) method..
    It wont show any javadoc..
    How to add it? Do i need to give source of java classes too???
    And if it is Yes, then where to specifiy. and where to find source of Java classes, do they come with JDK? or NetBeans?? (If yes then where it is in JDK or Netbeans???)
    Thanks,
    Nachiket.

    Yes, you need to have the Java source, with the -sourcepath option, as described here:
    Inheriting Comments from J2SE - Your code can also automatically inherit comments from interfaces and classes in the J2SE. You can do this by unzipping the src.zip file that ships with the SDK (it does not contain all source files, however), and add its path to -sourcepath. When javadoc runs on your code, it will load the doc comments from those source files as needed. For example, if a class in your code implements java.lang.Comparable, the compareTo(Object) method you implement will inherit the doc comment from java.lang.Comparable.
    http://java.sun.com/j2se/javadoc/faq/#incrementalbuild
    If you want the full Java source get it from here:
    http://www.sun.com/software/communitysource/j2se/java2/index.xml
    http://java.sun.com/j2se/javadoc/faq/#sourcecode
    -Doug

  • How to invoke a java class during UCM 10gR3 startup ?

    I am integrating AD4J (Application Diagnostic for Java) with UCM (Universal Content Management , earlier stellent) to monitor my UCM's JVM.
    This is very simple configuration where I have to add java class (jamagent.jamrun) in my UCM's startup program. This class (jamagent.jamrun) is in zip file ad4jagent.zip which I have added in classpath via intradoc.cfg
    JAVA_CLASSPATH_ad4j=$SHAREDDIR/classes/jamagent.zip
    Issue now is that I am unable to find java [content_server_startup_class] so can't add class jamagent.jamrun .
    As per my understanding : idcserver_start -> idcserver_ctr -> Launcher.sh -> Launcher (This launcher is executable)
    I am unable to understand where or how can I invoke jamagent.jamrun class with my UCM startup ?

    Java-code in a custom component could be triggering on a filter event that occurs during the startup of UCM, like extraAfterConfigInit. Would that be sufficient for loading yourAD4J?
    Other than that, it is my understanding that every jar that you put in the classes folder of UCM is loaded on startup.
    I hope this helps.
    Regards,
    Wim

  • Drop all java classes

    Hi there folks,
    I'm facing a rather nasty problem: I have deployed a number of
    java classes to the database via loadjava while the rest of the
    team were still developing away.
    To delete classes via dropjava you need the file they were
    loaded from (e.g. a .jar file). Now the .jar files have changed
    during the development and using dropjava with them will leave
    some files in the database.
    Is there a way to get rid of all classes in one scheme without
    the source files?
    TIA,
    Joerg

    list all your java classes by cursor
    select object_name from all_objects where owner='SHEMA' and
    object_type='JAVA CLASS'
    and for all object_name execute
    drop java class "object_name"

  • How to use Spatial Java Class to update spatial data?

    Hi,
    I am new to Oracle and couldn't find enough information on how to update spatial data.
    Here are my questions?
    1)Where could I find Spatial Java Class Javadoc?
    2)I'd like to update spatial data inside a ResultSet.next() loop.
    After I got the Geometry object and Point object how do I change the x and y values of Point object and save it back to the database.
    3)
    GeometryAdapter sdoAdapter = OraSpatialManager.getGeometryAdapter("SDO", "8.1.6", null, STRUCT.class, null, conn);
    Can I use the above GeometryAdapter for saving Geometry back to database?
    4)
    SpatialReference sref = srManager.retrieve(8265);
    // SRID = 8265: LAT-LON (NAD 83)
    Do I need to create a SpatialReference object and why retrieve the SRID '8256'? Do I have to create SRID '8256'?
    Thanks for any help
    Gwowen

    You can find some sample code that shows you how to do that using
    the SDOAPI java library. Look under the "Sample Code" section on
    OTN's Spatial page:
    http://otn.oracle.com/sample_code/products/spatial/content.html
    The sample file SampleNewToSDO.java is what you will need.
    hoep this helps,
    -LJ

  • Where to put EJB design patterns?

    Im considering where to put the EJB design pattern classes and files.
    i.e. Facade, Data Access Objects, Transfer Objects, Delegate...
    I was thinking since the EJB business logics and implementation should be hidden from the user, then it is more logical to place these classes at the webapp.war inside of the ejb.jar.
    What are your thoughts guys?

    Photoshop patterns and normally stored in sets the set files have an extension of .pat.  You may also add individual patterns using menu Edit>Define Pattern.  In some Photoshop Pattern dialog you will see a little gear icon to open a Fly-Out menu in that menu there is a entry for Photoshop Preset Manager.  The are also other ways to get into the Preset manager.   In the preset manager you can manage many types of presets. Using its pull-down menu select patterns.  You can Load an save patterns sets.  To save a set tou heed to hilifht the paterns yoy want to include in the set.  You can also delete and rename patterns.

  • Where to put java code - Best Practice

    Hello. I am working with the Jdeveloper 11.2.2. I am trying to figure out the best practice for where to put code. After reviewing http://docs.oracle.com/cd/E26098_01/web.1112/e16182.pdf it seemed like the application module was the preferred spot (although many of the examples in the pdf are in main methods). After coding a while though, I noticed that there were quite a few libraries imported, and wondered whether this would impact performance.
    I reviewed postings on the forum, especially Re: Access service method (client interface) programmatically . This link mentions accessing code from a backing bean -- and the gist of the recommendations seems to be to use the data control to drag it to the JSF, or use the bindings to access code.
    My interest lies in where to put java code in the first place; In the View Object, Entity Object, and Am object, backing bean.....other?
    I can outline several best guesses about where to put code and the pros and cons:
    1. In the application module
    Pros: Centralized location for code makes development and support more simple as there are not multiple access points. Much like a data control centralizes services, the application module can act as a conduit for different pieces of code you have in objects in your model.
    Cons: Everything in one place means the application module becomes bloated. I am not sure how memory works in java -- if the app module has tons of different libraries are they all called when even a simple query re-execute method is called? Memory hog?
    2. Write code in the objects it affects. If you are writing code that accesses a view object, write it in a view object. Then make it visible to the client.
    pros: The code is accessed via fewer conduits (for example, I would expect that if you call the application module from a JSF backing bean, then the application module calls the view object, you have three different pieces of code --
    conts: The code gets spread out, harder to locate etc.
    I would greatly appreciate your thoughts on the matter.
    Regards,
    Stuart
    Edited by: Stuart Fleming on May 20, 2012 5:25 AM
    Edited by: Stuart Fleming on May 20, 2012 5:27 AM

    First point here is when you say "where to put the java code" and you're referring to ADF BC, the point is you put "business logic java code" in the ADF Business Components. It's fine of course to have Java code in the ViewController layer that deals with the UI layer. Just don't put business logic in the UI layer, and don't put UI logic in the model layer. In your 2 examples you seem to be considering the ADF BC layer only, so I'll assume you mean business logic java code only.
    Meanwhile I'm not keen on the term best practice as people follow best practices without thinking, typically best practices come with conditions and people forget to apply them. Luckily you're not doing that here as you've thought through the pros and cons of each (nice work).
    Anyway, back on topic and off my soap box, as for where to put your code, my thoughts:
    1) If you only have 1 or 2 methods put it in the AppModuleImpl
    2) If you have hundreds of methods, or there's a chance #1 above will morph into #2, split the code up between the AppModuleImpl, ViewImpl and ViewRowImpls. Why? Because your AM will become overloaded with hundreds of methods making it unreadable. Instead put the code where it should logically go. Methods that work on a specific VO row go into the associated ViewRowImpl, methods that work across rows in a VO go into the ViewImpl, and methods that work across VOs in the associated AppModuleImpl.
    To be honest which you ever option you choose, one thing I do recommend as a best practice is be consistent and document the standard so your other programmers know.
    Btw there isn't an issue about loading lots of libraries/imports into a class, it has no runtime cost. However if your methods require lots of class variables, then yes this will have a memory cost.
    On a side note if you're interested in more ideas around how to build ADF apps correctly think about joining the "ADF EMG", a free online forum which discusses ADF architecture, best practices (cough), deployment architectures and more.
    Regards,
    CM.

  • Where to put jar files reachable for ejb:s?

    Hello!
    I have a ejb that use some jar files.
    But I can not figure out where to put the jar files that I use from my ejb in Weblogic 8.1.3.
    Until now I have extracted all jar files and put them inside my ejb with my own class files. But this seems odd.
    So please help me out here.
    Best regrads
    Fredrik

    Dear,
    You might have downloaded either tar.gz or zip file. when you extract this file you will find a jar file and also some demos nad docs(api+help). place the poifs api jar file in 'WEB-INF\lib" folder and restart the server.
    In general any api jar files for web applications should be placed in WEB-INF\lib folder then only they are accesible. If you extracted the jar, then place entire package structure in WEB-INF\classes directory
    Regards,
    Nishant Kulkarni
    Software Engineer
    Bangalore
    [email protected]

  • Where to put files in using runtime.exec(run.exe)?

    I try to use the following program in EJB to call my EXE program in the J2EE server:
    runtime.exec("c:\\j2ee\\public\\exe\\run.exe temp.txt");
    In the execution of mill_turn.exe, it will open several files for read and write.
    So where to put the file temp.txt and other files the run.exe need to read?
    Looks like the J2EE server can not find them?
    Thanks!

    I got it in Java SE1.4.
    File dir=new File("c:\\j2ee\\public_html\\Mill_turn\\exe\\");
    Process proc = rt.exec(cmd,null,dir);Use above codes, I really got the right output from my external program for the first time. But , after that, the output keeps same when I change the filename in the following code:
    cmd="c:\\..\\run.exe temp.prt"
    to
    cmd="c:\\..\\run.exe Abc1.prt" , which must have different output.
    The codes for calling external program are implemented in the SessionBean of J2EE.

  • Where deploy Java class in XI 3.0?

    Hi all,
      I have created a Java class for Jco connection and I have created .jar file.
    At this point where must I copy .jar file in XI server???
    And what activities must I do for using my classes with message mapping???
    Thans in advance,
          Michele.

    Michele,
    We are facing a quite similar situation with XI 3.0.  What we've found is that the only methods available for integrating Java code is either
    a) Import a JAR archive into a specific software component
    b) Create a Java proxy to a J2EE environment where you
    implement your Java as EJBs.
    We're still investigating these and other possible options.
    Perhaps you need to install your JAR archive into each of the relevant components (I'm not sure if this works.)
    Another possible alternative could be to identify where the JRE is installed on your XI server and deploy your classes in the lib extensions. (i.e. put your jar file in something like C:\j2sdk1.4.2_04\jre\lib\ext and restart the server) You should then be able to access these from anywhere, though I'm not sure what SAP would say about this solution.
    HTH,
    Patrick Parsons

  • Where to put the class?

    Ok EasyIn class can help me convert a string into an int, I will need it for this problem.
    The code for EasyIn is as follows, and i need to put it into my AirplaneListTester class, but where do I put it?
    EasyIn class
    // EasyIn.java
    import java.io.*;
    public abstract class EasyIn
    static String s = new String();
    static byte[] b = new byte[512];
    static int bytesRead = 0;
    public static String getString()
    boolean ok = false;
    while(!ok)
    try
    bytesRead = System.in.read(b);
    s = new String(b,0,bytesRead-1);
    s=s.trim();
    ok = true;
    catch(IOException e)
    System.out.println(e.getMessage());
         return s;
    public static int getInt()
    int i = 0;
    boolean ok = false;
    while(!ok)
    try
    bytesRead = System.in.read(b);
    s = new String(b,0,bytesRead-1);
    i = Integer.parseInt(s.trim());
    ok = true;
    catch(NumberFormatException e)
    System.out.println("Make sure you enter an integer");
    catch(IOException e)
    System.out.println(e.getMessage());
    return i;
    public static byte getByte()
    byte i = 0;
    boolean ok = false;
    while(!ok)
    try
    bytesRead = System.in.read(b);
    s = new String(b,0,bytesRead-1);
    i = Byte.parseByte(s.trim());
    ok = true;
    catch(NumberFormatException e)
    System.out.println("Make sure you enter a byte");
    catch(IOException e)
    System.out.println(e.getMessage());
    return i;
    public static short getShort()
    short i = 0;
    boolean ok = false;
    while(!ok)
    try
    bytesRead = System.in.read(b);
    s = new String(b,0,bytesRead-1);
    i = Short.parseShort(s.trim());
    ok = true;
    catch(NumberFormatException e)
    System.out.println("Make sure you enter a short integer");
    catch(IOException e)
    System.out.println(e.getMessage());
    return i;
    public static long getLong()
    long l = 0;
    boolean ok = false;
    while(!ok)
    try
    bytesRead = System.in.read(b);
    s = new String(b,0,bytesRead-1);
    l = Long.parseLong(s.trim());
    ok = true;
    catch(NumberFormatException e)
    System.out.println("Make surre you enter a long integer");
    catch(IOException e)
    System.out.println(e.getMessage());
    return l;
    public static double getDouble()
    double d = 0;
    boolean ok = false;
    while(!ok)
    try
    bytesRead = System.in.read(b);
    s = new String(b,0,bytesRead-1);
    d = (Double.valueOf(s.trim())).doubleValue();
    ok = true;
    catch(NumberFormatException e)
    System.out.println("Make sure you enter a decimal number");
    catch(IOException e)
    System.out.println(e.getMessage());
    return d;
    public static float getFloat()
    float f = 0;
    boolean ok = false;
    while(!ok)
    try
    bytesRead = System.in.read(b);
    s = new String(b,0,bytesRead-1);
    f = (Float.valueOf(s.trim())).floatValue();
    ok = true;
    catch(NumberFormatException e)
    System.out.println("Make sure you enter a decimal number");
    catch(IOException e)
    System.out.println(e.getMessage());
         return f;
    public static char getChar()
    char c = ' ';
    boolean ok = false;
    while(!ok)
    try
    bytesRead = System.in.read(b);
    s = new String(b,0,bytesRead-1);
    if(s.trim().length()!=1)
    System.out.println("Make sure you enter a single character");
    else
    c = s.trim().charAt(0);
    ok = true;
    catch(IOException e)
    System.out.println(e.getMessage());
    return c;
    public static void pause()
    boolean ok = false;
    while(!ok)
    try
    System.in.read(b);
    ok = true;
    catch(IOException e)
    System.out.println(e.getMessage());
    public static void pause(String messageIn)
    boolean ok = false;
    while(!ok)
    try
    System.out.print(messageIn);
    System.in.read(b);
    ok = true;
    catch(IOException e)
    System.out.println(e.getMessage());
    AirplaneListTester class sorry for the indentations the message box has messed it up
    import javax.swing.JOptionPane; //indicates that the compiler should load class JOptionPane for use in this application.
    public class AirplaneListTester
         public static class AirplaneList
              //Attributes for the AirplaneList
              private String flight = "No plane" ; //Airplane's name
              private int total = 0;     //initial total
              private boolean Empty = true; //initially the list is empty
              private boolean     Full = false; //The list initially has no entries therefore it is not full
              // Constructor method
              public AirplaneList()
                   total = 0;
              public void add(String Airplane) // allows the user to add an airplane to the list, it returns a boolean value
                   flight = Airplane; // The airplane object will be "flight"
              }     //add()
              public void remove(int inti) // allows the user to remove an airplane from the list, it returns a boolean value
                   total = inti;
              }     //remove()
              public boolean isEmpty() // allows a user to check if the list is empty
                   Empty = true;
                   Full = false;
                   return Empty;
              public boolean isFull() // allows a user to check if the list is full
                   Empty = false;
                   Full = true;
                   return Full;
              public void item(int inti) // returns the airplane's flight number on the list
                   total = inti;
                   System.out.println(flight+ "is number ");
                   System.out.println(total+ "");
              public void Total() // returns the total number of airplanes on the list
                   JOptionPane.showMessageDialog(null,total+ " Airplanes are on the list" );
                   if (isFull())
                   JOptionPane.showMessageDialog(null,"The list has also reached its maximum number of planes" );
              public void getInt()
              //Start main()
                   public static void main (String[] args)
              throws java.io.IOException
                   char choice; //Words choice and size are the names of variables
                   int size; //This declaration specifies that the variable are of data type char and int
                   //size = EasyIn.getInt(); // Converts a string and makes it an Int
                   Char - a variable that may only hold a single lowercase letter, a single uppercase letter, a single digit or a           
                   special character (such as x, $, 7 and *)
                   AirplaneList plane = new AirplaneList(); // Declare AirplaneList variables
                   //The code below creates a dialog box for the user to input a choice
                   String inputcode;
                   inputcode = JOptionPane.showInputDialog("A: add an airplane from the list\n" +
                                  "B: remove an airplane from the list\n" +
                                  "C: check if the list is empty\n" +
                                  "D: check if the list is full\n" +
                                  "E: display the list\n" +
                                  "F: quit\n" );
                   The null first argument indicates that the message dialog will appear in the center of the screen. The 2nd is the      
                   message to display
                   do
                             // get choice from user
                             choice = inputcode.toUpperCase().charAt(0);
                             //process menu options
                             switch(choice)
                        case 'A':               
                             addingplanes(plane); // Adds a plane to the list
                             break;     //done processing case
                        case 'B':
                             removingplanes(plane); // Removes the plane
                             break;     //done processing case
                        case 'C':
                             islistempty(plane); // Checks if plane is empty
                             break;     //done processing case
                        case 'D':
                             islistfull(plane); // Checks if plane is full
                             break;     //done processing case
                        case 'E':
                             displaylist(plane);      // Displays the list of planes
                             break;     //done processing case
                        case 'F':
                             JOptionPane.showMessageDialog(null, "You have chosen to quit the program");
                             break;     //done processing case          // Quits the program
                        default:
                             JOptionPane.showMessageDialog(null, "Invalid entry!, Please choose another option");
                             if (choice!= 'A'||
                   choice!= 'B'||      
                             choice!= 'C'||
                        choice!= 'D'||
                        choice!= 'E'||
                        choice!= 'F');
                             inputcode = JOptionPane.showInputDialog("A: add an airplane from the list\n" +
                                  "B: remove an airplane from the list\n" +
                                  "C: check if the list is empty\n" +
                                  "D: check if the list is full\n" +
                                  "E: display the list\n" +
                                  "F: quit\n" );
                                  break;     //done processing case
                   }while (choice!= 'F' ); //end AirplaneList tester
              System.exit(0); //end main()
                   //add Airplane
                   public static void addingplanes(AirplaneList plane)
                        String flight;
                   flight = JOptionPane.showInputDialog("Please enter airplane filght number" );
                        create an Airplane object to add to list          Airplane flight = new Airplane();
                        add string to list if the list is not full
                        access the 'add(Airplane)' method from the AirplaneList class;
                   if the list is full, return a statement to the user indicating that no more plane can be added onto the list
                   //remove airplane
                   public static void removingplanes(AirplaneList plane)
                   //get position of item
                   /*     string enterpos;
                        enterpos = JOptionPane.showInputDialog("Please enter position to remove" );
                        System.out.print(":")
                        int plane = Easyln.getint();
                        // delete item if it exists
                        //access the 'remove(Airplane)' method from the AirplaneList class;
                        //if the user enter an invalid number for the position, returen a statement
                   */     //indicating that there is no such posititon.
                   //check if empty
                   public static void islistempty(AirplaneList plane)
                        String inputcode;
                        if (plane.isEmpty())
                        JOptionPane.showMessageDialog(null, "The list is empty");
                        else
                        JOptionPane.showMessageDialog(null, "list is not empty" );
                   //check if full
                   public static void islistfull(AirplaneList plane)
                        String inputcode;
                        if (plane.isFull())
                        JOptionPane.showMessageDialog(null, "list is full" );
                        else
                        JOptionPane.showMessageDialog(null, "list is not full" );
                   //display list
                   public static void displaylist(AirplaneList plane)
                        if (plane.isEmpty())     //no need to display if list is empty
                        JOptionPane.showMessageDialog(null, "list is empty, there is no list to display!" );
                        else
                        plane.Total();
                        //loop through list
    }//Ends the AirplaneListTester class

    First of all we have some code formatting options in this board.
    If you wrap your code in [[b]code] it will be a whole lot easier to read for all of us.
    Next put your class into a library path since you're going to use it in more than one project I guess.
    Then simply import your class in the project you're currently working on and you can use it's methods.

Maybe you are looking for

  • K7TPro2 Sound problem

    Hi to all, I have been searching for 3 hours on this site, but found no answer. Problem: After installing all the drivers on the K7T Pro2 with Athlon 1000 (the previous SIS-throw-it-out-the-window-board said it was a Duron 1000 ?) everything seems to

  • What is a "remote disk" and why is it in my finder?

    I have a new MBP which I populated using migration assistant.  Now I have a mysterious icon for a "remote disk" in my list of hard drives. I can't eject it, and it does not show any info with a command-I. Anybody know what it is, if it is evil, and h

  • ABAP RuntimeError SYSTEM_IMODE_TOO_LARGE

    Hello Experts, I get this error SYSTEM_IMODE_TOO_LARGE, when i try to load some 888,000 records, we run loads over 12 million records and never faced this problem. I tried to run for a specific selection of 4000 records bassed on idoc numbers and i m

  • Cannot find my air play on ipad 2 for ios 7.0.2, please help?

    Cannot find my air play on ipad 2 for ios 7.0.2, please help?

  • I don´t know why, I can´t unlock my iphone

    I just can not unlok my iphone, i con not pass the finger, i pass it but it does not work i havent drop my iphone, it has never been wet it is perfect but i can not do anythin i con not turn ir off i can not speak with siri, i can not listen to music