as properties in different
profiles, it seems it should be possible to switch the JDK by running mvn
with a -P flag.
Cheers,
Henrib
--
View this message in context:
http://apache-commons.680414.n4.nabble.com/Math-How-to-select-a-specific-JDK-tp4634995p4635099.html
Sent from the Commons - Dev mailing
they still have to configure
toolchains.xml?
Cheers,
Henrib
--
View this message in context:
http://apache-commons.680414.n4.nabble.com/Math-How-to-select-a-specific-JDK-tp4634995p4635099.html
Sent from the Commons - Dev mailing list archive at Nabble.com
On 14 June 2012 02:15, Gilles Sadowski gil...@harfang.homelinux.org wrote:
Hello.
[...]
The following:
I should be able to do all combinations, i.e.:
1. Compile with javac 1.6 and run with java 1.6
2. Compile with javac 1.7 and run with java 1.7
is achieved by those respective
On Thu, Jun 14, 2012 at 05:31:23PM +0100, sebb wrote:
On 14 June 2012 02:15, Gilles Sadowski gil...@harfang.homelinux.org wrote:
Hello.
[...]
The following:
I should be able to do all combinations, i.e.:
1. Compile with javac 1.6 and run with java 1.6
2. Compile with
On 14 June 2012 22:24, Gilles Sadowski gil...@harfang.homelinux.org wrote:
On Thu, Jun 14, 2012 at 05:31:23PM +0100, sebb wrote:
On 14 June 2012 02:15, Gilles Sadowski gil...@harfang.homelinux.org wrote:
Hello.
[...]
The following:
I should be able to do all combinations, i.e.:
Hello.
Are there command-line switches that will select a specific JDK?
I.e. I have several of them installed:
$ ls -l /usr/lib/jvm
total 36
lrwxrwxrwx 1 root root 24 Dec 17 11:04 default-java -
java-1.6.0-openjdk-amd64
lrwxrwxrwx 1 root root 18 Jan 5 18:27 java-1.5.0-gcj -
Yes, that switch is called PATH (environment variable).
On Wed, Jun 13, 2012 at 12:19 PM, Gilles Sadowski
gil...@harfang.homelinux.org wrote:
Hello.
Are there command-line switches that will select a specific JDK?
I.e. I have several of them installed:
$ ls -l /usr/lib/jvm
total 36
On Wed, Jun 13, 2012 at 12:48:31PM +0200, Jochen Wiedmann wrote:
Yes, that switch is called PATH (environment variable).
Do you mean that I should change the PATH variable just to build Commons
Math?
I surely hope that there is a more flexible way.
With ant, all that's needed is to define
Hi,
With maven, you can configure the compiler to compile in the version you
want.
Add this to the pom.xml and set the arguments as you which.
build
pluginManagement
plugin
groupIdorg.apache.maven.plugins/groupId
Hello.
With maven, you can configure the compiler to compile in the version you
want.
Add this to the pom.xml and set the arguments as you which.
build
pluginManagement
plugin
groupIdorg.apache.maven.plugins/groupId
On Wed, Jun 13, 2012 at 03:05:13PM +0200, Xavier Detant wrote:
The byte code generated by the compiler is totally independent from the JVM
that will be used to run it.
Totally independent? Compiling with 1.7 and running with 1.6 will raise this
error:
Unsupported major.minor version 51.0
So
You'd be better off using something like Jenkins for this. You could
set up different jobs to run your builds under different conditions
(windoze vs. linux, jdk7 vs. jdk6, etc.)
On Wed, Jun 13, 2012 at 10:47 AM, Gilles Sadowski
gil...@harfang.homelinux.org wrote:
On Wed, Jun 13, 2012 at
Ok, my bad, I didn't explain myself clearly…
I meant, the byte code generated by the compiler is totally independent
from the _kind_ of JVM
that will be used to run it.
So a code compiled for 1.6 will run on a sun JDK as on a openJDK.
Nevertheless, the code must be compiled for the right
://kinoshita.eti.br
http://tupilabs.com
- Original Message -
From: James Carman ja...@carmanconsulting.com
To: Commons Developers List dev@commons.apache.org
Cc:
Sent: Wednesday, 13 June 2012 11:53 AM
Subject: Re: [Math] How to select a specific JDK ?
You'd be better off using
To: Commons Developers List dev@commons.apache.org
Cc:
Sent: Wednesday, 13 June 2012 11:53 AM
Subject: Re: [Math] How to select a specific JDK ?
You'd be better off using something like Jenkins for this. You could
set up different jobs to run your builds under different conditions
On Wed, Jun 13, 2012 at 10:53:08AM -0400, James Carman wrote:
You'd be better off using something like Jenkins for this. You could
set up different jobs to run your builds under different conditions
(windoze vs. linux, jdk7 vs. jdk6, etc.)
I don't deny that such a tool is useful, but my
On Wed, Jun 13, 2012 at 05:32:14PM +0200, Xavier Detant wrote:
Ok, my bad, I didn't explain myself clearly…
I meant, the byte code generated by the compiler is totally independent
from the _kind_ of JVM
that will be used to run it.
So a code compiled for 1.6 will run on a sun JDK as on a
: unix
(...)
Hope that helps
Bruno P. Kinoshita
http://kinoshita.eti.br
http://tupilabs.com
From: Gilles Sadowski gil...@harfang.homelinux.org
To: dev@commons.apache.org
Sent: Wednesday, 13 June 2012 1:00 PM
Subject: Re: [Math] How to select a specific JDK
Gilles Sadowski wrote:
On Wed, Jun 13, 2012 at 03:05:13PM +0200, Xavier Detant wrote:
The byte code generated by the compiler is totally independent from the
JVM that will be used to run it.
Totally independent? Compiling with 1.7 and running with 1.6 will raise
this error:
Unsupported
On Wed, Jun 13, 2012 at 06:59:05PM +0200, Jörg Schaible wrote:
Gilles Sadowski wrote:
On Wed, Jun 13, 2012 at 03:05:13PM +0200, Xavier Detant wrote:
The byte code generated by the compiler is totally independent from the
JVM that will be used to run it.
Totally independent? Compiling
On 13 June 2012 18:30, Gilles Sadowski gil...@harfang.homelinux.org wrote:
On Wed, Jun 13, 2012 at 06:59:05PM +0200, Jörg Schaible wrote:
Gilles Sadowski wrote:
On Wed, Jun 13, 2012 at 03:05:13PM +0200, Xavier Detant wrote:
The byte code generated by the compiler is totally independent from
Hello.
[...]
The following:
I should be able to do all combinations, i.e.:
1. Compile with javac 1.6 and run with java 1.6
2. Compile with javac 1.7 and run with java 1.7
is achieved by those respective commands:
$ JAVA_1_6_HOME=/usr/lib/jvm/java-6-sun mvn -X -Pjava-1.6 clean
22 matches
Mail list logo