Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Terminal broken?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Elan" data-source="post: 586427" data-attributes="member: 47504"><p>Hello.</p><p></p><p>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.</p><p></p><p>Emac:~ admin$ javac /J24Work/BigDept.java </p><p>Emac:~ admin$ java /J24Work/BigDept</p><p>Exception in thread "main" java.lang.NoClassDefFoundError: /J24Work/BigDept</p><p>Emac:~ admin$ </p><p></p><p>Anyway. I tried what it said to do on this page:</p><p><a href="http://www.ics.uci.edu/~thornton/ics22/LabManual/SettingUpJava.html" target="_blank">http://www.ics.uci.edu/~thornton/ics22/LabManual/SettingUpJava.html</a></p><p></p><p>Which didnt seem to work, and now, every time i open a new terminal window, I get</p><p></p><p>Last login: Sun Feb 3 13:38:38 on ttyp1</p><p>Welcome to Darwin!</p><p></p><p>Without the prompt, and none of the commands work.</p><p></p><p>If I close the window, i get a message saying:</p><p></p><p>Closing this window will terminate the following processes inside it: login, bash, cat</p><p></p><p>So I hit terminate.</p><p></p><p>Terminate doesnt seem to work however, as it still does the same thing whenever I open a new terminal window.</p><p></p><p>Any ideas why, and how to fix it?</p><p>Also if you could tell me why I got that error when interpreting the compiled script then that would be great aswell.</p><p></p><p>Thanks.</p></blockquote><p></p>
[QUOTE="Elan, post: 586427, member: 47504"] 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: [url]http://www.ics.uci.edu/~thornton/ics22/LabManual/SettingUpJava.html[/url] 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. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Terminal broken?
Top