Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Plugin using javax.comm
Plugin using javax.comm [message #290864] Fri, 02 September 2005 12:53 Go to next message
Eclipse UserFriend
Originally posted by: uvesten.dtek.chalmers.se

Hi!

I am developing an eclipse plugin that is really just a serial terminal,
used for talking to some experimental hardware over a serial port.
First I made the application as a standalone java application, which
compiles and runs from eclipse w/o problems.

However, after porting the app to an eclipse plugin, the plugin doesn't work
(NoClassDefFoundError). I have tried setting all the paths, comm.jar is in
my jre/lib/ext dir, it works standalone and from the command line, but the
eclipse plugin can't seem to find it.
Can anyone help me with this?

Attached below is the error log:

regds,
/
petter

java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sv_SE
Framework arguments: -product org.eclipse.sdk.ide -pdelaunch
Command-line arguments: -product org.eclipse.sdk.ide -data
C:\gee\runtime-EclipseApplication -dev
file:C:/gee/workspace/.metadata/.plugins/org.eclipse.pde.cor e/Eclipse
Application/dev.properties -pdelaunch -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui 4 4 2005-09-02 14:24:44.484
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2005-09-02 14:24:44.500
!MESSAGE javax/comm/CommPortIdentifier
!STACK 0
java.lang.NoClassDefFoundError: javax/comm/CommPortIdentifier
Re: Plugin using javax.comm [message #290875 is a reply to message #290864] Fri, 02 September 2005 15:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"P" <uvesten@dtek.chalmers.se> wrote in message
news:df9hun$iah$1@news.eclipse.org...
> Hi!
>
> I am developing an eclipse plugin that is really just a serial terminal,
> used for talking to some experimental hardware over a serial port.
> First I made the application as a standalone java application, which
> compiles and runs from eclipse w/o problems.
>
> However, after porting the app to an eclipse plugin, the plugin doesn't
> work (NoClassDefFoundError). I have tried setting all the paths, comm.jar
> is in my jre/lib/ext dir, it works standalone and from the command line,
> but the eclipse plugin can't seem to find it.
> Can anyone help me with this?
>
Have you added comm.jar to your plugin classpath?
A plugin doesn't automatically pick up all jars in the JRE lib folders.
By default it only picks up a few. You can expand the "JRE System Library"
node in your plugin project to see which ones.
---
Sunil
Re: Plugin using javax.comm [message #290938 is a reply to message #290875] Mon, 05 September 2005 08:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: uvesten.dtek.chalmers.se

"Sunil Kamath" <sunil_kamath@nohotspammail.com> wrote in message
news:df9pl9$u0g$1@news.eclipse.org...
>
> "P" <uvesten@dtek.chalmers.se> wrote in message
> news:df9hun$iah$1@news.eclipse.org...
>> Hi!
>>
>> I am developing an eclipse plugin that is really just a serial terminal,
>> used for talking to some experimental hardware over a serial port.
>> First I made the application as a standalone java application, which
>> compiles and runs from eclipse w/o problems.
>>
>> However, after porting the app to an eclipse plugin, the plugin doesn't
>> work (NoClassDefFoundError). I have tried setting all the paths, comm.jar
>> is in my jre/lib/ext dir, it works standalone and from the command line,
>> but the eclipse plugin can't seem to find it.
>> Can anyone help me with this?
>>
> Have you added comm.jar to your plugin classpath?
> A plugin doesn't automatically pick up all jars in the JRE lib folders.
> By default it only picks up a few. You can expand the "JRE System Library"
> node in your plugin project to see which ones.
> ---
> Sunil
>

comm.jar is included in the JRE settings for the project, still no go...
Is there any other way to force the plugin to use it?

/
petter
Re: Plugin using javax.comm [message #290949 is a reply to message #290938] Mon, 05 September 2005 12:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"P" <uvesten@dtek.chalmers.se> wrote in message
news:dfh1cu$1sc$1@news.eclipse.org...
> "Sunil Kamath" <sunil_kamath@nohotspammail.com> wrote in message
> news:df9pl9$u0g$1@news.eclipse.org...
>>
>> "P" <uvesten@dtek.chalmers.se> wrote in message
>> news:df9hun$iah$1@news.eclipse.org...
>>> Hi!
>>>
>>> I am developing an eclipse plugin that is really just a serial terminal,
>>> used for talking to some experimental hardware over a serial port.
>>> First I made the application as a standalone java application, which
>>> compiles and runs from eclipse w/o problems.
>>>
>>> However, after porting the app to an eclipse plugin, the plugin doesn't
>>> work (NoClassDefFoundError). I have tried setting all the paths,
>>> comm.jar is in my jre/lib/ext dir, it works standalone and from the
>>> command line, but the eclipse plugin can't seem to find it.
>>> Can anyone help me with this?
>>>
>> Have you added comm.jar to your plugin classpath?
>> A plugin doesn't automatically pick up all jars in the JRE lib folders.
>> By default it only picks up a few. You can expand the "JRE System
>> Library" node in your plugin project to see which ones.
>> ---
>> Sunil
>>
>
> comm.jar is included in the JRE settings for the project, still no go...
> Is there any other way to force the plugin to use it?
>
If comm.jar has any other dependent jars, make sure to add those as well to
the classpath.
It's possible that the class not being found is not a comm.jar class.
Did you try debugging?
---
Sunil
Re: Plugin using javax.comm [message #291002 is a reply to message #290864] Tue, 06 September 2005 07:51 Go to previous message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
I remember that setting the osgi.parentClassloader VM property to "ext"
helped in my case, i.e. add

-Dosgi.parentClassloader=ext

to the VM parameters in your launch config / start script.

See (URL may wrap)
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html for a list of options.

-tom

On Fri, 2005-09-02 at 14:53 +0200, P wrote:
> Hi!
>
> I am developing an eclipse plugin that is really just a serial terminal,
> used for talking to some experimental hardware over a serial port.
> First I made the application as a standalone java application, which
> compiles and runs from eclipse w/o problems.
>
> However, after porting the app to an eclipse plugin, the plugin doesn't work
> (NoClassDefFoundError). I have tried setting all the paths, comm.jar is in
> my jre/lib/ext dir, it works standalone and from the command line, but the
> eclipse plugin can't seem to find it.
> Can anyone help me with this?
>
> Attached below is the error log:
>
> regds,
> /
> petter

>
Previous Topic:Filtering .project from the ResourceNavigator
Next Topic:Line Numbering in text editors
Goto Forum:
  


Current Time: Thu Apr 25 13:22:39 GMT 2024

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

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

Back to the top