GithubHelp home page GithubHelp logo

Can't load process about virtual_robot HOT 10 CLOSED

beta8397 avatar beta8397 commented on August 24, 2024
Can't load process

from virtual_robot.

Comments (10)

jkenney2 avatar jkenney2 commented on August 24, 2024

I haven't seen that error before. I will try to help.

What is the path you are pointing to when you open the project (e.g., "C:\Users\Guest\Downloads\virtual_robot-master\virtual_robot-master")? Is it the folder that contains subfolders named "Controller", "TeamCode", ".idea", and "lib"?

Are you using a recent version of IntelliJ?

If you click the down-arrow next to "Main" (to the left of the green run arrowhead) and select "Edit Configurations...",
what is shown in the window that opens in the "Working Directory" box?

from virtual_robot.

jkenney2 avatar jkenney2 commented on August 24, 2024

@AB027897
If you have downloaded the zip from the github site, then extracted it to some directory ("Extract_Directory"), your path structure should look like this:

C:\ ... \Extract_Directory\virtual_robot-master

So for example, when I just accept defaults, my "Extract_Directory" is virtual_robot-master, and the root file of the project, also named virtual_robot-master, is nested within that. So the path structure I get is:

C:\Users\JimLori\Downloads\virtual_robot-master\virtual_robot-master

When opening the project in IntelliJ, you would point to the inner (nested) virtual_robot-master folder (the project root folder). Then, you should have a run configuration named "Main". If you click the down arrow next to Main, and edit the configuration, you can see what the working directory is set to. The working directory should be set to your project root folder, i.e., the inner (nested) virtual_robot-master folder. I'm not sure why, but I'm guessing this is somehow set wrong. When I go in and change this to a folder that doesn't exist, I get the same error message you have. It is easy to change it to the correct folder.

Let me know whether this fixes it.

from virtual_robot.

AB027897 avatar AB027897 commented on August 24, 2024

I figured it would be something related to the working directory. However, my working directory is the same as yours. I think it has something to do with the main class: virtual_robot-master.virtual_robot-master.Controller.src.virtual_robot.config. The screenshot below will show you my configuration.
Configuration

from virtual_robot.

jkenney2 avatar jkenney2 commented on August 24, 2024

Here is a screenshot of my edit configurations window:

image

It looks like there might be an error in the path to your main class (VirtualRobotApplication). You don't need the full path starting from 'C:', just the part that comes after the src folder in the Controller module:

virtual_robot.controller.VirtualRobotApplication

from virtual_robot.

AB027897 avatar AB027897 commented on August 24, 2024

I did it and now its giving me a different error. Error: Could not find or load main class virtual_robot.controller.VirtualRobotApplication. I didn't delete any of the files so thats very wierd

from virtual_robot.

jkenney2 avatar jkenney2 commented on August 24, 2024

I was able to reproduce that error message by doing the following:

In the 'Edit Configurations' dialog, click "Modify Options", and select "Do not build before run". I then also deleted the "out" directory from the project root (since that contains the compiled classes). Then I tried to run it. It has the VirtualRobotApplication.java file, but isn't compiling it, and doesn't have access to an already-compiled class. Any chance you have this option selected?

from virtual_robot.

AB027897 avatar AB027897 commented on August 24, 2024

I don't have the "Do not build before run" selected, but I forgot the "out" from the directory. However, it is still giving me the same error.

from virtual_robot.

jkenney2 avatar jkenney2 commented on August 24, 2024

I'm running out of ideas. If you'd like, you can upload your version of the project to google drive or something similar and share a link so I can look at it; if you do that, send the link to our team email ([email protected]).

You could also try re-downloading and re-extracting the project.

from virtual_robot.

AB027897 avatar AB027897 commented on August 24, 2024

Alright I'm going to send you screenshots of the project structure and the configuration.
Configuration
Simulater Troubleshoot

from virtual_robot.

jkenney2 avatar jkenney2 commented on August 24, 2024

I noticed under 'Build and Run' in the config editor, you have "Java 8 SDK of 'virtual ...'". The module containing the main class is the "Controller" module. Try clicking "Modify Options" -> "Use Class Path of" -> Controller.

from virtual_robot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.