Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7248059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:05:17+00:00 2026-05-28T22:05:17+00:00

Below is the plugin code that i have tried to reuse from an old

  • 0

Below is the plugin code that i have tried to reuse from an old code that i got my hands on.
The plugin just wont run properly.
I have copied the plugin part of the code.

Please help me trouble shoot the issue.

  1. on running in Eclipse Helios error on running the plugin

    UPDATED new error image
    validation message for plugin

    but i am using JDK 1.6
    UPDATED new error image
  2. Once i was able to run the plugin in RAD in debug mode, but was not able to install it in rad as a plugin. Since the plugin jar that was created, was not detected in Eclipse or RAD on start up.

the idea trying to achieve here is to get the <project folder location> when user tries to call the plugin. and pass that as a parameter to a stand alone code.

Activator.java

public class Activator extends AbstractUIPlugin {

    // The plug-in ID
    public static final String PLUGIN_ID = "PluginName";

    // The shared instance
    private static Activator plugin;


    public Activator() {
        plugin = this;
    }


    public void start(BundleContext context) throws Exception {
        System.out.println("Loading the PluginName");
        super.start(context);
    }


    public void stop(BundleContext context) throws Exception {
        plugin = null;
        System.out.println("Exiting the PluginName");
        super.stop(context);
    }

    public static Activator getDefault() {
        return plugin;
    }


    public static ImageDescriptor getImageDescriptor(String path) {
        return imageDescriptorFromPlugin(PLUGIN_ID, path);
    }
}

FindUnwantedJarAction.java

import org.eclipse.core.resources.IProject;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;


public class FindUnwantedJarAction implements IObjectActionDelegate {
    private IStructuredSelection selection;

    public void setActivePart(IAction arg0, IWorkbenchPart arg1) {
        // TODO Auto-generated method stub

    }

    public void run(IAction arg0) {
        IProject project = (IProject) selection.getFirstElement();
        String projName = project.getName();
        String projectLocation = project.getLocation().toString();

        //call another class with this parameter
    }

    public void selectionChanged(IAction arg0, ISelection paramSelection) {
        this.selection = (IStructuredSelection) paramSelection;
    }

}

Plugin.xml

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>

   <extension
         point="org.eclipse.ui.popupMenus">
      <objectContribution
            objectClass="org.eclipse.core.resources.IProject"
            adaptable="true"
            id="core.UnwantedJar">
         <menu
               label="Find Unwanted Jars"
               path="additions"
               id="FindUnJar.menu1">
            <separator
                  name="group1">
            </separator>
         </menu>
         <action
               label="Find!!!"
               class="core.marksman.action.FindUnwantedJarAction"
               menubarPath="FindUnJar.menu1/group1"
               enablesFor="1"
               id="CVSLocal.newAction">
         </action>
      </objectContribution>
   </extension>

</plugin>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T22:05:18+00:00Added an answer on May 28, 2026 at 10:05 pm

    You should also give your MANIFEST.MF for the full diagnosis, but the most probable cause is that you are running your RAD using a different JDK than the one your development Eclipse instance is running with (and it is earlier than your bundle target environment which is set to JavaSE-1.6 in your MANIFEST.MF).

    That might be the reason you could successfully run the RAD in the Debug mode but not as a standalone application. Please look at the log of your RAD instance and see the “java.version=” value. It should be 1.6… or later.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below is the code from a plugin for Joomla. It works on it's own
I have installed RDFlib 3.0 and everything that is needed, but when I run
I have been writing some code that creates a generic blog. Its features are
I have created a MEF plugin control that I import into my app. Now,
I have a page that uses Ryan Bates nested_form plugin . The plugin is
I have the code below ; import cv import time cv.NamedWindow(camera, 1) capture =
Currently I have the below jQuery which uses the colorbox plugin http://colorpowered.com/colorbox/ $(document).ready(function(){ $(.altbgcolor).hover(function()
I have a form that calls a success message with this code: // Form
is there any plugin for eclipse to add some space below the code so
I've run into a rather strange problem. I have a div that is rotatable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.