Stuck on Java Project

/**so here is my project. if you run the gui you can see sorta what i am trying to do. Im trying to get have data input for the three categories to find averages for the players and keep them in the memory for a short time so you can flip through the seven players. I understand it is a pain to go through the whole project so sorry about it. I just really need some help. I cant figure out how to get it to get the output for the aces winners and errors and attach them to the player. I think it is something with the arrays but i dont know what to do with it. here is the first class. The second class is below it.**/
import javax.swing.*;
import BreezySwing.*;
public class TennisStats extends GBFrame
//declare window objects
private JButton addPlayer, previousPlayer, nextPlayer, modifyStats;
private JLabel title, nameLabel, acesLabel, winnersLabel,errorsLabel, match1,match2, match3, match4, match5, averages;
private IntegerField acesField1, acesField2, acesField3, acesField4, acesField5, winnersField1,winnersField2,winnersField3,winnersField4,winnersField5, errorsField1, errorsField2,errorsField3, errorsField4, errorsField5, averageAces, averageWinners, averageErrors;
private JTextField playerField;
private Player [] player; //array of players
private int playersCount;
private int currentPlayer;
public TennisStats()
//instantiate window objects
title = addLabel ("Welcome to the Tennis Statistical Database",1,1,1,1);
nameLabel = addLabel ("Players name", 2,1,1,1);
playerField= addTextField ("",2,2,1,1);
acesLabel = addLabel ("Aces Per Match", 3,2,1,1);
acesField1 = addIntegerField (0, 4,2,1,1);
acesField2 = addIntegerField (0, 5,2,1,1);
acesField3 = addIntegerField (0, 6,2,1,1);
acesField4 = addIntegerField (0, 7,2,1,1);
acesField5 = addIntegerField (0, 8,2,1,1);
averageAces= addIntegerField (0,9,2,1,1);
winnersLabel = addLabel ("Winners Per match", 3,3,1,1);
winnersField1 = addIntegerField (0, 4,3,1,1);
winnersField2 = addIntegerField (0, 5,3,1,1);
winnersField3 = addIntegerField (0, 6,3,1,1);
winnersField4 = addIntegerField (0, 7,3,1,1);
winnersField5 = addIntegerField (0, 8,3,1,1);
averageWinners= addIntegerField(0,9,3,1,1);
errorsLabel = addLabel ("Errors Per Match", 3,4,1,1);
errorsField1 = addIntegerField (0, 4,4,1,1);
errorsField2 = addIntegerField (0, 5,4,1,1);
errorsField3 = addIntegerField (0, 6,4,1,1);
errorsField4 = addIntegerField (0, 7,4,1,1);
errorsField5 = addIntegerField (0, 8,4,1,1);
averageErrors= addIntegerField (0,9,4,1,1);
addPlayer = addButton ("Add",10,4,1,1);
previousPlayer= addButton ("Previous",10,1,1,1);
nextPlayer= addButton ("Next",10,2,1,1);
modifyStats= addButton ("Modify",10,3,1,1);
match1= addLabel ("First Match",4,1,1,1);
match2= addLabel ("Second Match",5,1,1,1);
match3=addLabel ("Third Match",6,1,1,1);
match4= addLabel ("Fourth Match",7,1,1,1);
match5= addLabel ("Fifth Match",8,1,1,1);
averages = addLabel ("Averages", 9,1,1,1);
playersCount = 0;
player = new Player [7];
currentPlayer = -1;
//readonly
averageErrors.setEditable(false);
averageAces.setEditable(false); //The user cannot edit the field
averageWinners.setEditable(false);
//button clicked methods
public void buttonClicked (JButton buttonObj)
if (buttonObj== addPlayer) addPlayer();
else if ( buttonObj==modifyStats) modifyStats();
else if (buttonObj==previousPlayer) previousPlayer();
else if(buttonObj==nextPlayer) nextPlayer();
private void addPlayer()
if (playersCount == player.length)
messageBox ("Can't add another player");
return;
Player pla= userInput();
String str = pla.validateData();
if (str != null)
messageBox (str);
return;
player [playersCount] = pla;
currentPlayer = playersCount;
playersCount ++;
displayCurrentPlayer();
private Player userInput()
String nm = playerField.getText().trim();
int [] aces = new int [5];
aces [0] = acesField1.getNumber();
aces [1] = acesField2.getNumber();
aces [2] = acesField3.getNumber();
aces [3] = acesField4.getNumber();
aces [4] = acesField5.getNumber();
int [] errors = new int [5];
errors [0] = errorsField1.getNumber();
errors [1] = errorsField2.getNumber();
errors [2] = errorsField3.getNumber();
errors [3] = errorsField4.getNumber();
errors [4] = errorsField5.getNumber();
int [] winners = new int [5];
winners[0] = winnersField1.getNumber();
winners [1] = winnersField2.getNumber();
winners [2] = winnersField3.getNumber();
winners [3] = winnersField4.getNumber();
winners [4] = winnersField5.getNumber();
Player pla = new Player (nm, aces);
return pla;
private void previousPlayer()
if (playersCount == 0)
currentPlayer = -1;
else
currentPlayer
= Math.min (playersCount -1, currentPlayer -1);
displayCurrentPlayer();
private void nextPlayer()
if(playersCount == 0)
currentPlayer = -1;
else
currentPlayer
= Math.min(playersCount - 1, currentPlayer +1);
displayCurrentPlayer();
private void displayCurrentPlayer()
if(currentPlayer ==-1)
playerField.setText("");
acesField1.setNumber(0);
acesField2.setNumber(0);
acesField3.setNumber(0);
acesField4.setNumber(0);
acesField5.setNumber(0);
errorsField1.setNumber(0);
errorsField2.setNumber(0);
errorsField3.setNumber(0);
errorsField4.setNumber(0);
errorsField5.setNumber(0);
winnersField1.setNumber(0);
winnersField2.setNumber(0);
winnersField3.setNumber(0);
winnersField4.setNumber(0);
winnersField5.setNumber(0);
else
Player pla = player [currentPlayer];
playerField.setText (pla.getName());
acesField1.setNumber(pla.getAces(1));
acesField2.setNumber(pla.getAces(2));
acesField3.setNumber(pla.getAces(3));
acesField4.setNumber(pla.getAces(4));
acesField5.setNumber(pla.getAces(5));
averageAces.setNumber(pla.getAverageAces());
errorsField1.setNumber(pla.getErrors(1));
errorsField2.setNumber(pla.getErrors(2));
errorsField3.setNumber(pla.getErrors(3));
errorsField4.setNumber(pla.getErrors(4));
errorsField5.setNumber(pla.getErrors(5));
averageAces.setNumber(pla.getAverageErrors());
winnersField1.setNumber(pla.getWinners(1));
winnersField2.setNumber(pla.getWinners(2));
winnersField3.setNumber(pla.getWinners(3));
winnersField4.setNumber(pla.getWinners(4));
winnersField5.setNumber(pla.getWinners(5));
averageWinners.setNumber(pla.getAverageWinners());
public static void main (String[] args) //execution in the method main
TennisStats theGUI = new TennisStats();
theGUI.setSize (800, 250); //setting the windows pixel size
theGUI.setVisible (true); //window becomes visible
}

