0

this is the folderI am battling to convert classes2-dex2jar.jar.src.java.

So I deleted ONE DRIVE which was recommended. JDK-8u321 and JRE-8u321 are properly installed.

But whenever I say : javac classes2-dex2jar.jar.src.java it's saying javac: not a file. I also tried javac classes2-dex2jar.jar.src.java\* still it's javac not a file.

this file folder contains many java sourcefiles

this is the command's response

1 Answers1

0

I am unsure about the real situation.

  • Unzip classes2-dex2jar.jar.
  • It contains a sub-directory src/java/ with sources typically in a directory tree.
  • For every package there is a directory: package x.y.z giving x/y/z/.
  • You would need to call javac inside src/java listing all *.java with src/java on the class path (-cp .).
  • (It might be easier to do this in an IDE.)
Joop Eggen
  • 107,315
  • 7
  • 83
  • 138
  • Mr Joop Eggen may you please proovide me with instructions on how to do this i have already downloaded INTELLIJ IDEA an IDE i will use – JAKOB FUGGER Feb 18 '22 at 09:31
  • 1
    I'd suggest that you create a project from scratch in IDEA, write a few classes of your own, and get comfortable with compiling them. Use a package structure to get used to that. Then you'll see how to copy the source files you already have into a suitable project structure to compile them. – tgdavies Feb 18 '22 at 10:45
  • @tgdavies said it all. The Idea community edition suffices. New project with existing sources might help. – Joop Eggen Feb 18 '22 at 12:19
  • tgdavies i used yo link then i used jar c. so what i did is i said jar c classes2-dex2jar.jar.src.java and it worked . but its showing it on cmd only. i cant find the output classes2-dex2jar.jar.src.jar. so i cant find the output jarfile its only appearing on cmd – JAKOB FUGGER Feb 18 '22 at 12:38
  • on cmd i used jar c classes2-dex2jar.jar.src.java but the jar file only shows on cmd but the output is not available on the system – JAKOB FUGGER Feb 18 '22 at 13:06
  • `jar c` creates an archive. Please read the link I gave above (https://docs.oracle.com/javase/8/docs/technotes/tools/windows/jar.html) on how to use the `jar` command. – tgdavies Feb 19 '22 at 02:52
  • @JAKOBFUGGER I am afraid you need some tutorials; comments here cannot provide enough qualitative and complete info. But let that not deter you. Good luck. – Joop Eggen Feb 19 '22 at 03:01