Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to declare required Eclipse and JRE versions?
How to declare required Eclipse and JRE versions? [message #290145] Fri, 19 August 2005 00:53 Go to next message
Rick Warren is currently offline Rick WarrenFriend
Messages: 3
Registered: July 2009
Junior Member
The plug-ins I'm developing require Eclipse 3.1 and JRE 1.5.
Unfortunately, I can't find a way to declare those dependencies to
Eclipse. The result is that, if a user installs my plug-ins into the wrong
version of Eclipse or runs Eclipse with a 1.4 JRE, everything seems fine
until they access my new functionality. Then they get an inexplicable
failure. Instead, I would like the user to get a dialog box at application
startup saying something like "The plug-in Foo requires at least JRE 1.5."

Eclipse *does* report a polite error if it's launched with a pre-1.4 JRE,
but either that version number is hard-coded or how to set it is pretty
well hidden. I've searched the Eclipse online help and Google to no avail.
Any ideas?
Re: How to declare required Eclipse and JRE versions? [message #290149 is a reply to message #290145] Fri, 19 August 2005 01:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

To specify the version of eclipse, simply use the prereqs in your plugins.
As for prereq'ing java 5.0, this is work in progress. the bug is located
in the platform / runtiem bucket.

PaScaL

Rick Warren wrote:
> The plug-ins I'm developing require Eclipse 3.1 and JRE 1.5.
> Unfortunately, I can't find a way to declare those dependencies to
> Eclipse. The result is that, if a user installs my plug-ins into the
> wrong version of Eclipse or runs Eclipse with a 1.4 JRE, everything
> seems fine until they access my new functionality. Then they get an
> inexplicable failure. Instead, I would like the user to get a dialog box
> at application startup saying something like "The plug-in Foo requires
> at least JRE 1.5."
>
> Eclipse *does* report a polite error if it's launched with a pre-1.4
> JRE, but either that version number is hard-coded or how to set it is
> pretty well hidden. I've searched the Eclipse online help and Google to
> no avail. Any ideas?
>
Re: How to declare required Eclipse and JRE versions? [message #290613 is a reply to message #290149] Sat, 27 August 2005 12:17 Go to previous message
Eclipse UserFriend
Originally posted by: azrael.xofx.de

Hi,

where can i set these requirements? In the plugin.xml?

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?> <-- HERE ???
<plugin>
[...]
</plugin>

What happens, if the eclipse version is not the version in the version tag?

Thnx.

Pascal Rapicault schrieb:
> To specify the version of eclipse, simply use the prereqs in your plugins.
> As for prereq'ing java 5.0, this is work in progress. the bug is located
> in the platform / runtiem bucket.
>
> PaScaL
>
> Rick Warren wrote:
>
>> The plug-ins I'm developing require Eclipse 3.1 and JRE 1.5.
>> Unfortunately, I can't find a way to declare those dependencies to
>> Eclipse. The result is that, if a user installs my plug-ins into the
>> wrong version of Eclipse or runs Eclipse with a 1.4 JRE, everything
>> seems fine until they access my new functionality. Then they get an
>> inexplicable failure. Instead, I would like the user to get a dialog
>> box at application startup saying something like "The plug-in Foo
>> requires at least JRE 1.5."
>>
>> Eclipse *does* report a polite error if it's launched with a pre-1.4
>> JRE, but either that version number is hard-coded or how to set it is
>> pretty well hidden. I've searched the Eclipse online help and Google
>> to no avail. Any ideas?
>>
Previous Topic:[PDE Build BVT] Target Platform can run via JUnit but not Ant?
Next Topic:Good practice? (Singleton Views)
Goto Forum:
  


Current Time: Tue Apr 23 06:15:52 GMT 2024

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

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

Back to the top