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
Learning java on the mac, need help with error
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="vansmith" data-source="post: 1361763" data-attributes="member: 71075"><p>Ok, the solution is quite simple. First, "cd" into the directory and then execute java:[code]cd /Users/MacBook/Documents/Java_coding/</p><p>java Example[/code]That should work. For some reason, java likes to be in the directory of the class (something to do with classpaths...my Java knowledge is weak).</p><p></p><p>This is why I hate Java and love Python. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p></blockquote><p></p>
[QUOTE="vansmith, post: 1361763, member: 71075"] Ok, the solution is quite simple. First, "cd" into the directory and then execute java:[code]cd /Users/MacBook/Documents/Java_coding/ java Example[/code]That should work. For some reason, java likes to be in the directory of the class (something to do with classpaths...my Java knowledge is weak). This is why I hate Java and love Python. ;) [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Learning java on the mac, need help with error
Top