public class Player
private String name;
private int [] aces = new int [5];
private int [] winners = new int [5];
private int[] errors = new int [5];
public Player ()
name = "";
for ( int a = 0; a <5; a ++)
aces [a] = 0;
for (int e = 0; e<5; e++)
errors [e] = 0;
for (int w = 0; w<5; w++)
winners [w] = 0;
public Player (String nm, int[] t)
name = nm;
for (int a =0; a <5;a++)
aces [a] = t[a];
for (int e =0; e <5;e++)
errors[e] = t[e];
for (int w =0; w <5;w++)
winners[w]= t[w];
public Player (Player p)
name = p.name;
for (int a=0; a<5; a++)
aces [a] = p.aces[a];
for( int e=0; e<5; e++)
errors[e] = p.errors[e];
for (int w = 0; w<5; w++)
winners[w] = p.winners[w];
public void setName (String nm)
name= nm;
public String getName ()
return name;
public void setAces(int a, int acesTotal)
aces [a-1] = acesTotal;
public void setWinners(int w, int winnersTotal)
winners [w-1] = winnersTotal;
public void setErrors(int e, int errorsTotal)
errors [e-1] = errorsTotal;
public int getAces(int a)
return aces [a-1];
public int getErrors(int e)
return errors[e-1];
public int getWinners(int w)
return winners [w-1];
public int getAverageAces()
int sum = 0;
for (int a = 0; a<5; a++)
sum+= aces[a];
return sum/5;
public int getAverageErrors()
int sum = 0;
for (int e = 0; e<5; e++)
sum+= errors[e];
return sum/5;
public int getAverageWinners()
int sum = 0;
for (int w = 0; w<5; w++)
sum+= winners[w];
return sum/5;
public String toString()
String str;
str= "Player: " + name+ "\n";
for (int a = 0; a<5; a++)
str += "aces" + a+ "; " + aces [a]+ "\n";
str += "Average: " + getAverageAces();
for (int e = 0; e<5; e++)
str += "errors" + e+ "; " + errors [e]+ "\n";
str += "Average: " + getAverageErrors();
for (int w = 0; w<5; w++)
str += "winners" + w+ "; " + winners [w] +"\n";
str += "Average: " + getAverageWinners();
return str;
public String validateData()
if( name.equals(""))return "name needed";
for(int a = 0;a<5;a++)
if (aces[a] <0)
String str = "must be 0 or greater'";
return str;
return null;
}

