Comments (10)
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.
@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.
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.
from virtual_robot.
Here is a screenshot of my edit configurations window:
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.
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.
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.
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.
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.
Alright I'm going to send you screenshots of the project structure and the configuration.
from virtual_robot.
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)
- It should not be possible to obtain references to hardware before INIT button is pressed. HOT 1
- Telemetry behavior needs to follow FTC SDK more closely HOT 3
- Consider adding Amazon Corretto to JDK options HOT 1
- Virtual Controller joystick/trigger behavior HOT 6
- DigitalChannel and AnalogInput sensors are not showing up in the Config Display HOT 1
- Unable to run program (no configuration) HOT 6
- Add support for remote fields... HOT 6
- Add Differential swerve HOT 7
- I have a question-
- Error When Inititializing HOT 1
- Deadlock issue involving VirtualBot, BNO055IMUImpl, and GyroSensorImpl classes
- Virtual gamepad - snap back issue HOT 4
- pull_request_68 branch
- Application immediately crashes HOT 5
- left_motor in config not defined HOT 4
- Feature Request: Add Gradle Support HOT 2
- i'cant select the gamepad before or after init
- Error building with RR files HOT 3
- Road Runner Quickstart Instructions possibly outdated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtual_robot.