"...on Windows not so easy."

Would this be a reason to write an OpenJUMP launcher in a DotNET
language like C#? Then we could compile the launcher to a .exe using
an open source IDE like SharpDevelop.

The Sunburned Surveyor

On 9/24/07, Paul Austin <[EMAIL PROTECTED]> wrote:
> Landon,
>
> To do it in the batch file you would need to be able to do something
> like java --version and then extract the version string from it. Then do
> some parsing on the line that contains the version to convert it to a
> meaningful double so you could compare it. Now doing that in unix is
> "fairly" easy, on Windows not so easy.
>
> Then you have to take into account different versions of java (e.g. Sun
> v.s. blackdown) may have slightly different formats for how the version
> is displayed.
>
> Paul
>
> Sunburned Surveyor wrote:
> > Maybe I misspoke. I was thinking we could do the check in the batch
> > file itself, and not in any of OpenJUMP's Java source code.
> >
> > Is that possible?
> >
> > Landon
> >
> > On 9/24/07, Paul Austin <[EMAIL PROTECTED]> wrote:
> >
> >> In the JUMP launcher we can look at the SystemProperty
> >> java.specification.version to make sure it is >= 1.5 if not we display a
> >> window that says you must have version 1.5 or greater and maybe provide
> >> a clickable link to the Java site. Unfortunately if we compile that
> >> class with 1.5 they won't even get that far.
> >>
> >>
> >> Paul
> >>
> >>
> >> Larry Becker wrote:
> >>
> >>> After looking over the literature, I don't see a cross-platform
> >>> solution that wouldn't add to the potential problem.  I'm concerned
> >>> that it might incorrectly stop JUMP from running when it was actually
> >>> possible, due to variations in the platform and JVM.
> >>>
> >>> If it makes it as far as displaying the splash screen before lockup,
> >>> we could simply add the text "Java version 1.5 or higher required" to
> >>> the splash screen.  That way when it locks up, at least the user is
> >>> looking at a possible solution.
> >>>
> >>> regards,
> >>> Larry
> >>>
> >>> On 9/24/07, *Sunburned Surveyor* <[EMAIL PROTECTED]
> >>> <mailto:[EMAIL PROTECTED]>> wrote:
> >>>
> >>>     Jukka,
> >>>
> >>>     I have no idea how we might handle the JRE version in the batch script
> >>>     on Windows or Linux. Maybe Larry or Paul have suggestions?
> >>>
> >>>     Maybe we need to add a switch statement to the batch script that uses
> >>>     the "java -version" command and prints an error message if the
> >>>     installed version isn't appropriate.
> >>>
> >>>     If Larry and Paul can confirm I'll see if I can modify the launch
> >>>     scripts to do this.
> >>>
> >>>     The Sunburned Surveyor
> >>>
> >>>     On 9/23/07, Rahkonen Jukka <[EMAIL PROTECTED]
> >>>     <mailto:[EMAIL PROTECTED]>> wrote:
> >>>     > Hi,
> >>>     >
> >>>     > Could it be possible/simple to add some kind of Java version
> >>>     check during OpenJUMP startup?  We have lots of Java Web Start
> >>>     applications, an with them the minimum (or even strict) Java
> >>>     version can be advertised in the .jnlp file.  For the same reason
> >>>     our users may need several Java JRE versions installed, and
> >>>     sometimes it is hard to know which is the default one that is
> >>>     started by openjump.bat file. Users would be better off if they'd
> >>>     see message like "Java version 1.x or higher required" instead of
> >>>     nothing at all, all perhaps something as informative as "Unable to
> >>>     launch".
> >>>     >
> >>>     > -Jukka Rahkonen-
> >>>     >
> >>>     >
> >>>     
> >>> -------------------------------------------------------------------------
> >>>     > This SF.net email is sponsored by: Microsoft
> >>>     > Defy all challenges. Microsoft(R) Visual Studio 2005.
> >>>     > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >>>     > _______________________________________________
> >>>     > Jump-pilot-devel mailing list
> >>>     > Jump-pilot-devel@lists.sourceforge.net
> >>>     <mailto:Jump-pilot-devel@lists.sourceforge.net>
> >>>     > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>>     <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>
> >>>     >
> >>>
> >>>     
> >>> -------------------------------------------------------------------------
> >>>     This SF.net email is sponsored by: Microsoft
> >>>     Defy all challenges. Microsoft(R) Visual Studio 2005.
> >>>     http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >>>     _______________________________________________
> >>>     Jump-pilot-devel mailing list
> >>>     Jump-pilot-devel@lists.sourceforge.net
> >>>     <mailto:Jump-pilot-devel@lists.sourceforge.net>
> >>>     https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> http://amusingprogrammer.blogspot.com/
> >>> ------------------------------------------------------------------------
> >>>
> >>> -------------------------------------------------------------------------
> >>> This SF.net email is sponsored by: Microsoft
> >>> Defy all challenges. Microsoft(R) Visual Studio 2005.
> >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >>> ------------------------------------------------------------------------
> >>>
> >>> _______________________________________________
> >>> Jump-pilot-devel mailing list
> >>> Jump-pilot-devel@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>>
> >>>
> >> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by: Microsoft
> >> Defy all challenges. Microsoft(R) Visual Studio 2005.
> >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >> _______________________________________________
> >> Jump-pilot-devel mailing list
> >> Jump-pilot-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>
> >>
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to