chaoyangnz / zava

Mini Java VM in Zig
9 stars 4 forks source link

Error While Building Project! #1

Open csm-18 opened 1 month ago

csm-18 commented 1 month ago

Hello, @chaoyangnz! I was trying to build the project and got error like this: error-while-build-project-zava

Is it because of zig version difference?

chaoyangnz commented 1 month ago

What is your version?

csm-18 commented 1 month ago

zig version: 0.13.0

csm-18 commented 1 month ago

So, in the build.zig file: image Ok, so according to zig docs for 0.13.0, the thing that changed is: image

This worked, but still getting some other errors.

chaoyangnz commented 1 month ago

Updated to adapt v0.13.0. please pull

csm-18 commented 1 month ago

I did the pull and rebuilt it and it produced the exe. But, when I run the exe, it gives the output:

image

chaoyangnz commented 1 month ago

How did you run it?

csm-18 commented 1 month ago

First I tried this:

./zig-out/bin/zava

For which i got the above Ouput.

Then I copied the binary to classes folder and :

./zava HelloWorld.class

But still get error!

chaoyangnz commented 1 month ago

In the root folder, make sure you pull the sub module jdk, then run

./zava HelloWorld

Without .class, without copying binary to classes folder

csm-18 commented 1 month ago

The sub module jdk path gives 404 error!

chaoyangnz commented 1 month ago

download from this page: https://github.com/chaoyangnz/zava/wiki/JDK

csm-18 commented 1 month ago

It worked!

image

Thank you!

BTW do you accept contributions!