Home » Language IDEs » Java Development Tools (JDT) » How to install JDT on Lattice Diamond Eclipse?(Installation of JDT on Lattice Diamond version of Eclipse is not obvious)
How to install JDT on Lattice Diamond Eclipse? [message #911381] |
Tue, 11 September 2012 13:32 |
Richard Haggard Messages: 8 Registered: September 2012 |
Junior Member |
|
|
We're doing PIC development on a Lattice Diamond supplied slightly older slightly modified version of Eclipse. It does not have, for example, the 'Help -> Install New Software' menu command and it is not obvious to me how I can install JDT on it. The reason we want to install JDT is so that we can execute headless builds from a batch file in a Windows environment. I am a Windows programmer who knows nothing about the Eclipse environment so I am completely at a loss as to how to get around this particular roadblock. Any and all help would be greatly appreciated.
-----------------------------
Richard Haggard
--------------------------------
Richard Lewis Haggard
|
|
| | | |
Re: How to install JDT on Lattice Diamond Eclipse? [message #912818 is a reply to message #911895] |
Fri, 14 September 2012 08:35 |
Dani Megert Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
On 12.09.2012 16:39, Richard Haggard wrote:
> Thank you for your response. However, I'm unaware of what a 'JDT batch
> compiler' is nor how such a thing could be invoked in such a fashion
> as to build our Mico projects. To restate, the problem is installing
> JDT into a the Lattice Diamond supplied eclipse, not downloading a
> full featured eclipse, which does not have all of the settings and
> whatnot to accomplish the creation of the Mico output products. I've
> already downloaded a current eclipse and confirmed that the aptBuild
> approach towards headless builds actually works perfectly well.
> However, due to platform limitations we must execute the build from
> the Lattice supplied eclipse so the problem remains that I do not know
> how to manually make JDT available to the Lattice version of eclipse.
> If you know the details of what needs to go where and what entries
> into which configuration files or whatever or maybe just a workaround
> to the lack of an 'install' mennu item then please feel free to pass
> on the details.
If 'Lattice Diamond' did not remove it, then you should find a Help >
Install New Software... menu item. If that is not the case, then you
would have to manually put all necessary plug-ins for JDT (and all the
required plug-ins that are not yet in your 'Lattice Diamond' install)
into the 'dropins' folder of your install.
Are your Mico projects real (Java) projects in the sense of Eclipse or
do you simply want to build/compile the files you have in there? If the
latter, then the batch compiler would better fit your needs. You can
think of the batch compiler as being the Eclipse version of 'javac'.
Dani
|
|
|
Re: How to install JDT on Lattice Diamond Eclipse? [message #912999 is a reply to message #912818] |
Fri, 14 September 2012 15:07 |
Richard Haggard Messages: 8 Registered: September 2012 |
Junior Member |
|
|
Is that all there is to it, just drop some .jar files plus the associated subfolder into eclipse\publics? Sounds too good to be true.
As to what the format of the project is, I'm clueless, hence my posting this question in the new to Eclipse corner. Eclipse comes up, the project loads, we manually build and there is some other magic that happens after the fact in order to move the bits onto the target platform (we're building microcontroller code, not PC applications) and many wondrous and miraculous things happen. The blind see, the lame walk and all is well.
Tried the copy thing but I guess I did not do it right because it did not work. The JDT still doesn't seem to be something that is available.
This is the command line.
eclipsec -nosplash -application org.eclipse.jdt.apt.core.aptBuild -d %WORKSPACE%
The returned error log is huge but here's the important part:
java.lang.RuntimeException: Application "org.eclipse.jdt.apt.core.aptBuild" could not be found in the registry. The applications available are: com.exer.exRCP.webBrowser.app, org.eclipse.ant.core.antRunner, org.eclipse.cdt.core.GeneratePDOM, org.eclipse.cdt.managedbuilder.core.headlessbuild, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director.app.application, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.metadata.generator.EclipseGenerator, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.ui.ide.workbench, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
--------------------------------
Richard Lewis Haggard
|
|
|
Re: How to install JDT on Lattice Diamond Eclipse? [message #915598 is a reply to message #912999] |
Mon, 17 September 2012 15:54 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
You can install features from a p2 repository using the p2 director
which ensures you don't forget a required jar.
Tom
Am 14.09.12 17:07, schrieb Richard Haggard:
> Is that all there is to it, just drop some .jar files plus the
> associated subfolder into eclipse\publics? Sounds too good to be true.
>
> As to what the format of the project is, I'm clueless, hence my posting
> this question in the new to Eclipse corner. Eclipse comes up, the
> project loads, we manually build and there is some other magic that
> happens after the fact in order to move the bits onto the target
> platform (we're building microcontroller code, not PC applications) and
> many wondrous and miraculous things happen. The blind see, the lame walk
> and all is well.
>
> Tried the copy thing but I guess I did not do it right because it did
> not work. The JDT still doesn't seem to be something that is available.
>
> This is the command line.
>
> eclipsec -nosplash -application org.eclipse.jdt.apt.core.aptBuild -d
> %WORKSPACE%
>
>
> The returned error log is huge but here's the important part:
>
> java.lang.RuntimeException: Application
> "org.eclipse.jdt.apt.core.aptBuild" could not be found in the registry.
> The applications available are: com.exer.exRCP.webBrowser.app,
> org.eclipse.ant.core.antRunner, org.eclipse.cdt.core.GeneratePDOM,
> org.eclipse.cdt.managedbuilder.core.headlessbuild,
> org.eclipse.equinox.app.error,
> org.eclipse.equinox.p2.director.app.application,
> org.eclipse.equinox.p2.director,
> org.eclipse.equinox.p2.garbagecollector.application,
> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator,
> org.eclipse.equinox.p2.publisher.InstallPublisher,
> org.eclipse.equinox.p2.publisher.EclipseGenerator,
> org.eclipse.equinox.p2.publisher.ProductPublisher,
> org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher,
> org.eclipse.equinox.p2.reconciler.application,
> org.eclipse.equinox.p2.repository.repo2runnable,
> org.eclipse.equinox.p2.repository.metadataverifier,
> org.eclipse.equinox.p2.artifact.repository.mirrorApplication,
> org.eclipse.equinox.p2.metadata.repository.mirrorApplication,
> org.eclipse.equinox.p2.updatesite.UpdateSitePublisher,
> org.eclipse.equinox.p2.publisher.UpdateSitePublisher,
> org.eclipse.equinox.p2.publisher.CategoryPublisher,
> org.eclipse.help.base.infocenterApplication,
> org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool,
> org.eclipse.ui.ide.workbench, org.eclipse.update.core.standaloneUpdate,
> org.eclipse.update.core.siteOptimizer.
> at
> org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
>
>
|
|
| | |
Re: How to install JDT on Lattice Diamond Eclipse? [message #917171 is a reply to message #915681] |
Wed, 19 September 2012 22:02 |
Richard Haggard Messages: 8 Registered: September 2012 |
Junior Member |
|
|
I really appreciate the help. It has been outstandingly informative. Sadly, I was unable to make the darned thing work.
Here's what I did: Since it looks like this is Helios rather than Indigo I made a small modification to the suggested script. I navigated to where eclipse is installed and ran this command line:
eclipse.exe -nosplash -application org.eclipse.equinox.p2.director -consoleLog -profileProperties org.eclipse.update.install.features=true -profile SDKProfile -installIU org.eclipse.jdt.feature -repository http://download.eclipse.org/releases/helios
A dos box briefly appeared with some text in it but it was so quick I could not read it. No new log messages appear to have been written to the error location.
I then went back to my problem child:
eclipsec -nosplash -application org.eclipse.jdt.apt.core.aptBuild -data %WORKSPACE%
An error dialog appears. Here's the contents of the error log:
!SESSION 2012-09-19 17:32:59.754 -----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.7.0_06
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.platform.ide -application org.eclipse.jdt.apt.core.aptBuild
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.platform.ide -application org.eclipse.jdt.apt.core.aptBuild -data %WORKSPACE%
!ENTRY org.eclipse.osgi 2 0 2012-09-19 17:33:00.308
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-09-19 17:33:00.308
!MESSAGE Bundle reference:file:plugins/org.eclipse.cdt.mylyn.ui_1.1.4.v20110204-0100-e3x.jar was not resolved.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.308
!MESSAGE Missing required bundle org.eclipse.mylyn.monitor.ui_3.0.0.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.308
!MESSAGE Missing required bundle org.eclipse.mylyn.context.core_3.0.0.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.308
!MESSAGE Missing required bundle org.eclipse.mylyn.commons.ui_3.0.0.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.308
!MESSAGE Missing required bundle org.eclipse.mylyn.monitor.core_3.0.0.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.308
!MESSAGE Missing required bundle org.eclipse.mylyn.context.ui_3.0.0.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.308
!MESSAGE Missing required bundle org.eclipse.mylyn.commons.core_3.0.0.
!ENTRY org.eclipse.osgi 2 0 2012-09-19 17:33:00.310
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-09-19 17:33:00.310
!MESSAGE Bundle org.eclipse.cdt.mylyn.ui_1.1.4.v20110204-0100-e3x [57] was not resolved.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.310
!MESSAGE Missing required bundle org.eclipse.mylyn.monitor.core_3.0.0.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.310
!MESSAGE Missing required bundle org.eclipse.mylyn.commons.core_3.0.0.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.310
!MESSAGE Missing required bundle org.eclipse.mylyn.context.core_3.0.0.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.310
!MESSAGE Missing required bundle org.eclipse.mylyn.context.ui_3.0.0.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.310
!MESSAGE Missing required bundle org.eclipse.mylyn.commons.ui_3.0.0.
!SUBENTRY 2 org.eclipse.cdt.mylyn.ui 2 0 2012-09-19 17:33:00.310
!MESSAGE Missing required bundle org.eclipse.mylyn.monitor.ui_3.0.0.
!ENTRY org.eclipse.osgi 4 0 2012-09-19 17:33:00.311
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclipse.jdt.apt.core.aptBuild" could not be found in the registry. The applications available are: com.exer.exRCP.webBrowser.app, org.eclipse.ant.core.antRunner, org.eclipse.cdt.core.GeneratePDOM, org.eclipse.cdt.managedbuilder.core.headlessbuild, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director.app.application, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.metadata.generator.EclipseGenerator, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.ui.ide.workbench, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
Since the log is complaining about two particular jar files I went looking for them and found them:
C:\lscc\LatticeMicoSystem\2.0\micosystem\eclipse\plugins\org.eclipse.cdt.mylyn.ui_1.1.4.v20110204-0100-e3x.jar
C:\lscc\LatticeMicoSystem\2.0\micosystem\eclipse\plugins\org.eclipse.cdt.mylyn.ui_1.1.4.v20110204-0100-e3x.jar
So I guess there's still something incorrect in my setup or in the manner in which I'm attempting to run the application.
--------------------------------
Richard Lewis Haggard
|
|
|
Re: How to install JDT on Lattice Diamond Eclipse? [message #954000 is a reply to message #911381] |
Mon, 22 October 2012 18:09 |
Richard Haggard Messages: 8 Registered: September 2012 |
Junior Member |
|
|
The never ending saga for how to execute a headless build continues. I'm getting closer. It turns out that the problem with missing Help menu items was actually relatively easy to remediate. There is a command item on the main menu
Windows -> Customize Perspective
that brings up dialog in which menu items can be enabled. Among these is
Help -> Install New Software
Now I can attempt to install new packages in the approved fashion, an action that has so far eluded me.
Sadly, when attempting to install JDT and error appears. Being merely human, none of the output means anything to me. Can one of you wizards point me at the way to fix this particular problem?
An error occurred while installing the items
session context was:(profile=epp.package.cpp, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]org.eclipse.cdt.debug.ui.memory.feature.jar 2.1.0.201102110609, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallFeatureAction).
The artifact file for org.eclipse.update.feature,org.eclipse.cdt.debug.ui.memory,2.1.0.201102110609 was not found.
Here's how the above error message was achieved:
Help -> Install new software.
Install dialog appears.
I clicked the Add button so I could add a new site and specified http://download.eclipse.org/releases/helios as the location.
This gives me a number of options, amoung which are Programming Languages -> Eclipse Java Development Tools.
I check this solution and click 'Next'
The next page in the wizard appears listing the packages to be installed which are:
Eclpse Java Development Tools
+ Eclipse Platform
+ Eclipse Help System
+ Eclipse RCP
+ Equinox p2 Provisioning
I click the 'Finish' button.
After a short time a 'Problem Occurred' message box appears with the above error details.
Help!
--------------------------------
Richard Lewis Haggard
|
|
| | |
Goto Forum:
Current Time: Wed Oct 09 20:22:06 GMT 2024
Powered by FUDForum. Page generated in 0.06106 seconds
|