TheThirdOne / rars

RARS -- RISC-V Assembler and Runtime Simulator
Other
1.14k stars 217 forks source link

Could not find or load main class #204

Open Lamares opened 8 months ago

Lamares commented 8 months ago

Hi! When i Try to open the rars1_6 jar executable it doesn't allow me to... Actually, it prompts cmd for less then a second and nothing happens. I tried to open it through the cmd so I could see the error and It just says "Could not find or load main class". I have java 8 installed, I already tried jdk 21 and other versions and nothing works... I will have evaluation next week and I really need to fix this.

Dreamlike000 commented 8 months ago

I had this problem with the predecessor proram MARS. I believe what caused it for me is either certain character I used in my folder names, or the path was too long (long folder names). Try moving the Jar file to your desktop and then: Open cmd -> cd desktop -> java -jar rars1_6.jar