d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Stupid Question
Add Reply New Topic New Poll
Member
Posts: 31,388
Joined: Mar 25 2009
Gold: 99.00
Nov 11 2021 06:20pm
https://github.com/DV8FromTheWorld/JDA/releases/tag/v4.3.0


JDA-4.3.0_277-javadoc.jar

JDA-4.3.0_277-sources.jar

JDA-4.3.0_277-withDependencies.jar



wondering what are the differences here? I want to be able to run the jars code, but also be able to look at the code.
Member
Posts: 12,703
Joined: May 17 2013
Gold: 2,935.00
Nov 12 2021 03:57pm
the -sources.jar has the source code (instead of .class files)

the standard jar requires you to have dependencines installed separately, the -withDependencies includes everything necessary to run it (but no Java source files, only compiled Class files).

This post was edited by Klexmoo on Nov 12 2021 03:58pm
Member
Posts: 31,388
Joined: Mar 25 2009
Gold: 99.00
Nov 12 2021 04:02pm
Quote (Klexmoo @ Nov 12 2021 05:57pm)
the -sources.jar has the source code (instead of .class files)

the standard jar requires you to have dependencines installed separately, the -withDependencies includes everything necessary to run it (but no Java source files, only compiled Class files).


Can i still see the code with jar with dependencies?
Member
Posts: 12,703
Joined: May 17 2013
Gold: 2,935.00
Nov 12 2021 04:11pm
Quote (ferf @ 13 Nov 2021 00:02)
Can i still see the code with jar with dependencies?


Not in plaintext, as I said. It only has compiled Class files. If you use something like IntelliJ you can decompile it, but since the source is available you can just unpack the -sources.jar instead.
Member
Posts: 31,388
Joined: Mar 25 2009
Gold: 99.00
Nov 12 2021 04:38pm
Quote (Klexmoo @ Nov 12 2021 06:11pm)
Not in plaintext, as I said. It only has compiled Class files. If you use something like IntelliJ you can decompile it, but since the source is available you can just unpack the -sources.jar instead.


thanks!!
Member
Posts: 31,388
Joined: Mar 25 2009
Gold: 99.00
Nov 14 2021 02:28pm
Quote (Klexmoo @ Nov 12 2021 06:11pm)
Not in plaintext, as I said. It only has compiled Class files. If you use something like IntelliJ you can decompile it, but since the source is available you can just unpack the -sources.jar instead.


oh how do i see the source files? i know how to add jar with dependencies as library in intellij
Member
Posts: 163
Joined: Oct 9 2021
Gold: 3,109.00
Nov 16 2021 03:44pm
Get a community version of IntelliJ and you can read source code in JARs. Import the JAR and then you can expand the classes in the project explorer.

This post was edited by spiritREDRUM on Nov 16 2021 03:44pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll