Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions / Script for compiling in Windows. #4

Closed
XfedeX opened this issue May 10, 2021 · 2 comments
Closed

Instructions / Script for compiling in Windows. #4

XfedeX opened this issue May 10, 2021 · 2 comments

Comments

@XfedeX
Copy link
Contributor

XfedeX commented May 10, 2021

When I try to generate sources for Eclipse or building, i get error java.lang.IllegalArgumentException: Unsupported class file major version 60.
A nice, pre-done build script would probably fix that.

Also this needs a decent readme.

@ArtFect
Copy link
Owner

ArtFect commented May 11, 2021

What's your version of java? If 16, then probably an error due to the fact that gradle does not support it

This mod can be imported and built in the same way as all other mods for the fabric
https://fabricmc.net/wiki/tutorial:setup

In IDEA, it's just import "build.gradle", wait for gradle to do everything and select on the right: Gradle -> %project_name% -> Tasks -> build -> build

@XfedeX
Copy link
Contributor Author

XfedeX commented May 11, 2021

Thank you, but please add these scripts anyway:

Proxyserver\scripts\GenSources-eclipse.bat :

@echo off
echo ServerProxy
echo.
echo Generating sources and setting up Eclipse...
cd ..
call gradlew.bat genSources
call gradlew.bat eclipse
pause

Proxyserver\scripts\build.bat:

@echo off
echo ProxyServer
echo.
echo Compiling...
cd ..
call gradlew.bat build
echo.
echo Done. Check for errors above before closing this window!

pause

@XfedeX XfedeX closed this as completed May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants