VexRiscv icon indicating copy to clipboard operation
VexRiscv copied to clipboard

[error] java.lang.ClassNotFoundException: vexriscv.demo.GenFull

Open mjchipguru opened this issue 2 years ago • 5 comments

When I ran this command, sbt "runMain vexriscv.demo.GenFull", the following error occurred. Please help. Thanks!

mji@XPS-8930-5:~/VexRiscv/verilator$ sbt "runMain vexriscv.demo.GenFull" [info] welcome to sbt 1.6.2 (Private Build Java 11.0.15) [info] loading project definition from /home/mji/VexRiscv/verilator/project [info] set current project to verilator (in build file:/home/mji/VexRiscv/verilator/) [info] running vexriscv.demo.GenFull [error] java.lang.ClassNotFoundException: vexriscv.demo.GenFull [error] at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476) [error] stack trace is suppressed; run last Compile / runMain for the full output [error] (Compile / runMain) java.lang.ClassNotFoundException: vexriscv.demo.GenFull [error] Total time: 0 s, completed Jun 22, 2022, 2:08:52 PM

mjchipguru avatar Jun 22 '22 21:06 mjchipguru

Hi,

You need to run the sbt command in the VexRiscv folder, not VexRiscv/verilator one ^^

Dolu1990 avatar Jun 23 '22 14:06 Dolu1990

I did try running this sbt at the parent directory and got the same error as shown below. After I did all the steps at the dependencies, it appears I could not find these files under src/ There is no main subdirectory under src/. src/main/scala/vexriscv/demo/GenFull.scala src/main/scala/vexriscv/demo/GenSmallest.scala

mji@XPS-8930-5:~/VexRiscv$ sbt "runMain vexriscv.demo.GenFull" [info] welcome to sbt 1.6.2 (Private Build Java 11.0.15) [info] loading project definition from /home/mji/VexRiscv/project [info] set current project to vexriscv (in build file:/home/mji/VexRiscv/) [info] running vexriscv.demo.GenFull [error] java.lang.ClassNotFoundException: vexriscv.demo.GenFull [error] at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476) [error] stack trace is suppressed; run last Compile / runMain for the full output [error] (Compile / runMain) java.lang.ClassNotFoundException: vexriscv.demo.GenFull [error] Total time: 0 s, completed Jun 23, 2022, 8:47:48 AM mji@XPS-8930-5:~/VexRiscv$

mjchipguru avatar Jun 23 '22 15:06 mjchipguru

Ahhh that's realy weird XD So, that folder content (https://github.com/SpinalHDL/VexRiscv/tree/master/src) isn't present on your harddrive ? How did you obtained the repo ?

Dolu1990 avatar Jun 27 '22 07:06 Dolu1990

I don't see the folder tree under VexRiscv/ . I followed all the steps under Dependencies: https://github.com/SpinalHDL/VexRiscv#dependencies Do I need to run any other extra step? Thanks.

mjchipguru avatar Jun 27 '22 18:06 mjchipguru

Ahhh, git clone https://github.com/SpinalHDL/VexRiscv.git && cd VexRiscv :) ?

On Mon, Jun 27, 2022 at 7:26 PM Michael Ji @.***> wrote:

I don't see the folder tree under VexRiscv/ . I followed all the steps under Dependencies: https://github.com/SpinalHDL/VexRiscv#dependencies Do I need to run any other extra step? Thanks.

— Reply to this email directly, view it on GitHub https://github.com/SpinalHDL/VexRiscv/issues/255#issuecomment-1167715984, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABE3WUXFAXLET5LGXXJSF63VRHW3PANCNFSM5ZRYOLHA . You are receiving this because you commented.Message ID: @.***>

Dolu1990 avatar Jun 27 '22 18:06 Dolu1990