Inforama
Welcome!
Home
Sign In
Home
News
Sign In
Download
Resources
Screenshots
Webcasts
Community
Forums
Wiki
Support
Contact
Home
Forums
Wiki
Categories
Recent Posts
Statistics
Categories
»
1. Inforama Studio
»
1. Getting started
»
Ubuntu OpenOffice 3 run-oo3.sh issues and classpath issues
Threads [
Previous
|
Next
]
Ubuntu OpenOffice 3 run-oo3.sh issues and classpath issues
Ubuntu OpenOffice 3 run-oo3.sh issues and classpath issues
Jason Watson
5/19/09 7:33 PM
RE: Ubuntu OpenOffice 3 run-oo3.sh issues and classpath issueson
Val Cassidy
5/19/09 7:39 PM
RE: Ubuntu OpenOffice 3 run-oo3.sh issues and classpath issueson
Jason Watson
5/19/09 8:47 PM
RE: Ubuntu OpenOffice 3 run-oo3.sh issues and classpath issueson
Val Cassidy
5/20/09 8:40 AM
Jason Watson
Rank: Youngling
Posts: 2
Join Date: 5/18/09
Recent Posts
Ubuntu OpenOffice 3 run-oo3.sh issues and classpath issues
5/19/09 7:33 PM
I am attempting to run Studio 1.2 on the new Ubuntu 9.04 release (Jaunty). The release contains a slightly older version of OpenOffice than the stable version available from openoffice.org. I am getting various java exceptions when trying to start Studio. At first, I thought it was a classpath issue, so I worked on trying to find and incorporate all of the openoffice java libraries in the launch command. In the process, I have noticed several issues that may be preventing me from successfully launching Studio. I think I have read documentation provided by Inforama, and I see where Studio is suppose to be compatible with OpenOffice 3, but I wanted to post my findings on the forum for feedback.
The first thing I noticed is the script run-oo3.sh will not execute: even with proper permissions. Linux bash returns the following error:
: No such file or directory
If the script is copied into another file and permissions set to executable, the script executes. I'm not sure what could have caused this... maybe a corrupt zip file or something. The run-oo2.sh script executes fine with proper permission settings.
Additionally the variable $LIBPATH is used in the command under the classpath command option, but is not ever defined in the script. I also saw nowhere in the documentation to have it set as a user environment variable. I think maybe it should be $LIBJARS? It would be nice to have that verified if it is correct.
So I have searched for the openoffice libraries and I'm pretty sure I'm getting them included in the classpath.
The next thing I notice when trying to run Studio is some missing class definitions from the openoffice libraries. This is beginning of the errors:
ERROR: Cannot load the registered component's class:org.in4ama.editor.oo.OODocViewer
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at net.xoetrope.xui.helper.ReflectionHelper.constructViaReflection(Unknown Source)
at net.xoetrope.builder.XuiBuilder.loadClass(Unknown Source)
at net.xoetrope.builder.XuiBuilder.setupPage(Unknown Source)
at net.xoetrope.builder.XuiBuilder.readPage(Unknown Source)
at net.xoetrope.builder.XuiBuilder.loadPage(Unknown Source)
at net.xoetrope.xui.XPageManager.doLoadPage(Unknown Source)
at net.xoetrope.xui.XPageManager.loadPage(Unknown Source)
at net.xoetrope.builder.XuiBuilder.loadFrames(Unknown Source)
at net.xoetrope.xui.XPageManager.loadFrames(Unknown Source)
at net.xoetrope.xui.XPageManager.setPageDisplay(Unknown Source)
at net.xoetrope.xui.XApplicationContext.setHome(Unknown Source)
at net.xoetrope.xui.XApplicationContext.setContent(Unknown Source)
at net.xoetrope.xui.XApplicationContext.initialise(Unknown Source)
at net.xoetrope.xui.XApplicationContext.setup(Unknown Source)
at net.xoetrope.xui.XApplicationContext.<init>(Unknown Source)
at net.xoetrope.swing.app.XDockingApp.<init>(Unknown Source)
at net.xoetrope.swing.app.XDockingApp.createAndShowGUI(Unknown Source)
at net.xoetrope.swing.app.XDockingApp.access$000(Unknown Source)
at net.xoetrope.swing.app.XDockingApp$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.lang.NoClassDefFoundError: com/sun/star/document/XEventListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:637)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
at java.lang.Class.getDeclaredMethod(Class.java:1952)
at java.awt.Component.isCoalesceEventsOverriden(Component.java:5793)
at java.awt.Component.access$100(Component.java:167)
at java.awt.Component$3.run(Component.java:5747)
at java.awt.Component$3.run(Component.java:5745)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Component.checkCoalescing(Component.java:5744)
at java.awt.Component.<init>(Component.java:5713)
at java.awt.Container.<init>(Container.java:270)
at net.xoetrope.xui.XPage.<init>(Unknown Source)
at org.in4ama.editor.xui.Navigator.<init>(Navigator.java:79)
... 31 more
So, looking at the openoffice api (http://api.openoffice.org/docs/common/ref/com/sun/star/document/module-ix.html), I see that XEventListener has been deprecated. I'm not sure how long the classes have been tagged for deprecation or if they have possibly been removed in the libraries loaded from Ubuntu's package manager. So, I'm not sure if this is still a classpath issue, or something different. I have loaded all packages for Open Office 3 that seem related including many java related packages. I am using OpenJDK 6, so that may be an issue as well. The documentation for Studio just says I need OO Writer and > Java 5. If this is related to missing packages, it would be nice to compile a list of package dependencies for Linux. Has anyone else had any related issues?
******************************* UPDATE 5/19/09 ****************************************************************
Sorry about the posting about the exceptions. It was a classpath issue. I used the dir/* feature with java 1.6+ to make sure they all got included and Studio ran fine. The startup script still seems to have some issues with Ubuntu.
±0
(0 Votes)
Sign in to vote.
Top
Val Cassidy
Rank: Youngling
Posts: 23
Join Date: 2/6/09
Recent Posts
RE: Ubuntu OpenOffice 3 run-oo3.sh issues and classpath issueson
5/19/09 7:39 PM as a reply to Jason Watson.
Hi Jason,
I didn't look at this in detail but have you seen the following forum thread on Sourceforge at...
http://sourceforge.net/forum/forum.php?thread_id=2355032&forum_id=829123
It's also related to OpenOffice 3 on Ubuntu Jaunty. Have a quick look at the script at the end to see if it helps you. I'll take a more detailed look in the morning.
Cheers
Val
±0
(0 Votes)
Sign in to vote.
Top
Jason Watson
Rank: Youngling
Posts: 2
Join Date: 5/18/09
Recent Posts
RE: Ubuntu OpenOffice 3 run-oo3.sh issues and classpath issueson
5/19/09 8:47 PM as a reply to Val Cassidy.
Yeah, that answers many of the issues I had with the startup script and the classpath. Dependencies written into the documentation would be a big plus. If I ever figure them out, I would love to contribute to the effort. I have a bit of experience with Java application development and I'm also a Linux administrator. I have notice font/gui issues with using openjre and java/swing apps. It seems that there might be some going on with Studio as well. I'm going to try to replace the openjdk with the sun-jdk and see if the gui issues are reproducible.
Thanks for pointing me to that thread. I don't really know how I couldn't find that before... It wasn't because of a lack of searching.
I'll keep posting as I find stuff. I plan to load everything up on Windows to compare how it looks and functions. I really like the product so far.
Thanks,
Jason
±0
(0 Votes)
Sign in to vote.
Top
Val Cassidy
Rank: Youngling
Posts: 23
Join Date: 2/6/09
Recent Posts
RE: Ubuntu OpenOffice 3 run-oo3.sh issues and classpath issueson
5/20/09 8:40 AM as a reply to Jason Watson.
Hi Jason,
As far as I know OpenOffice 3 was only recently available for Ubuntu, hence the lag in getting it working with Inforama. But now that it is working we should be able to customize the script in version 1.3 (for Ubuntu at least).
If you want to join the project and make contributions that would be great. We'd be very interested in any other inconsistencies you find as a result of your testing. Let me know if you need anything else.
All the best
Val
±0
(0 Votes)
Sign in to vote.
Top
Copyright © 2008 - 2010