简体   繁体   中英

how do i replace a jar present in tomcat lib directory with a directory consisting of all the .java files?

my tomcat lib directory consists of a jar which i want to replace with a directory containing all the .java files contained in the above mentioned jar. Will addition of that directory to classpath in setenv.sh solve the problem? eg PATH=$CLASSPATH:$XYZ/folder/*

Thanks in advance.

我相信您需要* .class文件而不是* .java

The jar file consists of all already compiled and packed up files. If you want to get the .Java files consisted in the jar file, you could decompile them, but it's not the best solution. You should rather find the source of the library (the jar file) or ask the maker of the .jar file to share it with you. There is no easy method of decompiling the .class files (consisted in the .jar file). It is possible, and you will get working .Java files, but the code will have a lot of strange blocks and things.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM