You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Maria Jesus Turiel <ma...@silicetelecom.com> on 2009/02/25 14:28:37 UTC

Build problem with java 1.6

Hi,

I'm trying to compile apache lenya in java 1.6, but when I change
parameter in local.build.properties 'parametro src.java.version=1.5' to
'parametro src.java.version=1.6' i get the next error in build:

.....
to /home/maje/apps/apache-lenya-2.0.2/build/lenya/api javac: source
release 1.6 requires target release 1.6
...

I have execute previous build.sh clean but I get the same error

Dou you know about this?

Thanks    

   Maje


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Thorsten Scherler <th...@apache.org>.
On Fri, 2009-02-27 at 22:19 +0100, Andreas Hartmann wrote:
...
> > The problem is caused because ant 1.6.5 is unable to detect java 1.6. I
> > did update lenya branch 2.0.x to ant 1.7.1 and now to build with java
> > 1.6 we don't have to use the target.vm property.
> 
> alright, thanks for clarifying and fixing this!

Yeah, muchas gracias Antonio. :)

salu2
-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source <consulting, training and solutions>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Andreas Hartmann <an...@apache.org>.
Hi Antonio,

Antonio Gallardo schrieb:
> Andreas Hartmann escribió:
>> Hi Maria Jesus,
>>
>> Maria Jesus Turiel schrieb:
>>> I'm trying to compile apache lenya in java 1.6, but when I change
>>> parameter in local.build.properties 'parametro src.java.version=1.5' to
>>> 'parametro src.java.version=1.6' i get the next error in build:
>>>
>>> .....
>>> to /home/maje/apps/apache-lenya-2.0.2/build/lenya/api javac: source
>>> release 1.6 requires target release 1.6
>> it looks like you have to set the parameter for the target release as
>> well. IIRC the parameter name is "target.vm".
> 
> Hi Andreas,
> 
> The above suggestion "set property target.vm=1.6" is just a workaround.
> 
> The problem is caused because ant 1.6.5 is unable to detect java 1.6. I
> did update lenya branch 2.0.x to ant 1.7.1 and now to build with java
> 1.6 we don't have to use the target.vm property.

alright, thanks for clarifying and fixing this!

Have a nice weekend,

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Antonio Gallardo <ag...@agssa.net>.
Andreas Hartmann escribió:
> Hi Maria Jesus,
>
> Maria Jesus Turiel schrieb:
>> I'm trying to compile apache lenya in java 1.6, but when I change
>> parameter in local.build.properties 'parametro src.java.version=1.5' to
>> 'parametro src.java.version=1.6' i get the next error in build:
>>
>> .....
>> to /home/maje/apps/apache-lenya-2.0.2/build/lenya/api javac: source
>> release 1.6 requires target release 1.6
>
> it looks like you have to set the parameter for the target release as
> well. IIRC the parameter name is "target.vm".

Hi Andreas,

The above suggestion "set property target.vm=1.6" is just a workaround.

The problem is caused because ant 1.6.5 is unable to detect java 1.6. I
did update lenya branch 2.0.x to ant 1.7.1 and now to build with java
1.6 we don't have to use the target.vm property.

Best Regards,

Antonio Gallardo.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Antonio Gallardo <ag...@agssa.net>.
Andreas Hartmann escribió:
> Apart from that, there were some reports about issues with Java 1.6. 
Would you share some concrete cases?

Best Regards,

Antonio Gallardo.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Maria Jesus Turiel <ma...@silicetelecom.com>.
I have 2 diferent servers:

- In the first, Debian Lenny:

              java version "1.6.0_07"
              Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
              Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)


- The second, it was Debian etch, but it has been upgraded and installed
after the package below:

