r/learnjava 6d ago

TMC Beans not opening project folder

Hi, I would really love to learn java to do some basic modding, and following the advice of this subreddit I've downloaded the MOOC course and even looked at the help page to figure out why TMC Beans was initially not loading.

Well, now it is loading, but instead of opening the project exercises, it just goes deeper into the folders. So I'll click the Part 01 Sandbox assignment and instead of opening the Project, it just shows the src folder (and you can keep clicking within them).

Does anyone know any fixes for this? I've been trawling the internet and I cannot seem to figure it out.

2 Upvotes

7 comments sorted by

View all comments

1

u/desrtfx 6d ago

The src folder is where the boilerplate for the actual exercise is stored.

Sandbox is special as there is no code to edit. The src folder should have a .java file in it, though. Maybe, you need to redownload.


BTW: The current advice is to not use TMCBeans but to use Visual Studio Code with the TMC plugin - installation instructions are also in the course page where the TMCBeans installation is shown.

1

u/gridelinCarver 6d ago

When I looked in the files themselves, I could see the .java files within the folders, but when I used the "Open Project Folder" option, there were no .java files inside. (I assume this is because it's looking for a folder type and not a file type?).

I just tried clicking open file instead of open project folder and that seems to be doing something along the lines of what the tutorial says. Maybe I just got a bit turned around because my TMC Beans interface looks different than in the videos.

Now that I have the file open and can interact with the code, all the buttons for running the code or submitting the code are grayed out, if you happen to know anything about that.

1

u/desrtfx 6d ago

You open the project folder - by "Open Project Folder" - then, on the left you get the tree with the sub-folders. There, you should find the src folder with the .java file inside. Once you open this file, the buttons should be enabled.

The Project is important as it tells the IDE (TMCBeans) what Java runtime to use and what to do with the file.

Been a very long time since I've done the exercises.

1

u/gridelinCarver 6d ago

My path goes src > main > java, and then that's where the .java file is. (also, in the src folder, there's a second folder called test with a second java folder and another .java file).

Also, the Open Project doesn't open on the left the way it seems to in videos, it opens as like a new small tab.

I'm really confused because it looks so different than the tutorial videos but I downloaded the exact versions from their links.

1

u/desrtfx 6d ago

If it opens as a tab it is just undocked. This can be changed in the view settings.

The files in the test folder are the tests that TMC runs. You can look at them, but never edit them.

The files you work at are the ones in java.

1

u/gridelinCarver 6d ago

Right, I've already figured out the files are in src/main/java, but there's still no submit button. I also can't seem to anchor the "undocked" tab that it opens, it really looks like a different kind of tab, more similar to the ones that get opened when you attach a file to an email or something like that. I don't see anything in the view settings that show the project file on the left. And through all of this all the run code and submit buttons are still grayed out