Why error here?

Hello
i dont understand the error of these lines, why there are such these error in java but not c and c++
int ch=0;
if(ch!=0)
String[] str={"a","b","c"};why we can not define a string within a if statement?
thanks in advance

Hello
i dont understand the error of these lines, why there
are such these error in java but not c and c++
int ch=0;
if(ch!=0)
String[] str={"a","b","c"};why we can not define a string within a if
statement?
thanks in advanceYou can define a String array in an if-statement; however, you have to have some code other than just a declaration. The only place that String array can be used is in the body of the if-statement (its scope).
// I did not try to compile this so there could be type-o's
if (ch!=0) {
    String[] str={"a","b","c"};
    System.out.println(str);
}

Similar Messages

  • I'm getting an unknown communication error during my chat to initiate AIM screen sharing. Any clues as to why? Here's the comm log...

    I'm getting an unknown communication error during my chat to initiate AIM screen sharing. Any clues as to why? Here's the comm log...
    I don't usually have problems reaching and doing IT for my family. Is weird.
    Date/Time: 2015-04-12 11:46:01 -0400
    OS Version: 10.10.2 (Build 14C1514)
    Report Version: 4
    Messages Connection Log:
    2015-04-12 11:45:33 -0400: 0x7ffb826cc310: State change from No State to Invited.
    2015-04-12 11:45:45 -0400: 0x7ffb826cc310: State change from Invited to Connecting.
    2015-04-12 11:45:58 -0400: 0x7ffb826cc310: State change from Connecting to Ended.
    2015-04-12 11:45:58 -0400: 0x7ffb826cc310: Error -1 (An unknown error occurred.)
    Video Conference Error Report:
    Video Conference Support Report:
    7.728039 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VCInitiateConference.m:1973 type=2 (00000000/0)
    [Connection Data for call id: 1 returns 1
    18.955646 @/SourceCache/VideoConference/VideoConference-473/VCChannel/VCChannel.m:303 type=2 (00000000/0)
    [VCChannel prepareConnectionWithRemoteConnectionData - remote VCConnectionData: 1]
    18.964195 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VCInitiateConference.m:1988 type=2 (00000000/0)
    [Prepare Connection With Remote Data - remote VCConnectionData: 1, local VCConnectionData: 1
    18.966613 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VCInitiateConference.m:2180 type=2 (00000000/0)
    [Initiate Conference To User: 1002 with Remote VCConnectionData: 1 with Local Connection Data: 1 conferenceSettings: 1]
    25.205927 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VCInitiateConference.m:1973 type=2 (00000000/0)
    [Connection Data for call id: 3 returns 1
    31.603943 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VCInitiateConference.m:1988 type=2 (00000000/0)
    [Prepare Connection With Remote Data - remote VCConnectionData: 1, local VCConnectionData: 1
    31.604365 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VCInitiateConference.m:2180 type=2 (00000000/0)
    [Initiate Conference To User: 1002 with Remote VCConnectionData: 1 with Local Connection Data: 1 conferenceSettings: 1]
    Video Conference User Report:
    0.000000 @:0 type=5 (00000000/16402)
    [Local SIP port]
    18.964411 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VCInitiateConference.m:2085 type=5 (00000000/0)
    [Remote Router]
    [BAD TEST]
    18.964419 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VCInitiateConference.m:2087 type=5 (00000000/0)
    [Remote CommNAT Result: 0x00000001
    18.966640 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VideoConferenceGlobalObjects.m:1679 type=5 (00000000/0)
    [Router]
    [FULLCONE]
    18.966648 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VideoConferenceGlobalObjects.m:1681 type=5 (00000000/0)
    [CommNAT Result: 0x00000102
    31.604133 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VCInitiateConference.m:2085 type=5 (00000000/0)
    [Remote Router]
    [BAD TEST]
    31.604144 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VCInitiateConference.m:2087 type=5 (00000000/0)
    [Remote CommNAT Result: 0x00000001
    31.604370 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VideoConferenceGlobalObjects.m:1679 type=5 (00000000/0)
    [Router]
    [FULLCONE]
    31.604379 @/SourceCache/VideoConference/VideoConference-473/Video Conference/VideoConferenceGlobalObjects.m:1681 type=5 (00000000/0)
    [CommNAT Result: 0x00000102

    Hi
    Ah a homehub.
    Set the Quicktime streaming setting, goto sys prefs/quicktime/streaming/streaming speed, set to 1.5mbps(
    In ichats prefs click on video and change bandwidth limit to NONE.
    Goto sys prefs/security/firewall and check "set access for specific........" and click the + at the bottom and add ichat to the list.
    Restart ichat.
    Also try connecting to me dfcom1 .mac account.
    Tony

  • All ALE configuration are right, but why errors in idocs?

    hi any anybody explains why error are occurs in IDOCs when all ALE setting are ok. please explain any scenario

    Hi,
    One of the commonly occuring error status - 26(Syntax error in Idoc) Outbound
    The reason for the occurence of this error is mostly related to the structuring of the segments in the IDoc, the normal structure should have a parent segment followed by the sub segments but in cases when that fails to happen, the Idoc is in 26 status. For correction of this error goto WE30 and check if the mandatory segment is checked.
    status 51(Application Document not posted) Inbound
    This normally occurs due to the incorrect data being populated in the segments or it could also be related to serialization.
    ~Krithika

  • Any obvious errors here?

    // From JAVA PROGRAMMING: FROM THE BEGINNING, by K. N. King /
    // Copyright (c) 2000 W. W. Norton & Company, Inc. //
    import jpb.*;
    import java.io.*;
    import java.lang.Thread;
    public class bjack{
         public static int playerCount=0;
    public static int dealerCount=0;
    public static int computerCount=0;
    // public static int cCard1 = 0;
    //public static int cCard2 = 0;
    public static int newCard = 0;
    int ep, pl;
    BJStates bjstates;
         public bjack (BJStates parent, int episodes, int plays)
              bjstates = new BJStates(this, 1000, 100);
              //int ep, pl;
    public static void main(String[] args) {
         int playerWins = 0;
         int dealerWins = 0;
         int computerWins = 0;
         SimpleIO.prompt("Learn or Play?");
    String userInput1 = SimpleIO.readLine();
    if (userInput1.equalsIgnoreCase("P"))
         while (true) {
         // Choose two cards for both player and dealer
    Card playerCard1 = Card.pickRandom();
    Card playerCard2 = Card.pickRandom();
    Card dealerCard1 = Card.pickRandom();
    Card dealerCard2 = Card.pickRandom();
    Card computerCard1 = Card.pickRandom();
    Card computerCard2 = Card.pickRandom();
    Card nCard = Card.pickRandom();
    // Display player's cards
    System.out.println("Your cards: " + playerCard1 +
    " " + playerCard2);
    System.out.println("Computer cards: " + computerCard1 +
    " " + computerCard2);
    System.out.println("Dealer cards: " + dealerCard1 +
    " " + dealerCard2);
    // Compute initial counts for player and dealer and computer
    int playerCount = getCount(playerCard1) +
    getCount(playerCard2);
    int dealerCount = getCount(dealerCard1) +
    getCount(dealerCard2);
    int computerCount = getCount(computerCard1)+
                             getCount(computerCard2);
    //int cCard1 = getCount(computerCard1);
    //int cCard2 = getCount(computerCard2);
    int newCard = getCount(nCard);
    // Check whether player's count is 21. If so, dealer
    // must have 21 or lose automatically.
    if (playerCount == 21) {
    if (dealerCount != 21 && computerCount != 21)
    dealerCount = 0;
    computerCount = 0;
    } else {
    // Player's count was not 21. Ask player to draw
    // additional cards and determine new value of
    // player's hand.
    playerCount = getPlayerCards(playerCard1,
    playerCard2);
    // Player loses if new count exceeds 21
    if (playerCount > 21)
    playerCount = 0;
    else {
    // Player's count does not exceed 21. Show dealer's
    // cards.
    //System.out.println("Dealer's cards: " +
    // dealerCard1 + " " + dealerCard2);
    // Draw additional cards for dealer and determine
    // new value of dealer's hand
    dealerCount = getDealerCards(dealerCard1,
    dealerCard2);
    // Dealer loses if new count exceeds 21
    if (dealerCount > 21)
    dealerCount = 0;
    // Compare player's count with dealer's count to
    // determine the winner; display the outcome and
    // update the win counts
    if (playerCount > dealerCount && playerCount > computerCount) {
    System.out.println("You win!");
    playerWins++;
    } else if (playerCount < dealerCount && computerCount < dealerCount) {
    System.out.println("Dealer wins");
    dealerWins++;
    } else if (playerCount < computerCount && dealerCount < computerCount){
         System.out.println("Computer wins");
    computerWins++;
    else
         System.out.println("Tie");
    // Display the win counts
    System.out.println("Dealer: " + dealerWins +
    " Player: " + playerWins + " Computer:" + computerWins);
    // See if user wants to play again; exit from loop if
    // answer is no
    SimpleIO.prompt("Play again (Y/N)? ");
    String userInput = SimpleIO.readLine();
    if (!userInput.equalsIgnoreCase("Y"))
         break;
    System.out.println();
    else if (userInput1.equalsIgnoreCase("L"))
         while(true)
              ///BJStates.
              /*Buffer sharedLocation = new UnsychronizedBuffer();
              bjothers Bjothers = new bjothers( sharedLocation );
              Bjothers.start();*/
              /*public void run()
              /*X whatever = new X();
              class X implements Runnable {
                   X() {
    Thread t = new Thread(this);
    t.start();
    public void run() {
    //bjothers(); //some code that executes the functionality of the thread
         bjothers Bjothers = new bjothers();
         //     public void run() {
    /// BJStates();
    /*public void Work() {
    while(true)
    System.out.println("+|+");
                   //parent.initbjothersVariables();
                        //BJStates.curEpisode = 0;
                        //B//JStates.curPlay = 0;
                        //running = true;
                        //thisThread.start();
                        //Q.setName("Current");
                        //BPlayers.player[0].setCurrentStrategy(Q);
                        //BPlayers.player[1].setCurrentStrategy(Q);
              bjstates = new BJStates(this, ep, pl);
              bjstates.setEpisodes(ep);
              bjstates.setPlays(pl);
              bjstates.start();
         //startLearning();
              SimpleIO.prompt("Stop ");
    String userInput2 = SimpleIO.readLine();
    if (userInput2.equalsIgnoreCase("S"))
         break;
    // NAME: getDealerCards
    // BEHAVIOR: Adds cards to the dealer's hand until the
    // value reaches 17 or more
    // PARAMETERS: card1 - One of dealer's original two cards
    // card2 - The other original card
    // RETURNS: Value of the dealer's hand, including
    // original cards and new cards
    private static int getDealerCards(Card card1, Card card2) {
    int dealerCount = getCount(card1) + getCount(card2);
    int aceCount = 0;
    // Determine number of aces among original pair of cards
    if (card1.getRank() == Card.ACE)
    aceCount++;
    if (card2.getRank() == Card.ACE)
    aceCount++;
    while (true) {
    // If the dealer's count exceeds 21 and the hand
    // contains aces still valued at 11, then reduce the
    // number of aces by 1 and reduce the count by 10
    if (aceCount > 0 && dealerCount > 21) {
    aceCount--;
    dealerCount -= 10;
    // Return if dealer's count is at least 17
    if (dealerCount >= 17)
    return dealerCount;
    // Pick a new card and update the dealer's count
    Card newCard = Card.pickRandom();
    System.out.println("Dealer drew: " + newCard);
    dealerCount += getCount(newCard);
    // Check whether the new card is an ace
    if (newCard.getRank() == Card.ACE)
    aceCount++;
    // NAME: getPlayerCards
    // BEHAVIOR: Adds cards to the player's hand until the
    // value exceeds 21 or the player decides to
    // stand
    // PARAMETERS: card1 - One of player's original two cards
    // card2 - The other original card
    // RETURNS: Value of the player's hand, including
    // original cards and new cards
    private static int getPlayerCards(Card card1, Card card2) {
    int playerCount = getCount(card1) + getCount(card2);
    int aceCount = 0;
    // Determine number of aces among original pair of cards
    if (card1.getRank() == Card.ACE)
    aceCount++;
    if (card2.getRank() == Card.ACE)
    aceCount++;
    while (true) {
    // If the player's count exceeds 21 and the hand
    // contains aces still valued at 11, then reduce the
    // number of aces by 1 and reduce the count by 10
    if (aceCount > 0 && playerCount > 21) {
    aceCount--;
    playerCount -= 10;
    // Return if player's count exceeds 21
    if (playerCount > 21)
    return playerCount;
    // Ask user whether to stand or hit
    SimpleIO.prompt("(S)tand or (H)it? ");
    String userInput = SimpleIO.readLine();
    if (!userInput.equalsIgnoreCase("H"))
    return playerCount;
    // Pick a new card and update the player's count
    Card newCard = Card.pickRandom();
    System.out.println("You drew: " + newCard);
    playerCount += getCount(newCard);
    // Check whether the new card is an ace
    if (newCard.getRank() == Card.ACE)
    aceCount++;
    //Computer Cards
    //public void run() {
         /*     int s;
              while (true) {
              try {
                        Thread.currentThread().sleep(10);
              } catch (Exception e)
                        System.out.println("Exception on sleep");
                        // Sarsa Strategy
                             s = bjothers.calcState(card);
                   // select the best action associated with s
                   curAction = strat[strategy].selectAction(s);
                   //take choosed action
                   switch(curAction) {
                             case BStrategy.HIT : {
                                  addCard(Cards.next());
                             drawCards();
                             points = calcPoints();
                             if (points<=21) {
                                       setCanPlay(true);
                             else
                                       setCanPlay(false);
                             break;
                             case BStrategy.STAND : {
                             setCanPlay(false);
                             break;
                             default : {setCanPlay(false);}
    // NAME: getCount
    // BEHAVIOR: Returns the Blackjack value of a particular
    // card
    // PARAMETERS: c - a Card object
    // RETURNS: The Blackjack value of the card c. The value
    // of a card is the same as its rank, except
    // that face cards have a value of 10 and aces
    // have a value of 11.
    private static int getCount(Card c) {
    switch (c.getRank()) {
    case Card.TWO: return 2;
    case Card.THREE: return 3;
    case Card.FOUR: return 4;
    case Card.FIVE: return 5;
    case Card.SIX: return 6;
    case Card.SEVEN: return 7;
    case Card.EIGHT: return 8;
    case Card.NINE: return 9;
    case Card.ACE: return 11;
    default: return 10; // TEN, JACK, QUEEN, KING
    public void startLearning(int ep, int pl) {
         bjstates = new BJStates(this, ep, pl);
         bjstates.setEpisodes(ep);
         bjstates.setPlays(pl);
         bjstates.start();
    }

    any obvious errors here?Yup:
    No code tags
    No indentation
    Too long to read
    All cluttered up

  • HI i have strange errors here. Oracle 9i Installation

    HI i have strange errors here.
    "Thrown when IP Address of a host cannot be determined"
    I am using SUN 0S, version 5.9
    %uname -a
    SunOS -i 5.9 Generic_117171-14 sun4u sparc SUNW,Ultra-Enterprise
    %uname -r
    5.9
    %uname -n
    -i
    %hostname
    -i
    when i type "hostname" its returning "-i". quite strange.any one have any solution for this?

    HI,
    are you check below thread.
    Thrown when IP Address of a host cannot be determined
    regards
    Taj

  • Why error message?

    I am attempting to learn to do in Flash some things I have
    typically done in Director. Needless to say, it's been a tough go.
    I have been using some of the Lynda.com stuff and it's been
    helpful, but I now have a problem I can't figure out. I am using a
    script that Lynda.com uses in their tutorial movies. I copied it
    (except using my names for things, of course) and from what I can
    tell, I did it correctly, but I keep getting an error message. Here
    is my action script (in it's own layer):
    stop();
    function onIntroClick(evt:MouseEvent):void {
    gotoAndStop("intro");
    introbut2jpg.addEventListener(MouseEvent.CLICK,
    onIntroClick);
    It's just a graphic I turned into a button that should jump
    to the frame labeled "intro" and stop there. Works great in the
    tutorial, but I get:
    Location: Scene = Scene 1, layer = Actions, frame=39, Line 3
    Description: The class or interface 'MouseEvent' could not be
    loaded.
    Source: function onIntroClick(evt:MouseEvent):void {

    Here is the code for all 3 buttons playing the flvs:
    stop();
    var tl:MovieClip = this;
    function onIntroClick(evt:MouseEvent):void {
    tl.gotoAndStop("intro");
    intro_butjpg.addEventListener(MouseEvent.CLICK,
    onIntroClick);
    stop();
    function onTeachingClick(evt:MouseEvent):void {
    tl.gotoAndStop("teaching");
    teachbut.addEventListener(MouseEvent.CLICK, onTeachingClick);
    stop();
    function onMentalClick(evt:MouseEvent):void {
    tl.gotoAndStop("mental");
    mentalbut.addEventListener(MouseEvent.CLICK, onMentalClick);
    I don't understand why it works with 1, then with 2, but not
    with 3.

  • Please tell me why error is comming in select query

    Hello Experts... please tell me why the error is comming at mblnr in s_mblnr.and also tell me the solution for the same.
      SELECT a~mblnr
             a~bwart
             a~matnr
             a~werks
             a~lifnr
             a~menge
             b~budat
             INTO TABLE it_out
             FROM mseg AS a INNER JOIN mkpf AS b
             ON amblnr = bmblnr
             WHERE werks = p_werks
               AND bwart IN s_bwart
               AND mblnr IN s_mblnr  " here error is comming pls tell me how to correct. here s_mblnr is selectoptions.
               AND matnr IN s_matnr.
    Thanks for all the replies

    Hi use the below code..
    make sure from which table you are selecting the colums (fields)..
    SELECT a~mblnr
    a~bwart
    a~matnr
    a~werks
    a~lifnr
    a~menge
    b~budat
    INTO TABLE it_out
    FROM mseg AS a INNER JOIN mkpf AS b
    ON amblnr = bmblnr
    <b>WHERE a~werks = p_werks
    AND a~bwart IN s_bwart
    AND a~mblnr IN s_mblnr
    AND a~matnr IN s_matnr.</b>
    Hope it will solve your problem.
    <b>Reward points if it is useful.</b>
    Thanks & Regards
    ilesh 24x7

  • HT5192 why error when i update it ??? faill

    when i update my VR 5.0.1 up to 5.1 it dosnt scueed they tell me error failed tp update
    and there to choise Setting or cancel
    if i put at setting its just go back to the soft update page !! please help me

    Two possible reasons why you can't update:
    Are you sure you have a 3rd gen and not a 2nd? Go to Settings > General > About > Serial Number to get your serial number, then enter it here: http://support.apple.com/specs/
    Has your iPod ever been jailbroken?

  • Why  error code 1009 again? i know what is it but...

    before this i say to apple that turn of error code 1009 and apple turn it off but now again it happens why? for what? i am just a 17 years old boy that want to play with his ipad when i dont have to study but now how can buy new games i have 4$ in my acount now but becuse of this i cant use it why?
    please please please get this error out of our why...
    if you do this the people that cant accses app store will jailbreak their idevice
    me? no i dont want to jailbreak becuse its bad and now i am here with my ipad 4 wifi 32 gb ios 7.0.2 and i am saying please get this error out of the way i know i am just one guy but everyone dosent have the guts to say this to you apple but i have:
    plaese get this error out of the way
    please

    You will only be able to use your US account when you are in the US, the terms of use of each country's store say that you need to be in the country e.g. for the US :
    The App and Book Services are available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the App and Book Services from outside these locations. Apple may use technologies to verify your compliance.

  • Why error 21?

    My ipod touch wont restore. i get error 21 message Why?

    Error 20, 21, 34, 37: These errors typically occur when security software interferes with the restore and update process. If you are using a PC, follow this article to resolve this issue.
    from:
    http://support.apple.com/kb/TS3694

  • Why error message when trying to put in a transition?

    I'm using iMovie 4 and can not put in a transition. I'm getting error message 4960, "error in system operation". I've successfully added transitions up until now. What gives? Thanks.

    Have you tried either of the free Ringtone converter programs - MusicTones or MiniTones?
    Both can be found on freewarepalm.com.   If you need help with either, I can assist...
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • I can't see the error here

    I'm getting the error 'Column not allowed here'.
    Here's the code and description of resulting table:
    CREATE OR REPLACE PROCEDURE prod_sales_sum_sp
    IS
    CURSOR cur_sales
    IS
      SELECT bi.idproduct id,
        TO_CHAR(b.dtordered,'MON') mth,
        TO_CHAR(b.dtordered, 'YYYY') yr,
        SUM(bi.quantity) quantity,
        SUM(bi.quantity*bi.price) totalsum
         FROM bb_basket b INNER JOIN bb_basketitem bi
         USING (idbasket)
         WHERE b.orderplaced = 1
         GROUP BY bi.idproduct,TO_CHAR(b.dtordered,'MON'),TO_CHAR(b.dtordered, 'YYYY');
    BEGIN
    FOR rec_sales IN cur_sales LOOP
      INSERT INTO bb_prod_sales (idproduct, month, year, qty, total)
      VALUES (id, mth, yr, quantity, totalsum);
    END LOOP;
    END;
    SQL> desc bb_prod_sales
    Name                                                  Null?    Type
    IDPRODUCT                                                      NUMBER(2)
    MONTH                                                          CHAR(3)
    YEAR                                                           CHAR(4)
    QTY                                                            NUMBER(5)
    TOTAL                                                          NUMBER(6,2)
    SQL> select * from bb_prod_sales;
    no rows selectedBasically, we see that the table has five columns: idproduct, month, year, qty, and total. It also has no values at this point in time.
    I'm trying to create this procedure to update the table by inserting values into the table.
    With the error being provided, isn't that basically saying I'm using a column name while I'm trying to insert my values? I've set alias names so there are no conflicts, and it's still giving me the error.
    Can you guys see anythign?

    Hi,
    The way to reference columns in a record is record_name.column_name, so you should say:
    VALUES (rec_sales.id, rec_sales.mth, rec_sales.yr, rec_sales.quantity, rec_sales.totalsum);

  • Hmm an error here...strange

    Hi ppl, I'm having some strange error which i didn't got till i formated my PC...I have installed Eclipse, jdk1.5 and java3d1.4 when i'm compiling my programs which are using java Loaders it's giving me this error:
    Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: no j3dcore-ogl in java.library.path
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at javax.media.j3d.MasterControl$5.run(MasterControl.java:838)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:821)
         at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:252)
         at ObjLoad.init(ObjLoad.java:141)
         at com.sun.j3d.utils.applet.MainFrame.run(MainFrame.java:267)
         at java.lang.Thread.run(Unknown Source)
    if u need code i can diponibalize it here...
    Thanks everyone who read it.

    OK guys thnx every1 who looked here ;)
    I have solved it...just got newest version of Java3d and it worked
    thnx 1 more time=)

  • Trying to start the j2ee to be the JMS provider but why error

    Anyone knows why I can't start the j2ee ..which I hope to use it as the JMS provider. I am trying to try the e.g. from JMS tutorial....
    But it seems that I can't start the j2ee in the first place 'cos error say that I have another instance running...(but I didn't start anything in the first place). How should I solve this?
    How could I stop the j2ee server....I tried the command
    j2ee -stop but cannot..
    Anyone can help?
    AG
    G:\jmseg\simple>j2ee -verbose
    J2EE server listen port: 1050
    java.lang.RuntimeException: Could not initialize j2ee server. Possible cause cou
    ld be another instance of the server already running.
    at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMg
    r.java:134)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:227)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:918)
    java.lang.RuntimeException: Could not initialize j2ee server. Possible cause cou
    ld be another instance of the server already running.
    at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMg
    r.java:134)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:227)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:918)
    java.lang.RuntimeException: Could not initialize j2ee server. Possible cause cou
    ld be another instance of the server already running.
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:355)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:918)
    J2EE server reported the following error: Could not initialize j2ee server. Poss
    ible cause could be another instance of the server already running.
    Error executing J2EE server ...
    G:\jmseg\simple>

    I got exactly the same message when I tried to start j2ee server... It worked fine the second time round though, So I suggest you try it again.
    tim..

  • Why error message she trying to install AirPort software 6.0

    Why do I get an error message she trying to install AirPort software 6.0 over 5.5.3.

    And that message is exactly? I hope you are aware that you are trying to install software from the stoneage and it may simply no longer be compatible...
    Mylenium

Maybe you are looking for

  • Not able to see the crystal reports XI version in the IE 7 and IE 8

    Hi Team, I am using web based application developed in VB,ASP,SQL SERVER,Crystal Reports(XI). I am able to see the Crystal Reports in IE 6. But i am not able to see the reports in IE 7 and IE 8. While clicking on the reports button it is showing the 

  • SAP WAS SS13 Message driven bean start up problem

    Hello, After we have upgraded our environment from SS9 to SS13 our app doesn't start anymore with the following exception (worked fine before): com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception in operation startApp with

  • Material BOMS

    HI all. I have done this before but alas how do do it escapes me at present. We want when we add a material to a line that it automaically brings in a second material (TANN) with an equal qty or 1 of main material equals .01 of second material. So we

  • Volume's Owning Controller automatically changes.

    Hi, Our Setup is as follows. - 1 SunfireV440 and 2 SunfireV490(Running on Veritas Cluster) - 2 StorageTek 6140 (1GB Controller, Total 4 HostChannels) - 2 Brocade SAN switches. All the 4 host channels of both the 6140 is connected to the SAN switch as

  • 2 files in same package 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; Because I found sometimes it won't compile test1.java without import mypackage.test2