Home » Developer & Programmer » JDeveloper, Java & XML » cannot access jxl.Workbook (11g)
icon8.gif  cannot access jxl.Workbook [message #485841] Fri, 10 December 2010 10:16 Go to next message
Messages: 1
Registered: December 2010
Junior Member

I have loaded the JXL Package using
loadjava -v -r user_name/pass@sid -r jxl.jar

Now I am trying to compile the following simple package:
create or replace and compile java source named Test as

import java.io.File;
import jxl.Workbook;

public class Test
  public static void entry(String fileName)
      File xlsFile = new File(fileName);
      Workbook workbook = Workbook.getWorkbook(xlsFile);

but I get an Error
Compilation errors for JAVA SOURCE SCOTT.TEST

Error: cannot access jxl.Workbook
Line: 4
Text: import jxl.Workbook;

Does my user need any special permissions to compile it?

What can I do?


Re: cannot access jxl.Workbook [message #486831 is a reply to message #485841] Mon, 20 December 2010 08:56 Go to previous message
Messages: 961
Registered: August 2006
Location: Stockholm/Sweden
Senior Member

Have you looked at the grant switch for loadjava ?
loadjava -user user/password@db -g user,role yourjarfile.jar

Java Developer Guide
Previous Topic: How to dynamic get thread id?
Next Topic: Extract data from XML
Goto Forum:

Current Time: Thu Sep 21 23:04:04 CDT 2023