on 04-01-2014 12:16 PM
Hi,
When I try this example(upload excel in wd java) http://wiki.scn.sap.com/wiki/display/WDJava/Uploading+excel+file+using+WebDynpro+for+Java i m getting the following build errors.
[javac] ERROR: D:\WS1.0.jdi\0\t\EE51CE12D57697FB14956F6EE59B2F38\gen_wdp\packages\java:26: package jxl does not exist
[javac] ERROR: import jxl.Sheet;
[javac] ERROR: D:\WS1.0.jdi\0\t\EE51CE12D57697FB14956F6EE59B2F38\gen_wdp\packages\.java:27: package jxl does not exist
[javac] ERROR: import jxl.Workbook;
[javac] ERROR: D:\WS1.0.jdi\0\t\EE51CE12D57697FB14956F6EE59B2F38\gen_wdp\packages\java:293: cannot find symbol
[javac] ERROR: symbol : class Cell
[javac] ERROR: Cell c1 = sh.getCell(i,j);
Pls help me solve this and I found this is coz of this code.
Add jxl.jar into your lib folder from resource perpective and add the jar to your build path.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its a standard issue when using external libraries and especially common with excel in WDJ.
Firstly, your compiler is not able to recognize the source of these new methods used in the method ex: jxl. So, try to add the dependency at compile time too.
You can refer my blog on the similar issue:
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Sakthi,
This error comes when your code didn't refer the required jar file at run time
You can try:
1) Add jxl.jar file into your java build path and lib folder of your application.
or
2) Check following link for creating external dc & add dependency.
Thanks & Regards,
Patralekha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.