Ask Your Question
0

How to correctly use LOEclipse?

asked 2017-11-03 21:20:29 +0200

I'm trying to follow the info at https://github.com/LibreOffice/loecli... to create a simple Java-based LibreOffice component in Eclipse. Unfortunately, creating a new project with the LOEclipse plugin results in an error and no skeletal implementation file.

For example, I try to create a new LibreOffice Extension project named MyExt. The result is a messagebox that says, 'Could not find "/home/David/Projects/LibreOf...e/example/comp/MyExtImpl.java". Please check the spelling and try again.' No implementation source file is generated in the skeleton project. The Error Log includes the item "ERROR: No such file <file: home="" david="" projects="" libreoffice="" myext="" types.rdb="">".

If I manually introduce an implementation file and try to run the project, the result is a messagebox stating "Error launching configuration." Error Log details state, "java.lang.reflect.InvocationTargetException: JAR creation failed" along with an exception stack trace.

Searching around, I've found no one else having a similar problem, so my guess is it's something I'm doing. Any ideas where I'm going wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-11-05 02:35:13 +0200

Ratslinger gravatar image

Hello,

Have not tried this before (although started to a while back but lost interest) so I thought I'd give it a go. Took a slightly different approach than your question (geared more toward a new component) although it seems you moved toward an extension.

Started here as your link didn't make it clear which Eclipse to install. Already had 2 others & knew they weren't right. On that same post is a link to this starter extension. Downloaded everything, imported the project, configured LOEclipse, then RUN! LibreOffice started. Since the extension was for Writer, opened Writer and there it was, new menu item & toolbar icon. Entire process was around 90 minutes (some downloading was slow).

Hope this helps.

edit flag offensive delete link more

Comments

Hi. Not sure which Eclipse I have installed, but, like you, I'm able to run the starter extension with no problem. My problem is when creating a new extension using File->New->Project->LibreOffice. Doing so and selecting "Extension project" elicits dialogs for configuring the new project. Finishing the dialogs results in an attempt to generate the new project, but the resulting project is broken. Do you get the same result, or are you able to successfully generate a new extension project?

techsquirrel gravatar imagetechsquirrel ( 2017-11-05 03:49:12 +0200 )edit

This is the Eclipse - Eclipse IDE for Eclipse Committers

Just saw you message. Opened Eclipse. Closed existing project (original test). Selected File->New->Project->LibreOffice. Chose 'Extension Project'. Next. Gave it a name - 'SomeTest' & all rest defaults as set. Rest of dialogs left all default values. Clicked finish & got new project ready for putting in the code for actual extension. Took all of about 5 minutes.

Ratslinger gravatar imageRatslinger ( 2017-11-05 04:28:31 +0200 )edit

No errors? Okay... Do you know if it's possible to install the Eclipse IDE for Eclipse Committers along side my existing Eclipse installation, or do I have to rip that out first?

techsquirrel gravatar imagetechsquirrel ( 2017-11-05 14:51:19 +0200 )edit

I currently have Eclipse for Java & C++ installed along with Committers now. Don't see a problem. Do not need to remove other Eclipse products. This is why I searched for the first link in my answer - it stated "The Eclipse IDE for Java Developers will not work."

Ratslinger gravatar imageRatslinger ( 2017-11-05 15:08:25 +0200 )edit

Not certain what Eclipse you are running since you state you are able to run the starter extension. Wouldn't think you could without correct Eclipse.

Ratslinger gravatar imageRatslinger ( 2017-11-05 15:10:33 +0200 )edit

Unfortunately, I can't discern what Eclipse I've got from either repo or About info. All I can tell is it's "Eclipse Platform Version: Neon.3 (4.6.3) Build id: X20170404-1016".

techsquirrel gravatar imagetechsquirrel ( 2017-11-05 16:09:48 +0200 )edit

I remember running across a page similar to the one you noted and, at the time, figured the Committers IDE was needed for development of the LOEclipse plugin itself, not to use the plugin. Guess I'll have to give the Committers IDE a try. And broaden my thinking. :)

techsquirrel gravatar imagetechsquirrel ( 2017-11-05 16:11:16 +0200 )edit

I've been using the Eclipse Installer from Eclipse (Linux) for a couple of years now. About info for Commiters:

Eclipse IDE for Eclipse Committers

Version: Oxygen.1a Release (4.7.1a)
Build id: 20171005-1200

About for Java Developers:

Eclipse IDE for Java Developers

Version: Mars.2 Release(4.5.2)
Build id:20160128-0600
Ratslinger gravatar imageRatslinger ( 2017-11-05 16:21:55 +0200 )edit

@techsquirrel Just an FYI. After many hours of trial and error (multiple docs & internet searches) I finally was able to generate a working component (basically the same setup-up as stated above) . This is why I looked at the project in the first place. Can now cross that one off the LO bucket list.

Ratslinger gravatar imageRatslinger ( 2017-11-05 22:52:19 +0200 )edit

Well, @Ratslinger, I really appreciate all of your help, but... I have the same problem with both Neon and Oxygen Committers IDE versions. Additionally, they each put up a dialog stating "Your '*.java' file was opened in an external system editor" along with references to changing file associations, so that's the next clue to dig into. It all leaves me to conclude that my system's really mucked up. Glad you were able to get a component working. Nice to know some good's come of this effort.

techsquirrel gravatar imagetechsquirrel ( 2017-11-07 03:06:22 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-11-03 21:20:29 +0200

Seen: 303 times

Last updated: Nov 05 '17