hzxie / voj

A cross-platform online judge system based on Spring MVC framework and ActiveMQ.
https://verwandlung.org
GNU General Public License v3.0
569 stars 121 forks source link

When I was doing mvn package for judger, something went wrong. #24

Closed yrregnehc closed 7 years ago

yrregnehc commented 7 years ago

image

hzxie commented 7 years ago

Did you install gcc and add it to PATH variable?

yrregnehc commented 7 years ago

I downloaded Mingw64 and put it in the front of the path variable like this:

C:\Program Files\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev0\mingw64\x86_64-w64-mingw32\bin;

I downloaded Dev-C++ though, and I'm not sure if it will affect the path.

yrregnehc commented 7 years ago

By the way, what's the easiest way to install gcc on windows?

hzxie commented 7 years ago

Please open Command Prompt and type:

gcc -v

What 's the output?

I install gcc with MINGW.

yrregnehc commented 7 years ago

I didn't do these two steps: copy jawt_md.h .. copy jni_md.h .. what do they mean? Simply copy these two files to the parental directory?

hzxie commented 7 years ago

Yes.

hzxie commented 7 years ago

But I do think there's something wrong with your gcc and PATH variable.

yrregnehc commented 7 years ago

I think so, but I don't know how to install GCC effectively on Windows.

hzxie commented 7 years ago

So what's your output of gcc -v?

yrregnehc commented 7 years ago

image

hzxie commented 7 years ago

Nice.

Please open MINGW_HOME/bin, where MINGW_HOME represents the path where you install gcc. Rename or copy mingw32-make.exe to make.exe.

yrregnehc commented 7 years ago

Okay, let me see

yrregnehc commented 7 years ago

It works now! Thanks so much!