Forums de discussion

package javax.activation does not exist

thumbnail
Sushil Mayengbam, modifié il y a 13 années.

package javax.activation does not exist

Junior Member Publications: 53 Date d'inscription: 17/02/10 Publications récentes
Hi,

I was trying to use the javax.activation.DataHandler for handling SwA (SOAP with Attachment) in Liferay platform. Though the required JAR file ('activation.jar' containing the package) is there at Java Build Path, compiling of my java classes using the package "javax.activation.*" results the error, "package javax.activation doesn't exist". My java classes are in a folder created inside 'ext-impl'.

I'm attaching the java Build Path screenshot for the ext project (inside it, my folder using the class(javax.activation.DataHandler) in the package is there).

Appreciate your kind concern if you have any idea on this.

Thanks,
Sushil

Pièces jointes:

thumbnail
Sushil Mayengbam, modifié il y a 13 années.

RE: package javax.activation does not exist

Junior Member Publications: 53 Date d'inscription: 17/02/10 Publications récentes
Sorry for posting a question in a wrong place. I will take care next time.

I feel, it should be posted to the 'Eclipse/ANT' mailing list.

For those who have experienced the same issue, here is the quick solution:

1. Go to: Eclipse>>Windows>>Preferences>>Ant>>Runtime

2. Select 'Classpath' tab on the right panel.

3. Add the 'activation.jar' using the 'Add JARs..' button.

Thanks,
Sushil