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
MickeyMiner
Messages: 1
Registered: December 2010
Junior Member
Hi,

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?

Thanx,

mm
Re: cannot access jxl.Workbook [message #486831 is a reply to message #485841] Mon, 20 December 2010 08:56 Go to previous message
tahpush
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: Sun Dec 21 05:02:34 CST 2014

Total time taken to generate the page: 0.12488 seconds