Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Sun's JDI and Eclipse ?
Sun's JDI and Eclipse ? [message #70561] Wed, 11 June 2003 04:32 Go to next message
Eclipse UserFriend
Originally posted by: bluecoder.elivefree.net

Hi All,
I am trying to get "com.sun.jdi.*;" working inside my Eclipe plugin. The
problem is when I try to:

VirtualMachineManager mgr = Bootstrap.virtualMachineManager();

This causes an error that says the view cannot be created when I try
running the plugin in run-time workbench.

My question is, is it possible to use the Sun's JDI libraries within an
Eclipse plugin, e.g. to launch a program and monitor it ?? If not, what
alternatives are there ? I know Eclipse has its own version of JDI but
this doesnt have all the features I need. Thanks for your time :)

B.
Re: Sun's JDI and Eclipse ? [message #71035 is a reply to message #70561] Wed, 11 June 2003 11:29 Go to previous messageGo to next message
Eclipse UserFriend
What error are you getting?

We are also interested in which features of the Eclipse JDI you are missing?

Darins
"B.C." <bluecoder@elivefree.net> wrote in message
news:bc6pe5$6ue$1@rogue.oti.com...
> Hi All,
> I am trying to get "com.sun.jdi.*;" working inside my Eclipe plugin. The
> problem is when I try to:
>
> VirtualMachineManager mgr = Bootstrap.virtualMachineManager();
>
> This causes an error that says the view cannot be created when I try
> running the plugin in run-time workbench.
>
> My question is, is it possible to use the Sun's JDI libraries within an
> Eclipse plugin, e.g. to launch a program and monitor it ?? If not, what
> alternatives are there ? I know Eclipse has its own version of JDI but
> this doesnt have all the features I need. Thanks for your time :)
>
> B.
>
Re: Sun's JDI and Eclipse ? [message #73206 is a reply to message #71035] Fri, 13 June 2003 05:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bluecoder.elivefree.net

Hi,
Thanks for your reply. I want to draw something everytime an object is
created so I am writing it as a plugin with a view. When I run as run-time
workbench I get the dialog box error:

\"Unable to create Part: ObjectView\"

Then in the view I get the error \"An error has occurred while creating
this view\"


The error log file says:

\"java.lang.NoClassDefFoundError: com/sun/jdi/Bootstrap
at
ie.ul.vcr.visplugins.visobj.views.Shannon.startMonitor(Shann on.java:58)
at
ie.ul.vcr.visplugins.visobj.views.DynObj.createPartControl(D ynObj.java:80)\ "

I have included the dt.jar and tools.jar as external jar files so it
should work ? The error is occuring when I try to bootstrap the JVM:

\"VirtualMachineManager mgr = Bootstrap.virtualMachineManager();\"

------------------------------------------------------------ ----------


Well I have a stand alone java appplication developed and it seemed
quicker to stay with Sun\'s JDI and instead of trying to get used to
Eclipse\'s. The reason I said that was I found it hard to get
doc\'s/tutorials on Eclipse JDI, but since a couple of profilers use it,
it must have most of the functionality. I will be looking for object
creation/deletion, method entry/exit, threads, and corresponding line
numbers as I need to build up Control Flow and Data FLow views.

I would be very grateful if I could find out why Sun\'s JDI won\'t
bootstrap inside an Eclipe plugin. Is this possible ? Thanks for all your
time :)

B.







Darin Swanson wrote:

> What error are you getting?

> We are also interested in which features of the Eclipse JDI you are missing?

> Darins
> \"B.C.\" <bluecoder@elivefree.net> wrote in message
> news:bc6pe5$6ue$1@rogue.oti.com...
> > Hi All,
> > I am trying to get \"com.sun.jdi.*;\" working inside my Eclipe plugin. The
> > problem is when I try to:
> >
> > VirtualMachineManager mgr = Bootstrap.virtualMachineManager();
> >
> > This causes an error that says the view cannot be created when I try
> > running the plugin in run-time workbench.
> >
> > My question is, is it possible to use the Sun\'s JDI libraries within an
> > Eclipse plugin, e.g. to launch a program and monitor it ?? If not, what
> > alternatives are there ? I know Eclipse has its own version of JDI but
> > this doesnt have all the features I need. Thanks for your time :)
> >
> > B.
> >
Re: Sun's JDI and Eclipse ? [message #73391 is a reply to message #73206] Fri, 13 June 2003 08:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: darin_swanson.oti.com

