Jump to content

How Do I make a .jar file


crossfiregaming

Recommended Posts

Once everything you need is in the 

 

"src/main/java" and "src/main/resources"

 

If you are running with Eclipse

 

Use the Command Line in the folder where the 

 

gradlew

 

file is, and run this command:

 

gradlew build

 

This will automatically produce the .jar file with your mod inside ready to run

Link to comment
Share on other sites

28 minutes ago, Zeher_Monkey said:

Once everything you need is in the 

 


"src/main/java" and "src/main/resources"

 

If you are running with Eclipse

 

Use the Command Line in the folder where the 

 


gradlew

 

file is, and run this command:

 


gradlew build

 

This will automatically produce the .jar file with your mod inside ready to run

I can't get it to work. Is there a way for me to send the source code to you and you could do it.

Link to comment
Share on other sites

You need to install a JDK (same java version as you are using) and add it to the PATH environment variable, if the installer doesn't do it automatically.

 

If you dont know how to do this, there are plenty of guides/tutorials on Google.

Edited by Zeher_Monkey
Missing Information
Link to comment
Share on other sites

7 hours ago, Zeher_Monkey said:

You need to install a JDK (same java version as you are using) and add it to the PATH environment variable, if the installer doesn't do it automatically.

 

If you dont know how to do this, there are plenty of guides/tutorials on Google.

I've installed and reinstalled multiple versions of java and I still get the error.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.