sun-java6-bin           6-12-1          Sun Java(TM) Runtime Environment
(JRE) 6 (ar
sun-java6-jdk           6-12-1          Sun Java(TM) Development Kit
(JDK) 6
sun-java6-jre           6-12-1          Sun Java(TM) Runtime Environment
(JRE) 6 (ar

And for this, the version is:

java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)


Regards:

  Maje





El jue, 26-02-2009 a las 09:23 -0600, Antonio Gallardo escribió:
> Hi,
> 
> Thanks for the reply, would you post the result of
> 
> $java -version
> 
> It must be something like:
> 
> $ java -version
> java version "1.6.0_12"
> 
> 
> Many thanks in advance.
> 
> Best Regards,
> 
> Antonio Gallardo.
> 
> 
> Maria Jesus Turiel escribió:
> > Hi,
> >
> > I'm using 1.6 in Debian Lenny, see packages below:
> >
> > 	sun-java6-bin   6-07-3~bpo40+1      Sun Java(TM) Runtime Environment
> > (JRE) 6 (ar
> > 	sun-java6-jdk   6-07-3~bpo40+1      Sun Java(TM) Development Kit (JDK)
> > 6
> > 	sun-java6-jre   6-07-3~bpo40+1      Sun Java(TM) Runtime Environment
> > (JRE) 6 (ar
> >
> > Regards,
> >
> >
> >    Maje
> >   
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Antonio Gallardo <ag...@agssa.net>.
Hi,

Thanks for the reply, would you post the result of

$java -version

It must be something like:

$ java -version
java version "1.6.0_12"


Many thanks in advance.

Best Regards,

Antonio Gallardo.


Maria Jesus Turiel escribió:
> Hi,
>
> I'm using 1.6 in Debian Lenny, see packages below:
>
> 	sun-java6-bin   6-07-3~bpo40+1      Sun Java(TM) Runtime Environment
> (JRE) 6 (ar
> 	sun-java6-jdk   6-07-3~bpo40+1      Sun Java(TM) Development Kit (JDK)
> 6
> 	sun-java6-jre   6-07-3~bpo40+1      Sun Java(TM) Runtime Environment
> (JRE) 6 (ar
>
> Regards,
>
>
>    Maje
>   
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Maria Jesus Turiel <ma...@silicetelecom.com>.
Hi,

I'm using 1.6 in Debian Lenny, see packages below:

	sun-java6-bin   6-07-3~bpo40+1      Sun Java(TM) Runtime Environment
(JRE) 6 (ar
	sun-java6-jdk   6-07-3~bpo40+1      Sun Java(TM) Development Kit (JDK)
6
	sun-java6-jre   6-07-3~bpo40+1      Sun Java(TM) Runtime Environment
(JRE) 6 (ar

Regards,


   Maje
  


El mié, 25-02-2009 a las 13:25 -0600, Antonio Gallardo escribió:
> Hi Maria,
> 
> Which version of 1.6 are u using?
> 
> Best Regards,
> 
> Antonio Gallardo.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Antonio Gallardo <ag...@agssa.net>.
Hi Maria,

Which version of 1.6 are u using?

Best Regards,

Antonio Gallardo.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Maria Jesus Turiel <ma...@silicetelecom.com>.
Hi,

I put the 'target.vm' like Andreas advise me and it works (now I have
other problem with the utf8 but i hope solve it)

I know that te 1.6 is not suggested for lenya yet, but I need to try it
with this version because I have a problem with the conections, a lot of
them remains eternal in state CLOSE_WAIT

The fact is that if I put the jdk 1.6 (Sun jdk) although with the
parameter 1.5 in my local.build.properties and now the conections close
right

I don't know if it's logic or no... 


El mié, 25-02-2009 a las 12:42 -0600, Richard Frovarp escribió:
> Jörn Nettingsmeier wrote:
> > Andreas Hartmann wrote:
> >   
> >> Hi Maria Jesus,
> >>
> >> Maria Jesus Turiel schrieb:
> >>     
> >>> I'm trying to compile apache lenya in java 1.6, but when I change
> >>> parameter in local.build.properties 'parametro src.java.version=1.5' to
> >>> 'parametro src.java.version=1.6' i get the next error in build:
> >>>
> >>> .....
> >>> to /home/maje/apps/apache-lenya-2.0.2/build/lenya/api javac: source
> >>> release 1.6 requires target release 1.6
> >>>       
> >> it looks like you have to set the parameter for the target release as
> >> well. IIRC the parameter name is "target.vm". If this doesn't work, you
> >> have to take a look at the build files in src/targets.
> >>
> >> Apart from that, there were some reports about issues with Java 1.6. I'd
> >> recommend to use 1.4.2 or 1.5 instead.
> >>     
> >
> > fwiw, i succeeded with java 1.6.0, but it has to be the sun version, not
> > openjdk, otherwise some cocoon component will barf due to a bug in the
> > openjdk. the target i used is 1.5, though. haven't tried with 1.6 yet.
> >
> >
> >
> >   
> I've been running against Sun's 1.6 for quite a while with Lenya 2.0.x. 
> But I left the target at 1.4, as I really didn't feel like figuring out 
> everywhere it needed to be changed.
> 
> Richard
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
> 
-- 
María Jesús Turiel Martínez
Dpto. Desarrollo
Silice Tecnología y Servicios
Empresa Certificada ITMark
Telf. 902 888 264


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Richard Frovarp <Ri...@ndsu.edu>.
Jörn Nettingsmeier wrote:
> Andreas Hartmann wrote:
>   
>> Hi Maria Jesus,
>>
>> Maria Jesus Turiel schrieb:
>>     
>>> I'm trying to compile apache lenya in java 1.6, but when I change
>>> parameter in local.build.properties 'parametro src.java.version=1.5' to
>>> 'parametro src.java.version=1.6' i get the next error in build:
>>>
>>> .....
>>> to /home/maje/apps/apache-lenya-2.0.2/build/lenya/api javac: source
>>> release 1.6 requires target release 1.6
>>>       
>> it looks like you have to set the parameter for the target release as
>> well. IIRC the parameter name is "target.vm". If this doesn't work, you
>> have to take a look at the build files in src/targets.
>>
>> Apart from that, there were some reports about issues with Java 1.6. I'd
>> recommend to use 1.4.2 or 1.5 instead.
>>     
>
> fwiw, i succeeded with java 1.6.0, but it has to be the sun version, not
> openjdk, otherwise some cocoon component will barf due to a bug in the
> openjdk. the target i used is 1.5, though. haven't tried with 1.6 yet.
>
>
>
>   
I've been running against Sun's 1.6 for quite a while with Lenya 2.0.x. 
But I left the target at 1.4, as I really didn't feel like figuring out 
everywhere it needed to be changed.

Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Jörn Nettingsmeier <ne...@stackingdwarves.net>.
Andreas Hartmann wrote:
> Hi Maria Jesus,
> 
> Maria Jesus Turiel schrieb:
>> I'm trying to compile apache lenya in java 1.6, but when I change
>> parameter in local.build.properties 'parametro src.java.version=1.5' to
>> 'parametro src.java.version=1.6' i get the next error in build:
>>
>> .....
>> to /home/maje/apps/apache-lenya-2.0.2/build/lenya/api javac: source
>> release 1.6 requires target release 1.6
> 
> it looks like you have to set the parameter for the target release as
> well. IIRC the parameter name is "target.vm". If this doesn't work, you
> have to take a look at the build files in src/targets.
> 
> Apart from that, there were some reports about issues with Java 1.6. I'd
> recommend to use 1.4.2 or 1.5 instead.

fwiw, i succeeded with java 1.6.0, but it has to be the sun version, not
openjdk, otherwise some cocoon component will barf due to a bug in the
openjdk. the target i used is 1.5, though. haven't tried with 1.6 yet.



-- 
Jörn Nettingsmeier

Verantwortlicher für Veranstaltungstechnik

Audio and event engineer
Ambisonic surround recordings

nettings@stackingdwarves.net
+49 177 7937487

As for our common defense, we reject as false the choice between
our safety and our ideals. - Barack Hussein Obama

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Build problem with java 1.6

Posted by Andreas Hartmann <an...@apache.org>.
Hi Maria Jesus,

Maria Jesus Turiel schrieb:
> I'm trying to compile apache lenya in java 1.6, but when I change
> parameter in local.build.properties 'parametro src.java.version=1.5' to
> 'parametro src.java.version=1.6' i get the next error in build:
> 
> .....
> to /home/maje/apps/apache-lenya-2.0.2/build/lenya/api javac: source
> release 1.6 requires target release 1.6

it looks like you have to set the parameter for the target release as 
well. IIRC the parameter name is "target.vm". If this doesn't work, you 
have to take a look at the build files in src/targets.

Apart from that, there were some reports about issues with Java 1.6. I'd 
recommend to use 1.4.2 or 1.5 instead.

-- Andreas



-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org