Compiling old 1.4 java code in java 1.6 using ANT -


Hi, I am trying to use the java Java project using the 1.6 Java version, but I am getting the following errors.

& gt; Package com.sun.rsasign does not exist & gt; [Javac] import com.sun.rsasign.t; & Gt; & Gt; & Gt; Symbol can not be found & gt; [Javac] Symbol: Class Base64Encoder & gt; [Javac] Location: Package Base 64 & gt; [Javac] Import base64.Base64Encoder; & Gt; Symbol can not be found & gt; [Javac] Symbol: Variable Base64Encoder

Can you please help me solve the problem? Apart from this, please also not only do I create two separate projects using the same ANT Build, which is based on 1.6 Java and it is based on 1.4 Java. I am able to compile 1.6 Java project but have been stuck in the 1.4Java project compilation.

This is not a problem with the versions during compilation. This is due to missing packages. There is no com.sun.rasign package in classpath and Base64Encoder class file

Note: when you compile Java 1.4 source with Java 1.6 compiler Try. If you make any changes to the Java API, you may get problems.

View the Leos Litter Comment, it is very useful.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -