Bryan Eckhardt wrote:UPDATE:
I attempted to make a bashrc file but this did not work for me. The compiler spit out a file with errors when I used the export statement. Is this supposed to be the only statement in the methods of that class? The error message I'm getting is "-bash: fg: %java: no such job" when I attempt to run the MyFirstApp.class. Is there any additional information that might help?
Bryan Eckhardt wrote:
According to this .bash_profile maybe more appropriate. I am running on a Mac OSX.
Yes, I was using the export statement in a class. Where is it supposed to go if not in a class?
Bear Bibeault wrote:
Bryan Eckhardt wrote:
According to this .bash_profile maybe more appropriate. I am running on a Mac OSX.
Yes, read my post. You should already have a .bash_profile unless you deleted it?
Bear Bibeault wrote:
Bryan Eckhardt wrote:Yes, I was using the export statement in a class. Where is it supposed to go if not in a class?
Why would you be putting bash commands in a Java class?
Bryan Eckhardt wrote:Located a bash_history file but not a .bash_profile. Where is that usually located?
I solved the problem. All it took was a new light. I discovered I can get a list of commands when typing "java" and the command that I needed is different than the one in the book. Pretty simple. doh
Bear Bibeault wrote:
Bryan Eckhardt wrote:Located a bash_history file but not a .bash_profile. Where is that usually located?
home folder
If you don't have one, create one with either the touch command or a text editor. Make sure it's a plain text file, not an rtf or word document.
I solved the problem. All it took was a new light. I discovered I can get a list of commands when typing "java" and the command that I needed is different than the one in the book. Pretty simple. doh
Please post the differences here. Others are likely to find it helpful.