Similar Messages

  • Running eclipse java project on command prompt

    Hi all,
    I have one simple java project and that is very well running in eclipse. I have added some external JARs to that project. It performs this job- it creates connection to server, and listens to the signals from server.
    My question is - how do I run that java project on command prompt?*
    I want to run that using ANT or simply I want to make a JAR file so I can execute JAR on command prompt. I created JAR, but it doesn't contain external jar which I added to the project. So I was not able to run that project.
    Can you please tell me any of the method - using ANT or by making JAR?
    Also can you be little bit more explanatory in reply?
    Thanks

    I want to make a JAR file so I can execute JAR on command prompt.This is very likely a good way to proceed. It is explained in great detail in Sun's Tutorial in the section on [Packaging Programs in JAR Files|http://java.sun.com/docs/books/tutorial/deployment/jar/index.html].
    I created JAR, but it doesn't contain external jar which I added to the project. So I was not able to run that project.Yes - the jar file you create has to know about the classes and other resources in that external jar. Otherwise, at runtime, the program will not be able to get at the stuff it needs. Usually you don't include that other jar (or its contents) in the jar file you are creating. Instead you provide your jar file with a manifest that describes the other jar's location. Details are also in the tutorial.
    One thing to note is that Sun's tutorial provides a lot of explanatory, conceptual, material. To that end it keeps the context simple and transparent by describing the steps as they would be carried out by someone working at the command line. The Eclipse documentation and forums might provide a more click-this-drag-that "explanation". If you do follow the method in the Tutorial and get stuck, post a description of the actual commands you used and their outcome.

  • Installation Problem --- Stuck at "Java Security Configuration Assistant"

    When installing Oracle BI 10g, the procedure stuck at "Java Security Configuration Assistant"
    Output generated from configuration assistant "Java Security Configuration Assistant":
    Invoking command:C:\OraHome_1\dcm\bin\dcmctl.bat resyncInstance
    OS: Windows 2003 Ent. (SP1)
    Memory: 1G
    Does anybody knows the reason? and solve
    Thanks,

    Hello,
    just to keep you inform.
    I put that project on the side for a while... But this morning, I tried Branislav recommendation.
    So, I completely uninstall my McAffe Firewall and reboot the computer.
    After that, I completely re-install the application server and everything work fine. It only took around 2-3 seconds to do the resyncinstance and updateconfig, compare to 3 hours the last time just for the resyncinstance. Total time for the infrastructure installation was around 1 hour.
    Like Branislav said, only stopping the McAfee Firewall was not enough.
    Thanks

  • How to use BO SDK in local java project?

    Hi,
    I am trying to connect BO system using below mentioned code
    public void main(String args[]) throws SDKException {
         try
              System.out.println("main");
              /ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();/
              IEnterpriseSession boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( "Administrator","","BOSAP","secEnterprise");
              IInfoStore boInfoStore =(IInfoStore) boEnterpriseSession.getService("InfoStore");
              ChangePWD(boEnterpriseSession, boInfoStore);
         }catch(Exception e)
              System.out.println("Exceptions in main");
              System.out.println(e);
    This code was taken from below mentioned thread:
    Force all users to change their Enterprise passwords with a batch operation
    I have created standalone java project and running as JAVA application in eclipce. I am getting class def not found error for these BO SDK jar files. I have added
    cecore.jar
    celib.jar and
    cesession.jar files as external lib to java project
    I am using following imports
    import com.crystaldecisions.sdk.framework.CrystalEnterprise;
    import com.crystaldecisions.sdk.framework.IEnterpriseSession;
    import com.crystaldecisions.sdk.exception.SDKException;
    import com.crystaldecisions.sdk.occa.infostore.*;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
    import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
    import com.crystaldecisions.sdk.plugin.desktop.user.IUser;
    Does any one know solution to fix class def not found error?
    Thanks
    Nitesh Shelar

    I did some mistake few dependent jars were missing in project build path. After adding those missing BO jar files. Now its giving server connection error. Which I am trying to resolve.
    Thanks for your help.
    Nitesh Shelar

  • I m not able to create xml file in Java Project

    hi all,
    I have created one java project just to try with Ant Builder. I have created one class inside it. and now i m creating an XML file inside that project.
    But as soon as i try to create the File -> New -> File and give the .xml extention of the file this gives error into the project.
    Will you suggest me the solution for that?
    Thanks in advance.

    Assuming that you are facing this problem in NDS, here is the solution.
    Go to Windows--> Preferences --> WorkBench -->File Associations
    In the File Types list select *.xml
    This will display the default associated XML editor as
    XML Editor(default) in the bottom list box.
    Click on add button near the bottom list box and select Text Editor, click Ok.You will see one more entry in the list box as "Text Editor".
    Select this entry and click on the default button.
    Click Ok and close the preferences dialogue.
    Now create a new xml file.You wont see the error this time.
    Please note that this will treat all simple xml files you will create as TEXT Files and always open with Text Editor.You can override this behaviour with right click on the file and select appropriate editor from the "Open With" context menu.
    The error you are talking about is because the XML editor tries to check well-formedness and basic syntax rules for the file that you newly created, actually is a noce feature of the IDE.
    Rgds,
    Amol

  • [ot] A UML tool for a new Java project

    I am working on the new Java project and need a UML tool to get it start. I am wondering whether anyone one can recommend such tool or not. It can be either stand alone or as an Eclipse plug-in. It shall be able to handle at least 50 classes.
    Thanks.

    Is it any good? I haven't tried it but we're
    evaluating UML tools here and it's on my list to play
    with.
    PS.If you mean SDE....
    I have only used the personal edition at home, and the other versions have more functionality available
    My impressions, FWIW, are
    - easier to use than rational rose (I find this one which I have to use at work to be a pain), although, paradoxically enough, they are not that dissimilar in appearance
    - I was able to create some reasonably complex models without any problems
    - easy to install and start using - no great learning curve
    - I tried importing a model I had exported from rose and that did not work very well at all.
    - this applies to version 2.2

  • Best Practices for Defining NDS Java Projects...

    We are doing a Proof of Concept on using NDS to develop non-SAP Java applications.  We are attempting to determine if we can replace our current Java development tools with NDS/WAS.
    We are struggling with SAP's terminology and "plumbing" for setting up/defining Java projects.  For example, what is and when do you define Tracks, Software Components, Development Components, etc.  All of these terms are totally foreign to us and do not relate to our current Java environment (at least not that we can see).  We are also struggling with how the DTR and activities tie in to those components.
    If any one has defined best practices for setting up Java projects or has struggled with and overcome these same issues, please provide us with some guidance.  This is a very frustrating and time-consuming issue for us.
    Thank you!!

    Hi Peggy,
    In Component Model we divide software projects into small components.Components can use other components in well defined manner.
    A development object is a part of a component that can be changed or developed in some way; it provides the component with a certain part of its functionality. A development object may be a Java class, a Web Dynpro view, a table definition, a JSP page, and so on. Development objects are always stored as “sources” in a repository.
    A development component can be defined as a frame shared by a number of objects, which are part of the software.
    Software components combine components (DCs) to larger units for delivery and deployment.
    A track comprises configurations and runtime systems required for developing software component versions.It ensures stable states of deliverables used by subsequent tracks.
    The Design Time Repository is for versioning source code management. Distributed development of software in teams. Transport and replication of sources.
    You can also find lot of support in SDN for the above concepts with tutorials.
    Refer this Link for a overview on Java development Infrastructure(JDI)
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/java development infrastructure jdi overview.pdf
    To understand further
    Working with Net Weaver Development Infrastructure :
    http://help.sap.com/saphelp_nw04/helpdata/en/03/f6bc3d42f46c33e10000000a11405a/content.htm
    In the above link you can find all the concepts clearly explained.You can also find the required tutorials for development.
    Regards,
    Vijith

  • How to run a java project based on x86 Windows XP on Windows CE?

    I am a freshbird of J2ME and i am very confused these days.I beg you can look this topic thoughout.
    I used to configurate a Java Project File about SIP&VOIP successfully,and I can run it well on my PC .
    Now I want to migrate the project to a Mobile OS,and problems comes.
    I have installed the Windows CE 5.0 Evalution Edition on my machine(Windows XP SP2) and it works fine.I search it online for days ,and I download almost all related including CLDC(j2me_cldc-1_1-fcs-src-winunix.zip),MIDP(midp-2_0-fr-spec.zip<==Maybe this is not the right one beacuse it don't have a bin folder),and J2ME Wireless Tool KIt(j2me_wireless_toolkit-2_2-ml-windows.exe).
    I have configrate the enviroment-variable already , but I don't kown what to do next . Do you kown? I would be very thankfull.

    You need to completely rewrite the app to use the mobile APIs as they're very different from the PC ones, I suppose.

  • How to create the exe file for java project.

    How to create the exe file for java project.
    am done the project in java swing , i like to create the project in exe format, so any one help for me,
    send the procedure for that.
    thanking u.

    How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
    http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
    and got several useful links.
    Better search terms might yield even better results.
    Sheesh.

  • Getting an error in Java Project in SAP NetWeaver Developer Studio

    Hi,
    I am getting this error in my Java Project developed in SAP NetWeaver Developer Studio.
    Exception occurred during launch Reason: Source locator does not exist org.eclipse.jdt.debug.ui.javaSourceLocator
    Is this problem of not defining some External .jar file or problem with Eclipse?
    I am developing Java Project which connects with SAP Master Data Management.
    I am referring to a PDF named "How To identify identical master data records using SAP MDM 5.5
    Java APIu2019s".
    Regards
    Kaushik Banerjee

    This may be because of the metadata(registry) cache when it was written out by a second instance of NWDS.
    So the plug-in appears in the file system but NWDS doesn't see it in the metadata
    Delete the .metadata file from your workspace and then start up NWDS. It might work.
    Regards,
    PG
    Edited by: PG on Dec 16, 2008 3:18 PM

  • [Urgent] using javafx object in java project

    Suppose I here created a very simple java project and the main file is like below,
    public class test {
        public static void main(String[] args){
                System.out.println("Hello World!");
    }and in this particular java project, I need to use another javafx object which is defined as (the javafx and java file are in the same package),
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Circle;
    var stage: Stage = Stage {
        title: "Declaring Is Easy!"
        scene: Scene {
            width: 300
            height: 250
            content: [
                Circle {
                    centerX: 150  centerY: 120 radius: 80
                    fill: Color.MAROON
                    stroke: Color.INDIANRED
                    strokeWidth: 10.0
                }, //Circle
                Rectangle {
                    x: 25, y: 80 width: 250, height: 80
                    arcWidth: 20 arcHeight: 20
                    fill: Color.web("#6699ff")
                    stroke: Color.web("#003399")
              strokeWidth: 5.0
                } //Rectangle
            ] //Content
        } //Scene
    } //StageSo how could I achieve this?
    Regards.

    Thanks for your reply.
    But would you please elaborate on this sentence: create the fx class using Class.forName("....").newInstance()?
    Indeed I implemented an interface which was extended by the javafx class, and in the main java file I need to write following codes to use this object,
    Context context = FXLocal.getContext();
            FXClassType instance = context.findClass("packageName.JavaFXClass");
            ObjectValue obj = (ObjectValue)instance.newInstance();
            JavaInterface ji = (JavaInterface)obj.asObject();The problem that I encountered right now is, the exception was thrown at context.findClass("javatest.MyChart");, since it's not able for the compiler to find the JavaFXClass.class.
    I checked the folder build\classes\packageName and noticed that both my main JavaClass and JavaInterface have been compiled with .class file, while the JavaFXClass was not, which means the file JavaFXClass.class doesn't exist.
    What's the solution?

  • How to open java files in a java project

    hi ,
    i have to implement a java program analyzer and now i have implement a java parser using javaCC. My parser parse a java file at a time and i have to read and parse all java files in a java project. my idea is to enter
    java project name *.jpx as an input and search java files in project and parse them one by one, or , to enter the folder path of java source files of project and parse them.
    i am a beginer of java language and i don't know where to start to do it.
    is there someone tell me which way is easier and better for my case and some ways to implement it. i search sample files that is similar to my case but i cannot find any.
    thanks in advance.
    ami

    if u don't mind , can u tell me which tutorial i
    should read for that? http://java.sun.com/docs/books/tutorial/essential/io/
    This... for example.
    xH4x0r

  • How to Debug a Java Project in Eclipse using Tomcat6.0

    Hi
    Can anybody help me with the following questions.
    1.How to create a java project in eclipse(I am using jsp,servlets,jsf,spring,jasper,struts).
    2.How to debug my application in Eclipse Europa by putting break points.
    3.how should i add Tomcat6.0 to my project in order to debug my application so that i can put break points while running the applications and observe the values.
    Thanks
    Bala

    You may find this tutorial useful regarding to JSF, Eclipse and Tomcat: http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html
    To put breakpoints, just doubleclick on the left gray rule of the code, you'll get blue bullets at the left rule, indicating a break point. Run Tomcat in debug modus (rightclick Tomcat � debug). Use the Eclipse debug perspective to step in the code (window � open perspective � debug).

  • Open Forte for java project in Sun java studio enterprise

    Hi Everyone, I am new to Java development. I have a java application developed in Forte for java 4 and I need to open and compile it in Sun java studio enterprise. Could anybody tell me how to do that? Thank you very much.

    The recent versions of the IDE (starting with NetBeans 4.1 and JSE 8) are based on a more-robust project system that is ant based. Projects from Forte for Java 4, unfortunately, cannot be directly opened in JSE8, NB4.1 and later.
    If you do have access to the original source code, pl. try the following in the latest version of JSE or NetBeans:
    - Create a fresh project in jse using File | New Project. (For a java standalone app, you would choose General | Java Application from the dialog).
    - Add the existing files to the empty project. You can do so by right-clicking on the project, selecting properties and adding the existing source directories under 'Source Packages' in 'Sources' category.
    Or from the new project dialog, you could select 'General | Java Project with existing sources' option.

  • Using a java project in a web which is part of a ear

    hi
    i have an ear (jspkeepEAR) that includes a web project (jspkeep). The web project uses a java project (common).
    I don't want the EAR to know about the common, so i've added the common as a j2ee module to the web project.
    when publishing, i can see under
    C:\bea92\user_projects\w4WP_workspaces\Untitled\.metadata\.plugins\org.eclipse.core.resources\
    .projects\jspkeepEAR\beadep\workshop\jspkeepEAR
    the .beabuild.txt file:
    C\:/bea92/user_projects/w4WP_workspaces/Untitled/jspkeepEAR/EarContent/APP-INF/classes = APP-INF/classes
    C\:/bea92/user_projects/w4WP_workspaces/Untitled/jspkeep/WebContent = jspkeep.war
    C\:/bea92/user_projects/w4WP_workspaces/Untitled/jspkeep/build/classes = jspkeep.war/WEB-INF/classes
    C\:/bea92/user_projects/w4WP_workspaces/Untitled/jspkeep/build/jws/.src = jspkeep.war/WEB-INF/classes
    C\:/bea92/user_projects/w4WP_workspaces/Untitled/common = jspkeep.war/WEB-INF/lib/common.jar
    the problem is, when i'm surfing to a servlet in the web, i get NoClassDefFoundError for classes in the common.
    I've also noticed that if i publish the web project by itself (and not as part of the ear), it works fine.
    any idea?
    thanks
    yair
    Edited by reformy at 12/12/2006 2:24 AM

    Hi Yair
    It appears that WLS only supports mapping a directory to a jar in APP-INF/lib/
    C\:/runtime-New_configuration/Common/bin = APP-INF/lib/Common.jar
    but NOT to a jar in WEB-INF/lib.
    Engineering will look into it sometime to fix it.
    Workaround Suggested:
    As a workaround, you can include the Java/Utility project as part of the EAR and set as dependent J2EE module to the Web project.
    Hope this helps.
    Vimala-

Maybe you are looking for

  • How do you stop pictures from going into different rolls?

    Everytime I transfer a picture into iPhoto it goes into a different roll. When it comes to finding these pictures, it can take a long time. Can anyone tell me how to make pictures all go to the same place?

  • IPod Nano 4GB isn't recognized

    I have a 4GB Nano. It isn't more than 9 months old. When I plug it into my computer,it isn't recognized by iTunes, iPod Updater, or my computer. I have tried all the 5 R's that is suggested by Apple. Nothing seems to work. I have read most articles p

  • Java applet authentication

    I have an applet hosted in a webserver and since I installed Java 6 update 24, a window is shown asking for Network Credentials every time I open the page. If I access it from a computer with an older Java version, it runs the applet without asking t

  • I have a message upon installation that says the publisher of Firefox setup 6.0.2.exe couldn't be verified?

    "At the end of the install cycle I have a message that says the publisher of Firefox Setup 6.0.2.exe couldn't be verified. Are you sure you want to run the program?" Should I continue or is there a problem? Thanks.

  • Using the send by Email for Review function

    We are using Adobe Acrobat 8 and would like to use the send by Email for Review function. We would like to modify the text for the invitation message but don't want to have to modify it every time we use the function. Does anybody know any way that w