#Where are the Java libraries stored?
1 messages · Page 1 of 1 (latest)
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
Like in Lua there is package.path that contains all of the possible paths where to take the file that the program requires
What is the path of the Java built-in libraries?
Because I do not like the method Maven and Gradle use
iirc everytime you build a project it downloads the libraries from the internet, making not possible to develop a Java project offline
well yes, that's the point of a dependency manager
Where are the packages like java.io are stored
wdym
how it wouldn't work ?
you seem to misunderstand what maven is
maven will automatically download and install 3rd party libs
Where?
from maven central
To where
folder .m2
in the user folder
but that won't help you
those are 3rd party libs
This is not the problem, the library just could add the 3rd party libraries to there
what do you mean
java.io is included in java by default
Closed the thread.
please
what you have here are languages libraries, the same as java.io
this is not the case of 3rd party
I just want to make a library manager that installs the libraries to the folder where are the built-in Java libraries are stored like java.io and javax.swing
Because that would be easier to use just import, javac and java
Like
Install a library, and use it everywhere
So that is the variable like Lua has got package.path?
this would be a terrible idea since you would have hundreds if libs on the classpath, but it would work 🤔
I don't know what is package.path
I think you probably misunderstand why dependency manager exists. that's exactly what dependency manager uses for. Alathreon been kindly try to figure out why you want to do that
It's like a PATH environment variable
the classpath is paths where java will search for classes
So it is
Where can classpath be modified?
you write in the pom which lib you want to use, and it will install them, end of the story
-cp option
note that it will override any other classpath set
so unless you are not using an ide, it won't work
Can classpath be modified for every project? Like changing the default classpath in Java folder
you could
there is an environment variable for that
I think it's JAVA_OPTS or something like that ?
but like I said
this will probably break everything
Is it stored in the Java folder or is it a real environment variable?
it's a real environment variable
but like I said
this will just break everything
since everything relies on classpath
you are not supposed to do that
you are supposed to fill your pom
correctly
What if I just add another path to the environment variable?
Or it will break anyways
?
wdym
the simple fact of changing the classpath when you are using an ide will break things
as I said
just write your libs in the pom
"some/classpath;another/classpath;" + "a/new/classpath;"
stop ignoring half of what I say