Thread: Eclipse not compiling Java files.

Results 1 to 3 of 3
  1. #1 Eclipse not compiling Java files. 
    Registered Member

    Join Date
    Dec 2007
    Age
    23
    Posts
    318
    Thanks given
    3
    Thanks received
    5
    Rep Power
    88
    Hello guys

    My Eclipse is not compiling my java files.
    I am using HybridPVP source and i followed a tutorial placing it into Eclipse.
    It says eclipse automatically compiles your files after saving but mine wont.
    As a test: i took this.

    Code:
    if (playerCommand.startsWith("yell")) {
    								for (int j = 0; j < Server.playerHandler.players.length; j++) {
    					if (Server.playerHandler.players[j] != null) {
    						Client c2 = (Client)Server.playerHandler.players[j];
    							if (c.playerRights == 1){
    							
    								c2.sendMessage("[Mod]"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    							}else if (c.playerRights == 2){
    							
    								c2.sendMessage("[Admin]"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    							}else if (c.playerRights == 3){
    								c2.sendMessage("[Owner]"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    							}else if (c.isDonator == 1){
    								c2.sendMessage("[Donator]"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    						}
    						}
    					}
    				}
    changed into:

    Code:
    if (playerCommand.startsWith("yell")) {
    								for (int j = 0; j < Server.playerHandler.players.length; j++) {
    					if (Server.playerHandler.players[j] != null) {
    						Client c2 = (Client)Server.playerHandler.players[j];
    							if (c.playerRights == 1){
    							
    								c2.sendMessage("[Mod]"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    							}else if (c.playerRights == 2){
    							
    								c2.sendMessage("[AdminAWEFF]"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    							}else if (c.playerRights == 3){
    								c2.sendMessage("[Owner]"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    							}else if (c.isDonator == 1){
    								c2.sendMessage("[Donator]"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    						}
    						}
    					}
    				}
    (look at the admin thingy)

    Anyone that can help me?
    LOL
    [spoil]
    Quote Originally Posted by Archspire View Post
    class9.disabledText = setMessage(j);

    Hmm having an error with this line, I added disabledText has a public int but its still not reading it as a variable.
    [/spoil]
    Reply With Quote  
     

  2. #2  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    27
    Posts
    4,780
    Thanks given
    199
    Thanks received
    1,255
    Rep Power
    1110
    if there are no errors in eclipse it will compile. So you have to make sure theres no errors
    Reply With Quote  
     

  3. #3  
    q.q


    Join Date
    Dec 2010
    Posts
    6,537
    Thanks given
    1,073
    Thanks received
    3,536
    Rep Power
    4752
    Check the buildpath is correct
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Compiling PJA 459 with eclipse
    By redvader in forum Help
    Replies: 15
    Last Post: 04-09-2012, 01:18 AM
  2. eclipse COMPILING?
    By international in forum Help
    Replies: 5
    Last Post: 06-05-2011, 06:31 PM
  3. New Java Files are not compiling
    By CTucker in forum Help
    Replies: 2
    Last Post: 03-24-2010, 03:04 AM
  4. Replies: 13
    Last Post: 06-10-2008, 04:16 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •