• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use terminal or interactions to use a program?  RSS feed

 
Carly Griffin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've created a program that (hopefully) sorts a .txt file alphabetically. However, I'm having some difficulty actually using it. I'm trying to either use it in the interactions pane (I'm using Dr. Java) or in the terminal on my mac. When I use the interactions pane, a box pops up that takes in user input, but doesn't do anything as far as sorting. When I use terminal I get an error "could not find or load main class Radix sort.

This is my code for the program (I have separate class for the LinkedQueue and QueueADT that I know are functioning).


And the way I'm attempting to use this in the interface/terminal is by typing: java RadixSort<file path of the .txt file I'm attempting to sort

 
Knute Snortum
Sheriff
Posts: 4073
112
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I remember correctly, the Mac command line is Linux based. If so, what happens if you go to the command line and type:

If you get a reasonable response (a path name), then cd to the directory where RadixSort is and execute your command again. Report any errors in full.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!