-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For multi-file programs, use javac command in the terminal to compile manually. #1070
Comments
Thanks for reminding me. I will fix this as soon as possible. |
This will be fixed in 1.7.2, which is expected to release in a couple days. |
Thanks looking forward. |
@MTraveller @kvARCalsovonal07 @Sadasak The fix (1.7.2) is now available on the App Store. It should work right away without needing to use the command in the terminal. |
Alright, did some testing and it works but not as expected. If I press the play button in top right corner with the: -test it wont work as is. But if I compile first with javac and then run with java test.Main, it works, being inside the package in terminal. The other method that seems to work as well is importing the Test.java class, as: import test.Test; Works with the top right play button. Another thing I noticed, the && does not work when entered manually into the terminal. |
The key is to make sure that you are inside the directory at the terminal For example, if the main class you are trying to run by the run button is in documents/project1/package1/ the terminal should look like this
And if you are in documents/ it won't work
. |
True for import test.Test; But not for package test; I'll get a class error both with the button and running java test.Main or java Main. Also for package test; being in parent folder of test works and not inside test. If you are able to provide a sample would be great. I have: -javaplayground public class Main {
} ---TextBox.java package textbox; public class TextBox {
} In terminal I am in javaplayground $ java textbox.Main which works otherwise nothing works, just errors. |
I think you have to be at textBox $ |
@MTraveller It's running good with me |
Found the issue. |
Originally posted by @bummoblizard in #1028 (comment)
This still does not work, not even using javac. Tried everything at this point, please fix this.
The text was updated successfully, but these errors were encountered: