on 03-04-2008 1:01 PM
Hi Friends,
I´m trying add the external jar "jxl.jar" in my DC project.
I have created the Exernal Library DC with two public parts: Compilation version and External library with SDA. I added the "jxl.jar" the two public part.
I have added the two public part of External Library to the actual application with Used DCs. Selecting the options: At Build Time and At Run Time.
I also copied the "jxl.jar" to the Lib folder of my project.
I didn't get any errors while deploying and running the application, but when i click on Upload button i am getting this error...java.lang.NoClassDefFoundError: jxl/Workbook ..Could anybody tell me why i am getting this error
Thanks,
Cristian.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Pascal,
No..the jar doesn´t become in .ear..
I tried remove the .jar of the lib folder and add again...but, after I added the .jar in lib folder, I can´t put the jar in the DTR, the option to add the DTR is disabled.
Why this happens? How can force the upload of the jar for the DTR?
Thanks for help!
Hi Cristian,
Before adding the external library DC in the Project Reference have you created the public part of type ASSEMBLY? With Deploy Time and Run time option And added the jar in the public part?
Regards,
Mithu
Hi
To use jxl api you need to add it at two places only
1) add external jars
2)Copy jar file to the lib folder of the project
As you said- you are doing both, so the problem may be with the jar file. It might be corrupted. So download jxl.jar file again and do the same.
For using this api you need not give any project references.
Regards
Deepak
Hi
The problem may be the Excel file.
The present version of jxl.jar supports only Excel files with .xls extension and it will not support .xlsx Extension.
Plz check your Excel file extension.....
Let me know whether your problem get solved.
Regards
Chandran S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.