Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Trouble deploying plugin
Trouble deploying plugin [message #79341] Fri, 20 June 2003 13:36
Eclipse UserFriend
Originally posted by: eipe.NOSPAMuiuc.edu

Hi

I'm trying to set up a plugin for a C environment in Eclipse 2.1.
In a nutshell, I'm able to import the jar, and I'm able to see the menu
item for the plugin, but it won't build the jar file, so I just get an
error message when I try to run it. This is expected since Eclipse tells
me there are a lot of errors. However, this plugin was written by someone
else, and it worked, so if you can suggest anything, I would appreciate it.
I added all the plugins that this plugin depends on, to the Build Path but
that didn't help.

See below for details.

Thanks in advance


This is the detailed description of the steps I take:

1. Created a new project called org.eclipse.cdt

2. To import the cdt.jar file into the workspace, I:
a. Clicked on File - Import - Zip File
b. Browsed to and chose org.eclipse.cdt.jar
c. Clicked on Finish to import the project
d. There were a few prompts for overwriting .classpath, etc .. files,
said 'yes to all' and this imported the project into the
workspace
3. In the Package Explorer View, I can see 3 folders:
a. Eclipse C UI
b. example-code
c. icons

besides the plugin.xml file and some others.

4. The org.eclipse.cdt project has a red x, indicating that it can't
build/compile.

5. To 'install the plugin', I try to:
a. Export to c:\eclipse\plugins\cdt.jar , but the creation of the JAR
fails because:


JAR creation failed. See details for additional information.
class file(s) on classpath not found or not accessible
/org.eclipse.cdt/Eclipse C UI/org/eclipse/cdt/internal/cmodel/CElement.java
class file(s) on classpath not found or not accessible
/org.eclipse.cdt/Eclipse C
UI/org/eclipse/cdt/internal/cmodel/CElementFactory.java

etc..

b. I can get around this by exporting just the plugin.xml file to the
c:\eclipse\plugins\plugin.xml, and ..
c. copying the source org.eclipse.cdt.jar to c:\eclipse\plugins\cdt.jar
(cdt.jar is the name of the runtime library as specified in the
plugin)

6. Now when I restart eclipse, under Window - Show View - Other, I see:
A view category 'C', and a view with label 'Build Output Console' under
this:

7. If I click on this View, I get a popup with the error message:

Unable to instantiate view: org.eclipse.cdt.ui.BuildConsoleView

Reason:
Unable to instantiate view: org.eclipse.cdt.ui.BuildConsoleView

8. If I double-click on the plugin.xml file, it opens up in the editor.
If I look at the overview, this tells me all of the plugins that are
required by this CPlugin.
?If I click on the (Required) plugin in the list of required plugins,
they open up another window, and that
tells me which specific xyz.jar file I need to add to the Java Build
Path?

They are:

Plugin -> I added this external JAR to the Java Build Path
(To add an external JAR, right click on the project in the Navigator view,
choose Properties, click on Java Build Path on the left, and hit the
button 'Add External JARs', and browse to the JAR file that you want to
add)

org.eclipe.ui -> c:\eclipe\plugins\org.eclipe.ui_2.1.0\ui.jar

org.eclipse.core.resources ->
c:\eclipse\plugins\org.eclipse.core.resources_2.1.0\resource s.jar

org.eclipse.jdt.ui -> c:\eclipe\plugins\org.eclipse.jdt.ui_2.1.0\jdt.jar
org.apache.xerces
-> c:\eclipse\plugins\org.apache.xerces_4.0.13\xmlParserAPIs.ja r (or 4.0.7)
-> c:\eclipse\plugins\org.apache.xerces_4.0.13\xercesImpl.jar (or 4.0.13)

org.eclipse.search-> c:\eclipse\plugins\org.eclipse.search_2.1.0\search.jar
org.eclipse.compare
-> c:\eclipse\plugins\org.eclipse.copmare_2.1.0\compare.jar

org.eclipse.debug.ui -> c:\eclipse\plugins\org.eclipse.debug.ui_2.1.0\dtui.jar

org.eclipse.debug.core
-> c:\eclipse\plugins\org.eclipse.debug.core_2.1.0\dtcore.jar
Previous Topic:External Tools Plugin in 2.1.1 and 3.0 M1
Next Topic:Need option to replace tab characters with spaces
Goto Forum:
  


Current Time: Sun May 11 10:21:03 EDT 2025

Powered by FUDForum. Page generated in 0.02663 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top