Skip to main content



      Home
Home » Newcomers » Newcomers » can't find IPath class
can't find IPath class [message #244819] Sun, 06 January 2008 10:14 Go to next message
Eclipse UserFriend
Originally posted by: epsobolik.rcn.com

I'm trying to write a Java app that uses a
org.eclipse.jface.wizard.WizardDialog, Wizard, and WizardPage. When the
constructor for my Wizard class runs, I get an exception that boils down
to it can't find org.eclipse.core.runtime.IPath. I've tried adding every
jar that starts with org.eclipse.core and has 'runtime' or 'win32' in the
name. A little searching indicates that IPath is obsolete. I'm running
Eclipse Europa 3.3.1.1 Build M20071023-1652 on Windows XP and the jface
jar is org.eclipse.jface_3.3.1.M20070910-0800b.jar. What gives? Is that
Wizard class still using something that isn't available anymore?

Phil
Re: can't find IPath class [message #244834 is a reply to message #244819] Sun, 06 January 2008 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Phil,

When building plugins, don't edit the classpath via the properties of
the project. Always use the Dependencies tab of the MANIFEST.MF editor
for that purpose. Otherwise, all the compile time problems you fix will
just show up again at runtime.


Phil Sobolik wrote:
> I'm trying to write a Java app that uses a
> org.eclipse.jface.wizard.WizardDialog, Wizard, and WizardPage. When
> the constructor for my Wizard class runs, I get an exception that
> boils down to it can't find org.eclipse.core.runtime.IPath. I've
> tried adding every jar that starts with org.eclipse.core and has
> 'runtime' or 'win32' in the name. A little searching indicates that
> IPath is obsolete. I'm running Eclipse Europa 3.3.1.1 Build
> M20071023-1652 on Windows XP and the jface jar is
> org.eclipse.jface_3.3.1.M20070910-0800b.jar. What gives? Is that
> Wizard class still using something that isn't available anymore?
>
> Phil
>
Re: can't find IPath class [message #244843 is a reply to message #244834] Sun, 06 January 2008 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: epsobolik.rcn.com

I'm not developing a plugin. Is that what the Wizard class is for? I
building an application that requires several pages of input from the
user.
Re: can't find IPath class [message #244854 is a reply to message #244843] Sun, 06 January 2008 14:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Phil,

I'm not sure if JFace runs standalone. I wouldn't count on it. IPath
is defined in org.eclipse.equinox.common_*.jar


Phil Sobolik wrote:
> I'm not developing a plugin. Is that what the Wizard class is for? I
> building an application that requires several pages of input from the
> user.
Re: can't find IPath class [message #244858 is a reply to message #244854] Sun, 06 January 2008 14:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: epsobolik.rcn.com

OK, so I was on the wrong path from the get-go. I wasn't aware that jface
wasn't meant for apps. Is there a wizard class for apps? Or do I have to
implement my own?

Phil
Re: can't find IPath class [message #244863 is a reply to message #244858] Sun, 06 January 2008 15:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Phil,

I'm not sure it can't be used stand alone, but I don't understand why
you'd feel that necessary in the first place. Developing plugins is far
easier (with no messing with classpath jars as a good example) and RCP
lets you strip Eclipse down so that it's effectively just your
application running. Probably it's better to learn about Rich Client
Platform than to try to reinvent the wizard wheel. Unless there is a
compelling reason not to use RCP I'd strongly recommend that approach.


Phil Sobolik wrote:
> OK, so I was on the wrong path from the get-go. I wasn't aware that
> jface wasn't meant for apps. Is there a wizard class for apps? Or do
> I have to implement my own?
>
> Phil
>
Re: can't find IPath class [message #244871 is a reply to message #244863] Sun, 06 January 2008 16:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: epsobolik.rcn.com

Hmmm. I was assuming that a plugin required Eclipse to run. No? This
particular app actually has a target audience - school music teachers. It
will generate sight-reading exercises. You go through the wizard and
select the instrument, grade (NYSSMA), key, intervals, length, etc. and it
will generate a MusicXML file that you can open with just about any music
notation program. Actually, I've done a asp.net version, but was hoping
Java would let run on Mac's.

Phil
Re: can't find IPath class [message #244876 is a reply to message #244871] Sun, 06 January 2008 16:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Phil,

You should read up on RCP. It requires only a very tiny subset of the
plugins you use to run the IDE itself. It's really no different from
depending on libraries. Try it, you'll like it.


Phil Sobolik wrote:
> Hmmm. I was assuming that a plugin required Eclipse to run. No?
> This particular app actually has a target audience - school music
> teachers. It will generate sight-reading exercises. You go through
> the wizard and select the instrument, grade (NYSSMA), key, intervals,
> length, etc. and it will generate a MusicXML file that you can open
> with just about any music notation program. Actually, I've done a
> asp.net version, but was hoping Java would let run on Mac's.
>
> Phil
>
Re: can't find IPath class [message #244891 is a reply to message #244863] Mon, 07 January 2008 01:58 Go to previous messageGo to next message
Eclipse UserFriend
Ed Merks schrieb:
> Phil,
>
> I'm not sure it can't be used stand alone, but I don't understand why

JFace *is* designed to be used out of Eclipse-Context. If you want to
know the dependencies you should look at: http://wiki.eclipse.org/JFace

Besides that Ed is correct that you are much better of learning RCP, it
will save you a big amout of time when your application get's more
complex and the one of the best things about RCP is that you don't have
to maintain build.xml, ... because PDE is providing this already.

Tom

--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: can't find IPath class [message #244943 is a reply to message #244891] Mon, 07 January 2008 19:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: epsobolik.rcn.com

Thanks. I'm still confused, however. If I develop it as an Eclipse
plugin, which is what RCP seems to be for, will end-users need Eclipse to
run it?

Phil
Re: can't find IPath class [message #244948 is a reply to message #244943] Mon, 07 January 2008 19:26 Go to previous message
Eclipse UserFriend
Hi,

No you'll create a Product-Configuration-File which allows you to export
your RCP-Application.

The best thing is that you use the Mail-Example coming with Eclipse-PDE.

1.
You do File > New > Project > Plug-in Project > next (fill in Project
name e.g. Test-Mail) > next (Would you like Rich Client ... => yes) >
next RCP Mail-template > Finish

2.
Open the plugin.xml on the Overview-Tab press on "Launch an Eclipse
Application".

3.
Right click on Test-Mail in Project Explorer > New > Product
Configuration > (Filename Test-Mail) > Ok.

4.
Click "Eclipse Product Export Wizard", enter a dir-name, click finish.

5.
You are done and after some seconds/minutes you should have a ready to
deploy RCP-Application you can zip and send to your friends.

6. Go and get a book about RCP-Development from Amazon :-)

Tom

Phil Sobolik schrieb:
> Thanks. I'm still confused, however. If I develop it as an Eclipse
> plugin, which is what RCP seems to be for, will end-users need Eclipse
> to run it?
>
> Phil
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:Where to find SWT?
Next Topic:printing in Internet Explorer
Goto Forum:
  


Current Time: Thu May 29 11:59:05 EDT 2025

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

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

Back to the top