Re: Java Skeleton

"Hylke Donker" <[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
On Jan 6, 2008 5:03 PM, Taj Morton <[email protected]> wrote:

> On Jan 6, 2008 3:14 AM, Hylke Donker <[email protected]> wrote:
> > Summary: Sun's Java Runtime Environment. Needed for applications written
> in
> > the Java programming language.
> You should probably switch this to just "Sun's Java Runtime
> Environment." Autopackage will make it clear that Java is needed if
> it's not installed. It will say something like "Could not find Sun's
> Java Runtime Environment. Please install this package to continue."
>
> > When I execute the test commands I get 1.6.0, so I don't see what's the
> > problem. I use
> > require '@java.sun.com/jre ' 1.6.0
> Is the problem that Autopackage says that Java is missing? I think
> that it might not like the 1.6.0 in $INTERFACE_VERSIONS.
> $INTERFACE_VERSIONS should be versioned in the form of Major.Minor...
> Check this page for more information:
> http://autopackage.sunsite.dk/docs/devguide/ch06s03.html#id2549148
>
> In other words, try stripping the micro version: 1.6.0 -> 1.6.


Thank you for your reply. I've tried that and updated my test section to
this:

[Test]
regex="\"(.+)\""
version_info=$(java -version 2>&1)
[[ $version_info =~ $regex ]]
version=${BASH_REMATCH[1]%_*} # Get the first group and remove trailing
underscore
INTERFACE_VERSIONS=`getMajor $version`.`getMinor $version`
SOFTWARE_VERSIONS=$INTERFACE_VERSIONS

But it still says that java is not installed. Any idea what else could cause
the problem?
Thanks in advance,
Hylke


>
>
> - Taj
>
> --
> Taj
> http://www.wildgardenseed.com/Taj/blog
>
> Need a GMail invite? Email me.
> Peace cannot be kept by force; it
> can only be achieved by understanding.
>                -- A. Einstein
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
> For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.