Results 1 to 8 of 8
  1. #1
    roseownage is offline Member
    Join Date
    Jan 2012
    Posts
    3
    Rep Power
    0

    Default Renamed my whole code.

    Hello, i renamed my project en so i needed to change all the files with my other name. and my main file.

    for example org.blocktitle.game.BlockTitle > org.habseb.game.HabsEb but now it can not find my main file? and that is org.habseb.game.HabsEb
    its really annying beceause now i can't start my game somebody can help?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default Re: Renamed my whole code.

    somebody can help?
    Use the OSs Search to find the .java file with the main(String[] method.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Renamed my whole code.

    Java doesn't have any concept of a project. Since you're talking about a project, presumably that relates to the IDE you use -- which you haven't mentioned.

    Provide more detail if you expect to get help. We're not here to play guessing games.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    roseownage is offline Member
    Join Date
    Jan 2012
    Posts
    3
    Rep Power
    0

    Default Re: Renamed my whole code.

    Quote Originally Posted by Norm View Post
    Use the OSs Search to find the .java file with the main(String[] method.
    how do you mean, where i need to fill in that line?

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default Re: Renamed my whole code.

    Most OSs have a way to search folders on your PC for files with certain contents.
    Use that search program to find a *.java file with a line containing: main(String[]
    or however you code you main() method.

  6. #6
    roseownage is offline Member
    Join Date
    Jan 2012
    Posts
    3
    Rep Power
    0

    Default Re: Renamed my whole code.

    Quote Originally Posted by Norm View Post
    Most OSs have a way to search folders on your PC for files with certain contents.
    Use that search program to find a *.java file with a line containing: main(String[]
    or however you code you main() method.
    how to find it then, I'll have maked an application at the "run settings" menu and in there the main file : org.habseb.game.HabsEb but it cant find it... do you got an option

    my file is named: HabsEB.java

    im talking about IntelliJ :D

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default Re: Renamed my whole code.

    Did you use the Search program to find the file: HabsEB.java? I can not help you with that. You will have to do a search and find the file so you can compile it and execute it.

    I don't know anything about a run settings menu. That sounds like it is in some program.

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Renamed my whole code.

    So you just renamed your class?
    Just right click and select Refactor->Rename.

    Or am I missing something?

Similar Threads

  1. FileOutputStream Renamed Method
    By moomonkey in forum Advanced Java
    Replies: 2
    Last Post: 09-21-2011, 10:40 AM
  2. Replies: 3
    Last Post: 08-10-2011, 10:17 AM
  3. Replies: 0
    Last Post: 08-07-2011, 09:32 PM
  4. Replies: 0
    Last Post: 02-21-2011, 12:50 PM
  5. Replies: 1
    Last Post: 04-26-2007, 04:52 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
  •