开发者

JDK 1.6 compiled code call a JDK 1.5 compiled code. what errors will we see?

开发者 https://www.devze.com 2023-02-04 06:08 出处:网络
If a class compiled with JDK 1.6 calls another class compiled with JDK 1.5, what kind of errors will we see?

If a class compiled with JDK 1.6 calls another class compiled with JDK 1.5, what kind of errors will we see?


You should encounter no problems doing this. I have a code library with packages compiled with everything from 1.2 to 1.4 and have had absolutely no problems using it with applications compiled with Java 5 and Java 6.


I was getting the error 'Caused by: java.lang.NoClassDefFoundError:" file name

  1. Check for the file whether deploy in correct path in server or not.
  2. If deploy correctly and still not picking then check the environment java version and Eclipse java version.Both should be matched.
  3. If not matching then took the file from environment and recompile the java file in eclipse by setting the Eclipse compilation configuration changing to the Environment java version.
  4. Deploy it in server and Enjoy.
0

精彩评论

暂无评论...
验证码 换一张
取 消