If by text RPG, you mean something like the old console adventure games like Zork, then I’d suggest using the console and keeping things simple. Writing text is easy using print.out.println(…); However input takes a bit more work. I’d look at wrapping the console input stream System.in, within a java.io.BufferedReader class. This will allow you to grab one line at a time, rather than just a stream of characters. This could be wrapped in a java.io.StreamTokenizer to split the stream into words. You will need to set it to return eoln as a token, after which you can call it repeatedly for each line until you get the eoln token. At this point you would need to parse the tokens. Probably best to keep it simple . You will also need arrays of room objects, including data fields for description, exit destinations (NSEW) etc. Also a collection of game objects that can be located in rooms or on the player. It might be easiest to make the player a sub-class of room. Objects will need fields defining their description and various attributes.
Commands
N,S,E & W: Look up appropriate destination room number in current room and set player location. Print room description
Get : Search collection of objects for one with this name. Check it is in the same room as player; Set object location to player.
Drop : Search collection of objects for one with this name: Check it is on player; Set location to player’s current location
Write code to support other verbs as needed by the game’s puzzles. These normally check conditions (e.g. is player carrying a key; is player in the room with a locked door; is the door locked => unlock door - write success text, modify room description, modify room exits.
If however you want RPG style character classes and battle system, then console i/o will probably be too limiting and you will need to write a GUI application. At this point it is best to use an IDE with a form editor (e.g. Netbeans), as this will make life easier. Having said that, the degree of difficulty has increased a level if you haven’t used java before, and it might be too much for a time-limited project.
For the RPG version, the main difference is that each action has a success probabilty based on players stats. You also need to keep the player constantly informed of their health points, ailments etc. and this is where a pure console approach tends to be inadequate