Embedding Open Office org in a Swing frame
843810Oct 21 2008 — edited May 2 2009Hi friends,
I am doing a project in open office org and java.
I have to bring openoffice writer in to java frame. and i have to add additional tools like player etc.
It is a client/server aplication. User machine already installed with Open Office (*May be installed at any directory* path). Client application is loaded from server via webstart/applet and locates and starts Open Office org process and then load and embed it in to the application frame.
For this i have used OOoBeanViewer.java (smmple code) which came along with sdk and edited.
It is working from the command prompt but NOT working from applet or webstart. Iam getting the following error
I have posted this question in oooforum but didn't got solution. If any one have the solution plz let me know.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Error: Unresolved compilation problems:
Syntax error on token "URL", AssignmentOperator expected after this token
URL cannot be resolved
url cannot be resolved
url cannot be resolved
url cannot be resolved
Syntax error on token "goto", throw expected
_L2 cannot be resolved
Syntax error on token "goto", { expected
_L1 cannot be resolved to a type
Syntax error on token ":", ; expected
Syntax error on token "goto", @ expected
_L2 cannot be resolved to a type
Syntax error, insert "AssignmentOperator Expression" to complete Expression
Syntax error on token "goto", throw expected
_L4 cannot be resolved
Syntax error on token "goto", { expected
_L3 cannot be resolved to a type
Syntax error on token "ioexception", delete this token
Syntax error, insert "AssignmentOperator Expression" to complete Expression
ioexception cannot be resolved
ioexception cannot be resolved
Syntax error on token ":", { expected after this token
Syntax error, insert "}" to complete Block
Syntax error, insert "}" to complete Block
Syntax error, insert "}" to complete Block
at com.sun.star.lib.loader.Loader.main(Loader.java:7
at Main.main(Main.java:25)
... 9 more
Any expert know the solution?
Manu
Edited by: mm_mm on Oct 21, 2008 12:14 AM