Recaf
Recaf copied to clipboard
您好,大佬, springboot 项目 直接导出有问题,没有做任何修改,可以帮忙看看吗?
没有做修改,直接导出,大小直接少了10M

据我所知,Recaf会优化一些访问不到的字节码指令,移除这些垃圾指令是会减少jar包体积的。
As far as I know, Recaf will optimize some instructions that cannot be accessed. Remove these garbage instructions will reduce the volume of the jar package.
Maybe you use English to ask questions better
ok
Recaf also compresses jar files by default. In 2X there's not a UI front for it, but it can be disabled in backend.json
"backend.compressexport": true
But yes, English is proffered for issues.
jar package is reduced, but it cannot be started successfully
springboot project export cannot be started successfully,but other project can be started successfully.
such as recaf-2.21.13-j8-jar-with-dependencies.jar
thanks, i try
thank you.but I cannot find where it can be disabled in backend .if have UI front ,better
Can you give me a configured jar?thank you
thank you.but I cannot find where it can be disabled in backend .if have UI front ,better
Can you give me a configured jar?thank you
C:\Users\{your name}\AppData\Roaming\Recaf\config\backend.json
thank you.but I cannot find where it can be disabled in backend .if have UI front ,better Can you give me a configured jar?thank you
C:\Users{your name}\AppData\Roaming\Recaf\config\backend.json ok,thank you,i try it
thank you.but I cannot find where it can be disabled in backend .if have UI front ,better Can you give me a configured jar?thank you
C:\Users{your name}\AppData\Roaming\Recaf\config\backend.json I try it, BUT springboot project export cannot be started successfully original springboot project can be started successfully
![]()
I try it, BUT springboot project export cannot be started successfully
What error does it give you?
I try it, BUT springboot project export cannot be started successfully
What error does it give you? sorry ,I went to dinner. I just saw it
I found that the original directory has changed

I'll need access to a small sample which demonstrates this behavior to see why the io folder is being removed. But that seems odd that it vanishes like that.
I'll need access to a small sample which demonstrates this behavior to see why the
iofolder is being removed. But that seems odd that it vanishes like that.
I solved it through other ways. I'll decompress and replace .class file directly. Thank you all the same
While this does solve the issue, I'd like to have an example so that I can fix this regardless. Somebody else will likely encounter the same issue.
While this does solve the issue, I'd like to have an example so that I can fix this regardless. Somebody else will likely encounter the same issue. https://start.spring.io/ You can use this website to generate a demo and try it
👍 Thanks
While this does solve the issue, I'd like to have an example so that I can fix this regardless. Somebody else will likely encounter the same issue.
SpringBoot jar standard structure:
-BOOT-INF
-META-INF
-org
Our code is located in /BOOT-INF/classes
Reason: /BOOT-INF/classes/io move to /io
The 3.x should resolve this issue #401
^^ That and some rewrite logic I'm doing will better support jar-in-jar content down the road
Not going to address in 2X, but 3X. Stay tuned for that.