Have you correctly configured your plugin.xml requirements?
<requires>
<import plugin="org.eclipse.jdt.debug."/>
...etc.
</requires>

Darins

"B." <bluecoder@elivefree.net> wrote in message
news:bcc4j8$qpk$1@rogue.oti.com...
> Hi,
> Thanks for your reply. I want to draw something everytime an object is
> created so I am writing it as a plugin with a view. When I run as run-time
> workbench I get the dialog box error:
>
> \"Unable to create Part: ObjectView\"
>
> Then in the view I get the error \"An error has occurred while creating
> this view\"
>
>
> The error log file says:
>
> \"java.lang.NoClassDefFoundError: com/sun/jdi/Bootstrap
> at
> ie.ul.vcr.visplugins.visobj.views.Shannon.startMonitor(Shann on.java:58)
> at
>
ie.ul.vcr.visplugins.visobj.views.DynObj.createPartControl(D ynObj.java:80)\ "
>
> I have included the dt.jar and tools.jar as external jar files so it
> should work ? The error is occuring when I try to bootstrap the JVM:
>
> \"VirtualMachineManager mgr = Bootstrap.virtualMachineManager();\"
>
> ------------------------------------------------------------ ----------
>
>
> Well I have a stand alone java appplication developed and it seemed
> quicker to stay with Sun\'s JDI and instead of trying to get used to
> Eclipse\'s. The reason I said that was I found it hard to get
> doc\'s/tutorials on Eclipse JDI, but since a couple of profilers use it,
> it must have most of the functionality. I will be looking for object
> creation/deletion, method entry/exit, threads, and corresponding line
> numbers as I need to build up Control Flow and Data FLow views.
>
> I would be very grateful if I could find out why Sun\'s JDI won\'t
> bootstrap inside an Eclipe plugin. Is this possible ? Thanks for all your
> time :)
>
> B.
>
>
>
>
>
>
>
> Darin Swanson wrote:
>
> > What error are you getting?
>
> > We are also interested in which features of the Eclipse JDI you are
missing?
>
> > Darins
> > \"B.C.\" <bluecoder@elivefree.net> wrote in message
> > news:bc6pe5$6ue$1@rogue.oti.com...
> > > Hi All,
> > > I am trying to get \"com.sun.jdi.*;\" working inside my Eclipe
plugin. The
> > > problem is when I try to:
> > >
> > > VirtualMachineManager mgr = Bootstrap.virtualMachineManager();
> > >
> > > This causes an error that says the view cannot be created when I try
> > > running the plugin in run-time workbench.
> > >
> > > My question is, is it possible to use the Sun\'s JDI libraries within
an
> > > Eclipse plugin, e.g. to launch a program and monitor it ?? If not,
what
> > > alternatives are there ? I know Eclipse has its own version of JDI but
> > > this doesnt have all the features I need. Thanks for your time :)
> > >
> > > B.
> > >
>
>
>
>
>
Re: Sun's JDI and Eclipse ? [message #73638 is a reply to message #73391] Fri, 13 June 2003 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bluecoder.elivefree.net

I don't have these but I thought that they would not be needed since I am
using Sun's JDI libs and not Eclipse's, would they not conflict ?

I tried putting these in the plugin.xml after your reccemendation but it
fails to load the plugin and gives "error reading plugin registry"
problems.

I look forward to your help :) Thanks

Darin Swanson wrote:

> Have you correctly configured your plugin.xml requirements?
> <requires>
> <import plugin="org.eclipse.jdt.debug."/>
> ...etc.
> </requires>

