- Joined
- Feb 2, 2008
- Messages
- 22
- Reaction score
- 0
- Points
- 1
- Your Mac's Specs
- Powermac G4, 1GHZ, 1.5GB Ram, 320GB, 320GB, 250GB HDs, Mac OS 10.4.11
Hello.
I am currently reading sams teach yourself java 2 in 24 hours and I got an error when trying to run a compiled script using the terminal.
Emac:~ admin$ javac /J24Work/BigDept.java
Emac:~ admin$ java /J24Work/BigDept
Exception in thread "main" java.lang.NoClassDefFoundError: /J24Work/BigDept
Emac:~ admin$
Anyway. I tried what it said to do on this page:
http://www.ics.uci.edu/~thornton/ics22/LabManual/SettingUpJava.html
Which didnt seem to work, and now, every time i open a new terminal window, I get
Last login: Sun Feb 3 13:38:38 on ttyp1
Welcome to Darwin!
Without the prompt, and none of the commands work.
If I close the window, i get a message saying:
Closing this window will terminate the following processes inside it: login, bash, cat
So I hit terminate.
Terminate doesnt seem to work however, as it still does the same thing whenever I open a new terminal window.
Any ideas why, and how to fix it?
Also if you could tell me why I got that error when interpreting the compiled script then that would be great aswell.
Thanks.
I am currently reading sams teach yourself java 2 in 24 hours and I got an error when trying to run a compiled script using the terminal.
Emac:~ admin$ javac /J24Work/BigDept.java
Emac:~ admin$ java /J24Work/BigDept
Exception in thread "main" java.lang.NoClassDefFoundError: /J24Work/BigDept
Emac:~ admin$
Anyway. I tried what it said to do on this page:
http://www.ics.uci.edu/~thornton/ics22/LabManual/SettingUpJava.html
Which didnt seem to work, and now, every time i open a new terminal window, I get
Last login: Sun Feb 3 13:38:38 on ttyp1
Welcome to Darwin!
Without the prompt, and none of the commands work.
If I close the window, i get a message saying:
Closing this window will terminate the following processes inside it: login, bash, cat
So I hit terminate.
Terminate doesnt seem to work however, as it still does the same thing whenever I open a new terminal window.
Any ideas why, and how to fix it?
Also if you could tell me why I got that error when interpreting the compiled script then that would be great aswell.
Thanks.