Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Warn about wrong Java version
Warn about wrong Java version [message #514045] Fri, 12 February 2010 04:56 Go to next message
Eclipse UserFriend
I have an RCP app that requires Java 6. How can I get it to display a
nice dialog box with a human-readable error message if it detects it is
trying to start on Java 5? Now I just get a log containing a list of all
unresolved bundles, which is not very nice.

TIA,
J.-P.
Re: Warn about wrong Java version [message #518398 is a reply to message #514045] Wed, 03 March 2010 18:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi J-P,

Just fix it: Include your jvm into your RCP to avoid this. You can specify
this in the product configuration.

--

Best Regards,
Wim Jongman
-- Who's General Failure & why is he reading my disk?
(Eclipse Old Skool Quote Service)


> I have an RCP app that requires Java 6. How can I get it to display a
> nice dialog box with a human-readable error message if it detects it is
> trying to start on Java 5? Now I just get a log containing a list of all
> unresolved bundles, which is not very nice.
>
> TIA,
> J.-P.
Re: Warn about wrong Java version [message #521619 is a reply to message #518398] Thu, 18 March 2010 06:19 Go to previous messageGo to next message
Eclipse UserFriend
> Just fix it: Include your jvm into your RCP to avoid this. You can specify
> this in the product configuration.

Bundling a whole JRE is a pain. I hate to have several java apps, each
bringing their own JRE. Isn't there an easy to display a user-friendly
warning when the wrong JRE is being used?

And if not: how exactly do I tell my RCP app to use the JRE at
/my/custom/path/to/java? For Eclipse, I'd do it in eclipse.ini, but I
have no such file in my final RCP app.

Thanks,
J.-P.
Re: Warn about wrong Java version [message #522260 is a reply to message #521619] Sun, 21 March 2010 17:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi Pellet,

> And if not: how exactly do I tell my RCP app to use the JRE at
> /my/custom/path/to/java? For Eclipse, I'd do it in eclipse.ini, but I
> have no such file in my final RCP app.

Create a .ini file with the same name as your application executable,
e.g., "application.ini", and place it at the same directory.

Alex
Re: Warn about wrong Java version [message #525697 is a reply to message #522260] Wed, 07 April 2010 04:50 Go to previous message
Eclipse UserFriend
> Create a .ini file with the same name as your application executable,
> e.g., "application.ini", and place it at the same directory.

Thanks Alex! I was missing the part about the same name as the executable.

J.-P.
Previous Topic:Command Shortcut on Dialog
Next Topic:Architect Experts: Can you critique my design?
Goto Forum:
  


Current Time: Mon Jun 23 12:37:03 EDT 2025

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

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

Back to the top