How to Edit and Compile Java Jar Files

  Рет қаралды 71,831

IT Educator

IT Educator

Күн бұрын

Пікірлер: 145
@AzaleaTFG
@AzaleaTFG 5 ай бұрын
thank you, i wanted to make a simple change and all the reddit resources kept saying don't do it because you will mess up, but its just changing a mods units and adding a few files.
@AdrielLoboz
@AdrielLoboz 23 күн бұрын
Followed your tutorial step-by-step, ended up getting 178 errors... no clue what I did wrong
@kylecaudill9261
@kylecaudill9261 2 жыл бұрын
Thank you. I look forward to editing my game files.
@GetCrouchedOnNerd
@GetCrouchedOnNerd 2 жыл бұрын
My minecraft world looks loke the biblically accurate angels now
@埊
@埊 Жыл бұрын
@@GetCrouchedOnNerd Enchantcally accurate worlds
@CinemaIsG0ne
@CinemaIsG0ne 8 ай бұрын
same!!
@jiocrestfall
@jiocrestfall 2 ай бұрын
i followed the steps and kept going fine up til i needed to compile the java file i wanted to edit: a hundred errors being shown out of 300+ saying "item does not exist" for almost all the lines pls help :
@jcz8225
@jcz8225 Ай бұрын
Hola, me pasa lo mismo, has encontrado alguna solucion?
@grammor
@grammor 17 күн бұрын
@@jcz8225 te voy a ser completamente honesto, no esta bien decir "has encontrado la solucion?" porque cuando queremos recibir una notificacion o ver un mensaje de respuesta es para esperar la respuesta o solución del problema se vuelve molesto recibir este tipo de mensajes
@AD-je9nq
@AD-je9nq 12 күн бұрын
Hello , this is such a great Video , thank YOU Very much for sharing , really appreciate it brother i had a quick question for you , my code is in in the jar ,but weird is its under a folder WEB-INF and Javac is giVing errors and not compiling it says package does not exist for WEB-INF ...what do we do now ? how can we compile ? please please help brother thank you Ajay
@DasherShortsYT
@DasherShortsYT 15 күн бұрын
Issue when I try to recompile is it gives a bunch of errors about cannot finds symbol. Looking through replies, I don't understand what you mean by "make sure all dependencies are there."
@tonyfuentes9321
@tonyfuentes9321 Жыл бұрын
Than you bro Question can you make a video explaining the obfuscated and de-obfuscated java files Please thank you
@iteducator
@iteducator Жыл бұрын
Thanks, sure I'll try.
@mostdefinitelyahuman6875
@mostdefinitelyahuman6875 Күн бұрын
so I used javac, but it gave me an error saying "'javac' is not recognized as an internal or external command, operable program or batch file." Am I missing something?
@Pelota480
@Pelota480 5 ай бұрын
When I tried using the javac part, I get a bunch of errors and cant generate .class
@leonardorosadossantos9876
@leonardorosadossantos9876 5 ай бұрын
same
@RoyLye
@RoyLye 4 ай бұрын
You probably need to add the classpath javac -cp
@ardaonuk2790
@ardaonuk2790 3 ай бұрын
@@RoyLye still got same error
@ardaonuk2790
@ardaonuk2790 3 ай бұрын
@@RoyLye got the same error. you meant the jar file for unpacked file?
@iteducator
@iteducator 3 ай бұрын
you need to keep all the dependencies as well used in the java file
@justnormal2you455
@justnormal2you455 Жыл бұрын
Thanks man, imma decompile a java phone game and modify shit, thansk again!
@iteducator
@iteducator Жыл бұрын
great
@sankeths3508
@sankeths3508 Жыл бұрын
simple video which added great value, thanks very much sir
@iteducator
@iteducator Жыл бұрын
Thank you, You're welcome
@jcz8225
@jcz8225 Ай бұрын
@@iteducator tengo errores en el momento de usar javac y @jiocrestfall tambien
@googologyx
@googologyx 4 ай бұрын
I tried the javac command on a bunch of files in my Minecraft JAR file and it came back with a handful of errors
@ardaonuk2790
@ardaonuk2790 3 ай бұрын
did you fix it?
@googologyx
@googologyx 3 ай бұрын
@@ardaonuk2790 I did not
@iteducator
@iteducator 3 ай бұрын
You shoud keep all the dependencies as well used in the java file
@FreeCrazyIce
@FreeCrazyIce 2 ай бұрын
check if the jar file is a zip, if not, idk how to help with that
@banglagaming007
@banglagaming007 2 жыл бұрын
When I am going to open a jar file through jd gui, it just doesn't open!!! What should I do now???
@iteducator
@iteducator 2 жыл бұрын
Extract the jar and then open any class file as a workaround, it does not happen usually unless something is wrong with the jar file.
@padlock2257
@padlock2257 Жыл бұрын
Hi i get error when compiling. without changing anything from the .java file
@iteducator
@iteducator Жыл бұрын
please make sure all the imports are also present in the extracted folder
@ob0-china
@ob0-china 8 ай бұрын
@@iteducator do you mean that if the decompiled class file imports from other packages, i have to copy the packages into the same folder?
@yers7638
@yers7638 Жыл бұрын
Nice i can decompile files but i dont know how to recompile them nice tutorial!
@iteducator
@iteducator Жыл бұрын
You can follow the tutorial, if there is any problem.
@埊
@埊 Жыл бұрын
@@iteducator which tutorial, it doesnt work too
@mrakobes6888
@mrakobes6888 3 ай бұрын
THAAAAANKS!
@bharathreddygajjala
@bharathreddygajjala 8 ай бұрын
How do I add other package references to compile. I have dependency on other jar/packages.
@iteducator
@iteducator 6 ай бұрын
keep them in the same folder as java files, and the entire folder structure should be the same as the JAR
@chrispharaoh4838
@chrispharaoh4838 Жыл бұрын
I liked your video very much it answered my question
@iteducator
@iteducator Жыл бұрын
Thank you
@Red-ne
@Red-ne Жыл бұрын
getting bunch of erros when trying the javac command
@iteducator
@iteducator Жыл бұрын
you have to place all the class files required for compilation
@askaine
@askaine Жыл бұрын
​@@iteducator you mean if i changes multiple files i need to copy and paste them all and then do the javac command?
@iteducator
@iteducator Жыл бұрын
yes all the imported classes and its dependent classes should be present as the compiler will use them.
@droidlycodes
@droidlycodes Жыл бұрын
Ran this and it runs a bunch of errors when compiling is there a method to avoid this?
@iteducator
@iteducator Жыл бұрын
You must have all the dependency packages as well for it to compile
@tanvirflipmusic
@tanvirflipmusic 3 ай бұрын
success
@FaiMCOfficial
@FaiMCOfficial Ай бұрын
How do I Like Change a PNG There is one how do i replace it???
@iteducator
@iteducator Ай бұрын
try winrar to add or delete, keep the same file name.
@FaiMCOfficial
@FaiMCOfficial Ай бұрын
@@iteducator Oh I Actually Managed to do it a while ago But One Thing. so How do I Change it when Like the File Opens (Im Customizing a Minecraft Client) The Name of it is at the corner of the window how do I Change that?
@music8d53
@music8d53 Жыл бұрын
currently i don't switch from java to class using CMD . How to fix?
@iteducator
@iteducator Жыл бұрын
how can you switch in cmd? I don't understand your point
@AqwsSuper
@AqwsSuper Жыл бұрын
The javac command brings me errors because some of the variables and functions in the .class file are being called by other parts of the .jar file, so anytime I try to use the javac command on the one specific .class file I made changes to, it'll come up with errors saying that certain functions and variables and symbols aren't defined/recognized (because they come from other parts of the .jar), this is the only part I'm having trouble in, is there any way to convert this .java file into a .class? I've been stuck on trying to do this last part for a while
@iteducator
@iteducator Жыл бұрын
you need to place all the dependencies packages and classes in the same paths as the java file in order to compile
@AverageSchizo
@AverageSchizo 7 ай бұрын
@@iteducator what does that even meannnn what is a dependency package, you didn't cover that at all in the video?
@iteducator
@iteducator 7 ай бұрын
@@AverageSchizo it's basic programming, and as the name suggests dependency, which means the package of code that your program is dependent on. In Java these are the imported packages in start of the code file.
@Roz_ggez
@Roz_ggez 6 ай бұрын
Bro did u get any solution? I got the same problem too
@generalpashon
@generalpashon 5 ай бұрын
@@Roz_ggez put the .java file in root of unpacked archive and call the javac command here
@dongwn13
@dongwn13 Жыл бұрын
'javac' is not recognized as an internal or external command, operable program or batch file. How to resolve this??
@iteducator
@iteducator Жыл бұрын
You must have Java JDK installed. kzbin.info/www/bejne/n2OUdKl8qqmrm80
@georgekoletsis3276
@georgekoletsis3276 2 жыл бұрын
Hello! At the step "Save all sources" the save process is taking too long and it is not finally successfully saved as zip. Could you help me please?
@iteducator
@iteducator 2 жыл бұрын
the time depends on the size of the file, if it is a large file try to extract and do it in parts, also make sure you have java installed properly. Check this video to see: kzbin.info/www/bejne/n2OUdKl8qqmrm80 Are you getting any errors as well?
@georgekoletsis3276
@georgekoletsis3276 2 жыл бұрын
@@iteducator Hello again, I use Java 11 for my project. It has been installed properly for sure. I have extracted in parts as you suggested and it is working for some classes. The size of my jar is 6.88MB. Let me know if you have any other solution in order to extract the whole jar! Many thanks again :)
@officialvincentchill6582
@officialvincentchill6582 Жыл бұрын
@@georgekoletsis3276 use jd 1.4.2 or older versions bro
@itzmeee4
@itzmeee4 Жыл бұрын
I used versiom 1.4.2 and it soved mine
@ペルマナの家族
@ペルマナの家族 2 жыл бұрын
its work thankyou very much
@iteducator
@iteducator 2 жыл бұрын
You're welcome! Glad you found it helpful
@naveenkumar1999
@naveenkumar1999 2 жыл бұрын
Hey, I'm getting a package not found error while trying to compile using 'javac'. What should I do?
@iteducator
@iteducator 2 жыл бұрын
You must include it for it to compile
@naveenkumar1999
@naveenkumar1999 2 жыл бұрын
@@iteducator I have all those packages included.
@iteducator
@iteducator 2 жыл бұрын
stackoverflow.com/questions/3041543/package-not-found-javac Try this
@naveenkumar1999
@naveenkumar1999 2 жыл бұрын
@@iteducator okay thanks, I'll try that
@plamen-vw4bm
@plamen-vw4bm 2 жыл бұрын
it says java isnt recognized as an internal or external command, operable program or batch file
@iteducator
@iteducator 2 жыл бұрын
It's javac. And have you installed java in your system?
@plamen-vw4bm
@plamen-vw4bm 2 жыл бұрын
@@iteducator yes it works now but i get 112 errors when i try to compile it
@iteducator
@iteducator 2 жыл бұрын
You will have to resolve the programming errors. And make sure all the packages being used are present in the same paths as in the jar
@lawjz6927
@lawjz6927 Жыл бұрын
@@iteducator bro i installed java but i cant use javac command its jdk8 1.80 vers
@iteducator
@iteducator Жыл бұрын
@@lawjz6927 check if java is installed properly, type java -version in the command line
@Valyk027
@Valyk027 2 жыл бұрын
Thanks
@PassaggioTecnologia
@PassaggioTecnologia Ай бұрын
top
@MS-cn4dh
@MS-cn4dh 2 жыл бұрын
Hi.. I followed these steps but when I do javac filename.java in cmd, it gives me 5 errors. The errors are: cannot find Symbol (for class names). How to resolve this???
@iteducator
@iteducator 2 жыл бұрын
It occurs when you have the wrong keyword or identifier and the compiler cannot find it. Check out the exact line indicated, for a more detailed answer check out this thread. stackoverflow.com/questions/25706216/what-does-a-cannot-find-symbol-or-cannot-resolve-symbol-error-mean
@Firesealb99
@Firesealb99 2 жыл бұрын
I had to use the -classpath modifier to include the folders that had the Classes in them.
@MS-cn4dh
@MS-cn4dh 2 жыл бұрын
Hi all.. I made it work later on.. will share soon if I remember what I did.. thanks to this tutorial for help!😊
@brucergb
@brucergb 2 жыл бұрын
@@Firesealb99 works for me, but additionally I download additional missing dependencies
@ob0-china
@ob0-china 8 ай бұрын
@@MS-cn4dh hey, could you share what you did please?
@jurgenoerlemans1
@jurgenoerlemans1 Жыл бұрын
great explanation. But . . my issue is that when I want to compile the changed Java file, i get an error on the package name, which starts with package WEB-INF.string1.string2.string3 It is the '-' between WEB and INF that is not allowed. However; I didn't invent the WEB-INF: It was already in the source file (which is a working application. Anybody any ideas?
@iteducator
@iteducator Жыл бұрын
Can you share the error you're getting, and have you placed the WEB-INF in the exact path
@peony_si_ibrahimkayyis6050
@peony_si_ibrahimkayyis6050 10 ай бұрын
@@iteducator i also get the same error
@Cybermaj
@Cybermaj Жыл бұрын
Thanks!
@iteducator
@iteducator Жыл бұрын
Welcome!
@KarmaFight
@KarmaFight 2 жыл бұрын
Thanks a lot, It helped me a lot
@iteducator
@iteducator 2 жыл бұрын
Glad to hear that
@GokulRaj-iz3by
@GokulRaj-iz3by Жыл бұрын
Bro if re complied I getting error in the progam showing some is not available
@iteducator
@iteducator Жыл бұрын
yes all the imported dependencies must be placed in the same paths as well to compile the code
@GokulRaj-iz3by
@GokulRaj-iz3by Жыл бұрын
@@iteducator your great . It works fine, thanks a lot. Please keep helping people. No words to say.
@GooseAlarm
@GooseAlarm 6 ай бұрын
what if the file you want to edit is a .json?
@iteducator
@iteducator 6 ай бұрын
JSON can be edited as it is.
@manjeetcscmahisaur4848
@manjeetcscmahisaur4848 Жыл бұрын
Sir me java file me convart kar le raha hua lekin mai class file me nahi ho paa raha hai
@rooverr
@rooverr Ай бұрын
error: ')' or ',' expected }1L, 10L); ^ how do I fix this ( this happened after I typed in the javac command )
@iteducator
@iteducator Ай бұрын
check the java code in some editor, there seems to be a missing closing bracket
@NguyenChang-qn8uz
@NguyenChang-qn8uz Жыл бұрын
OMG thank you sir very muchhhh
@iteducator
@iteducator Жыл бұрын
Thanks
@Elphoquito
@Elphoquito 10 ай бұрын
cant return into .Class file i get error in cmd
@iteducator
@iteducator 9 ай бұрын
please make sure all the imports are also present in the extracted folder
@patricklee3735
@patricklee3735 Жыл бұрын
saved my day! much appreciated!
@iteducator
@iteducator Жыл бұрын
Glad it helped!
@anulagrawal5300
@anulagrawal5300 2 жыл бұрын
Will this work for EAR also ?
@iteducator
@iteducator 2 жыл бұрын
yes, it will.
@Tymek7123
@Tymek7123 Жыл бұрын
Im lost in the cmd, there is no in my this file name
@iteducator
@iteducator Жыл бұрын
what is not there in the cmd?
@ravikiranmutta1124
@ravikiranmutta1124 Жыл бұрын
its taking much time to convert source code for my respective jar file. more than 1 hr still not converted
@iteducator
@iteducator Жыл бұрын
if the jar file is too large, it can be an issue, try doing it in parts
@ravikiranmutta1124
@ravikiranmutta1124 Жыл бұрын
Tqs for suggestions will try with that.
@埊
@埊 Жыл бұрын
what if my java file has 5 classes, 3 of which are needed to be edited[these are not taking much space in notepad], will the decompilation et compilation break anything? and is the java file and executable jar file the same thing?
@iteducator
@iteducator Жыл бұрын
It won't cause an exception if there are no errors. JAR file and java file are different things.
@mystic837
@mystic837 Жыл бұрын
When save all source . It run 50%. Why bro?
@iteducator
@iteducator Жыл бұрын
Is your file too large? if yes, then try it in parts by extracting
@leno_tc_1
@leno_tc_1 2 жыл бұрын
thank you very much :)
@walidpw9358
@walidpw9358 9 ай бұрын
please any one can help me with this error : javac acceuil.java acceuil.java:3873: error: variable declaration not allowed here boolean bool = (new File("Dossier_photos")).mkdirs(); ^ 1 error all the fille are in the same folder, thank you
@iteducator
@iteducator 9 ай бұрын
check if it's already declared
@7pro455
@7pro455 Жыл бұрын
My like is number @300@❤️❤️
@user-hq4ep7ys2t
@user-hq4ep7ys2t 2 жыл бұрын
how to install java compiler?
@iteducator
@iteducator 2 жыл бұрын
you have to install Java Development Kit (JDK) for windows
@user-hq4ep7ys2t
@user-hq4ep7ys2t 2 жыл бұрын
@@iteducator ik, its old java i already fixed
@Aru8675
@Aru8675 2 жыл бұрын
Bro i don't understand anything clearly please make another video how to convert jar files into Java and then edit with the example of any game or app
@iteducator
@iteducator 2 жыл бұрын
Please watch it again, all the steps are there.
@jurgenoerlemans1
@jurgenoerlemans1 Жыл бұрын
I had some difficulties too whwn I watched it the first time , but you have to really watch carefully. All steps are shown. I made some notes with pen and paper to 'educate myself :-) . It helps . .'
@hambernat6444
@hambernat6444 5 ай бұрын
This tutorial is stupid, guy is clicking random stuff, swinging mouse right and left and doing things calling "these" in the same time moving mouse randomly...
@worldnewsvideos
@worldnewsvideos 2 жыл бұрын
❣👍👍👍👍👍👍👍👍👍
@sureshkumar-pc7qo
@sureshkumar-pc7qo 2 жыл бұрын
thank u very much :)
@iteducator
@iteducator 2 жыл бұрын
You're welcome!
«Осень». Самая большая загадка Windows XP
14:36
Девять десятых
Рет қаралды 1,1 МЛН
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 6 МЛН
REAL MAN 🤣💪🏻
00:35
Kan Andrey
Рет қаралды 39 МЛН
Java Beginner Tutorial 7 - JAR (Java Archive) basics
10:59
Automation Step by Step
Рет қаралды 105 М.
Что такое антипаттерны?
12:19
Merion Academy
Рет қаралды 45 М.
What is Jar file? | How to make a Jar in Eclipse?
10:54
Telusko
Рет қаралды 119 М.
What is Java .Class File? | GeeksforGeeks
9:37
GeeksforGeeks
Рет қаралды 25 М.
DRM explained - How Netflix prevents you from downloading videos?
18:17
Mehul - Codedamn
Рет қаралды 199 М.
30 Windows Commands you CAN’T live without
14:35
NetworkChuck
Рет қаралды 2,4 МЛН
Learn Java in 15 Minutes (seriously)
19:50
ForrestKnight
Рет қаралды 110 М.
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 6 МЛН