I'm trying to compile my little application from the command line to check if it takes command line parameters, however, it's not compiling.
The source code originally was compiled at C:\Users\Administrator\workspace\ChopLineNumbers\bin\homenetwork\bkr\training (which is my Eclipse workspace sub directory.
The problem is not with your code, but with your file structure. You should have a "training" folder, inside a "bkr" folder, inside a "homenetwork" folder, and you invoke that class from just outside the homenetwork folder with the instruction
Remember that IDEs can use a different folder structure from what you get at the command line. Resources: Java™ tutorials, and recent thread about a related problem. Please note the link to older threads and look at them; similar problems come up quite frequently.
Campbell Ritchie wrote:The problem is not with your code, but with your file structure. You should have a "training" folder, inside a "bkr" folder, inside a "homenetwork" folder, and you invoke that class from just outside the homenetwork folder with the instruction
java homenetwork.bkr.training.ChopLineNumbers
Remember that IDEs can use a different folder structure from what you get at the command line. Resources: Java™ tutorials, and recent thread about a related problem. Please note the link to older threads and look at them; similar problems come up quite frequently.