> Darins

> "B." <bluecoder@elivefree.net> wrote in message
> news:bcc4j8$qpk$1@rogue.oti.com...
> > Hi,
> > Thanks for your reply. I want to draw something everytime an object is
> > created so I am writing it as a plugin with a view. When I run as run-time
> > workbench I get the dialog box error:
> >
> > \"Unable to create Part: ObjectView\"
> >
> > Then in the view I get the error \"An error has occurred while creating
> > this view\"
> >
> >
> > The error log file says:
> >
> > \"java.lang.NoClassDefFoundError: com/sun/jdi/Bootstrap
> > at
> > ie.ul.vcr.visplugins.visobj.views.Shannon.startMonitor(Shann on.java:58)
> > at
> >
> ie.ul.vcr.visplugins.visobj.views.DynObj.createPartControl(D ynObj.java:80)\ "
> >
> > I have included the dt.jar and tools.jar as external jar files so it
> > should work ? The error is occuring when I try to bootstrap the JVM:
> >
> > \"VirtualMachineManager mgr = Bootstrap.virtualMachineManager();\"
> >
> > ------------------------------------------------------------ ----------
> >
> >
> > Well I have a stand alone java appplication developed and it seemed
> > quicker to stay with Sun\'s JDI and instead of trying to get used to
> > Eclipse\'s. The reason I said that was I found it hard to get
> > doc\'s/tutorials on Eclipse JDI, but since a couple of profilers use it,
> > it must have most of the functionality. I will be looking for object
> > creation/deletion, method entry/exit, threads, and corresponding line
> > numbers as I need to build up Control Flow and Data FLow views.
> >
> > I would be very grateful if I could find out why Sun\'s JDI won\'t
> > bootstrap inside an Eclipe plugin. Is this possible ? Thanks for all your
> > time :)
> >
> > B.
> >
> >
> >
> >
> >
> >
> >
> > Darin Swanson wrote:
> >
> > > What error are you getting?
> >
> > > We are also interested in which features of the Eclipse JDI you are
> missing?
> >
> > > Darins
> > > \"B.C.\" <bluecoder@elivefree.net> wrote in message
> > > news:bc6pe5$6ue$1@rogue.oti.com...
> > > > Hi All,
> > > > I am trying to get \"com.sun.jdi.*;\" working inside my Eclipe
> plugin. The
> > > > problem is when I try to:
> > > >
> > > > VirtualMachineManager mgr = Bootstrap.virtualMachineManager();
> > > >
> > > > This causes an error that says the view cannot be created when I try
> > > > running the plugin in run-time workbench.
> > > >
> > > > My question is, is it possible to use the Sun\'s JDI libraries within
> an
> > > > Eclipse plugin, e.g. to launch a program and monitor it ?? If not,
> what
> > > > alternatives are there ? I know Eclipse has its own version of JDI but
> > > > this doesnt have all the features I need. Thanks for your time :)
> > > >
> > > > B.
> > > >
> >
> >
> >
> >
> >
Re: Sun's JDI and Eclipse ? [message #73674 is a reply to message #73391] Fri, 13 June 2003 11:05 Go to previous message
Eclipse UserFriend
Originally posted by: bluecoder.elivefree.net

When I add to the plugin.xml:

<import plugin="org.eclipse.jdt.core"/>
<import plugin="org.eclipse.jdt.ui"/>
<import plugin="org.eclipse.jdt.debug"/>
<import plugin="org.eclipse.jdt.debug.ui"/>
<import plugin="org.eclipse.jdt.launching"/>

I get the following error:

java.lang.IncompatibleClassChangeError

for this line:

VirtualMachineManager mgr = Bootstrap.virtualMachineManager();

Since this works as a stand alone app I am wondering why it doesnt work
within eclipse ?

B.C.
Previous Topic:[q] feature.xml problem
Next Topic:Problem displaying markers in class file editor ruler
Goto Forum:
  


Current Time: Mon Jun 02 18:03:45 EDT 2025

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

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

Back to the top