Skip to main content

problem in applet from firefox and office 2010: my_file.xls (Access is denied)

1 reply [Last post]
Joined: 2010-02-01

I load a signed applet in a web application.
The applet have to open a xls file. The scene is the next:
- Create the Workbook and the sheet of Workbook
- Open the Workbook:
String[] commands = { "cmd", "/c", "start","EXCEL.EXE", ROUTE_FILE };
Process proc = Runtime.getRuntime().exec(commands);

It works in all browsers (IE, Chrome, Safari...) except in Firefox.
(I test it with Office 2007 and it works, but now I've Office 2010 and it not works)

This is the error message in the java console:

Java Plug-in 1.6.0_27
Usar versión JRE 1.6.0_27-b07 Java HotSpot(TM) Client VM
Directorio local del usuario = C:\Users\user

c: borrar ventana de consola
f: finalizar objetos en la cola de finalización
g: liberación de recursos
h: presentar este mensaje de ayuda
l: volcar lista del cargador de clases
m: imprimir sintaxis de memoria
o: activar registro
q: ocultar consola
r: recargar configuración de norma
s: volcar propiedades del sistema y de despliegue
t: volcar lista de subprocesos
v: volcar pila de subprocesos
x: borrar antememoria del cargador de clases
0-5: establecer nivel de rastreo en <n>
---------------------------------------------------- my_file.xls (Access is denied)
at Method)
at<init>(Unknown Source)
at<init>(Unknown Source)
at jxl.Workbook.createWorkbook(
at jxl.Workbook.createWorkbook(
at mExcel.ManExcel.<init>(
at interfaz.Applet.init(
at sun.plugin2.applet.Plugin2Manager$ Source)
at Source)

Any suggestion?

Thanks in advanced,


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2011-10-07


I thoughth that excel sheet .xls is missing in your program so JVM is giving file not found exception. For Excel programming with Java, use Apache POI for reading/accessng Excel sheets in Java.