Jump to content

Why do I have a bunch of jar files in the project build project?


Recommended Posts

Posted

I finished setting up the workspace for minecraft modding, but there seems to be a bunch of .jar files in the package located at c:\Users\user\.gradle\caches\moduals-2\files-2.1\ what are they, and is there a way to minimize or rid of it? on youtube tutorials dont see any of them.

Posted

Gradle caches most of the libraries it downloads and the files that ForgeGradle generates in the .gradle directory. This allows the files to be shared between multiple ForgeGradle workspaces on the same computer.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Gradle caches most of the libraries it downloads and the files that ForgeGradle generates in the .gradle directory. This allows the files to be shared between multiple ForgeGradle workspaces on the same computer.

ok, but why is it all showing up in my project in project explorer? is there a way to minimize it or something? because on the tutorial im watching the person doesnt have any of those jar files.
Posted

The tutorial you're watching might have all of those files hidden under a "Referenced Libraries" folder that the tutorial author never expanded.  Sometimes I end up with this folder, sometimes I do not. I haven't figured out why yet.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

That could be.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Its just how you import the project into your IDE.

Either way these files are needed for your project to run correctly.

As they are the libraries that Forge/Minecraft use.

 

There is nothing wrong here, move along.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

Gradle caches most of the libraries it downloads and the files that ForgeGradle generates in the .gradle directory. This allows the files to be shared between multiple ForgeGradle workspaces on the same computer.

ok, but why is it all showing up in my project in project explorer? is there a way to minimize it or something? because on the tutorial im watching the person doesnt have any of those jar files.

What you need is package explorer, not project explorer.

(Project explorer will display all dependencies, while package explorers will pack them into 'Referenced Libraries')

Easiest way to do that is, simply open perspective 'Java'.

 

So basically, the difference there would be just the perspective.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

What you need is package explorer, not project explorer.

(Project explorer will display all dependencies, while package explorers will pack them into 'Referenced Libraries')

Easiest way to do that is, simply open perspective 'Java'.

 

So basically, the difference there would be just the perspective.

 

OHFUCKYES.

<3

 

I've been trying to figure that out for months and never made the connection.

Hopefully that'll also make the "could not run project, error in path variable {$project}" or whatever it says (which it does anytime the last thing I did before hitting "run" was "scroll the console," "examine an asset," "examine a vanilla source," "alt-tab" or pretty much anything other than clicking on one of my own java files/packages in the project explorer).

 

Edit:

Nope :(

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Gradle caches most of the libraries it downloads and the files that ForgeGradle generates in the .gradle directory. This allows the files to be shared between multiple ForgeGradle workspaces on the same computer.

ok, but why is it all showing up in my project in project explorer? is there a way to minimize it or something? because on the tutorial im watching the person doesnt have any of those jar files.

What you need is package explorer, not project explorer.

(Project explorer will display all dependencies, while package explorers will pack them into 'Referenced Libraries')

Easiest way to do that is, simply open perspective 'Java'.

 

So basically, the difference there would be just the perspective.

 

SO THATS WHAT HAPPENED...

so before i didnt know how i fix it before and somehow, all my jars went into the reference library. so for some reason the whole time my java perspective was on Java EE. This also helped fix my problem where i couldnt create text files and various others like folders, by right clicking -> new -> untitled text file. i had to click other and look for it in "select a wizard"

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.