You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by Chia-Hung Lin <cl...@googlemail.com> on 2015/01/26 10:45:52 UTC

Legal question to include code like com.sun.tools.javac.Main

Hi,

I have a naive question regarding to include the methods like
Main.compile in com.sun package in the project source code.

For instance, in our project like hama if there is a source file that
makes use of com.sun.tools.javac.Main to runtime compile java sources
into classes. Is it legal to release or include that source with
project?

Thanks

Re: Legal question to include code like com.sun.tools.javac.Main

Posted by Jochen Wiedmann <jo...@gmail.com>.
A better alternative would be to use the Eclipse compiler, which you
can easily add to your distribution as a jar file (or set of jar
files). Like Apache Tomcat does.

By doing so, you would also enable to use a simple JRE for running
Hama, rather than depending on a full blown JDK. Not to mention other
advantages, like independence of a particular Java version.

Jochen


On Mon, Jan 26, 2015 at 10:45 AM, Chia-Hung Lin <cl...@googlemail.com> wrote:
> Hi,
>
> I have a naive question regarding to include the methods like
> Main.compile in com.sun package in the project source code.
>
> For instance, in our project like hama if there is a source file that
> makes use of com.sun.tools.javac.Main to runtime compile java sources
> into classes. Is it legal to release or include that source with
> project?
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>



-- 
Our time is just a point along a line that runs forever with no end.
(Al Stewart, Lord Grenville)

---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org


Re: Legal question to include code like com.sun.tools.javac.Main

Posted by Jochen Wiedmann <jo...@gmail.com>.
A better alternative would be to use the Eclipse compiler, which you
can easily add to your distribution as a jar file (or set of jar
files). Like Apache Tomcat does.

By doing so, you would also enable to use a simple JRE for running
Hama, rather than depending on a full blown JDK. Not to mention other
advantages, like independence of a particular Java version.

Jochen


On Mon, Jan 26, 2015 at 10:45 AM, Chia-Hung Lin <cl...@googlemail.com> wrote:
> Hi,
>
> I have a naive question regarding to include the methods like
> Main.compile in com.sun package in the project source code.
>
> For instance, in our project like hama if there is a source file that
> makes use of com.sun.tools.javac.Main to runtime compile java sources
> into classes. Is it legal to release or include that source with
> project?
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>



-- 
Our time is just a point along a line that runs forever with no end.
(Al Stewart, Lord Grenville)

Re: Legal question to include code like com.sun.tools.javac.Main

Posted by Henri Yandell <ba...@apache.org>.
I believe you have two options on the licensing for tools.jar.

1) Binary Compatibility License.
2) GPLv2 w/ Classpath Exception (assuming it's in OpenJDK).

Both are on the http://www.apache.org/legal/resolved.html#category-x list -
"Which licenses may NOT be included within Apache products?".

So that suggests not okay (Apache policy wise) to include in Hama.

Hen


On Mon, Jan 26, 2015 at 1:45 AM, Chia-Hung Lin <cl...@googlemail.com>
wrote:

> Hi,
>
> I have a naive question regarding to include the methods like
> Main.compile in com.sun package in the project source code.
>
> For instance, in our project like hama if there is a source file that
> makes use of com.sun.tools.javac.Main to runtime compile java sources
> into classes. Is it legal to release or include that source with
> project?
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
>

Re: Legal question to include code like com.sun.tools.javac.Main

Posted by Henri Yandell <ba...@apache.org>.
That's the BSD license, which is listed here:
http://www.apache.org/legal/resolved.html#category-a (and indicates the
source/binary under that license can be included in Apache products).

Despite being a common license, it's always a little hard for someone new
to Open Source licensing to recognize as it often doesn't say 'BSD'. See
this link for the format of the license:
http://opensource.org/licenses/BSD-3-Clause As you can see, you replace
bits when you use it, thus all the uses of the BSD licenses look a little
bit different.

Hen


On Tue, Jan 27, 2015 at 3:58 AM, Chia-Hung Lin <cl...@googlemail.com>
wrote:

> Thanks for the information. It's very clear.
>
> The last question. Scala's licensed under [1], so assuming it's legal
> to use it's nsc (compiler package) code because its license is not
> listed in [2] and does not violate Apache's. Am I correct in that
> assumption?
>
> Thanks again for kindly help!
>
> [1]. http://www.scala-lang.org/license.html
> [2]. http://www.apache.org/legal/resolved.html#category-x
>
>
> On 27 January 2015 at 18:43, Mark Thomas <ma...@apache.org> wrote:
> > On 26/01/2015 09:45, Chia-Hung Lin wrote:
> >> Hi,
> >>
> >> I have a naive question regarding to include the methods like
> >> Main.compile in com.sun package in the project source code.
> >>
> >> For instance, in our project like hama if there is a source file that
> >> makes use of com.sun.tools.javac.Main to runtime compile java sources
> >> into classes. Is it legal to release or include that source with
> >> project?
> >
> > Legally, yes that is fine. You can reference internal JVM vendor classes
> > if you wish.
> >
> > What you may not do is include tools.jar in your distribution since the
> > license for that JAR is not compatible with distribution under the ALv2.
> >
> > Mark
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> > For additional commands, e-mail: legal-discuss-help@apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
>

Re: Legal question to include code like com.sun.tools.javac.Main

Posted by Chia-Hung Lin <cl...@googlemail.com>.
Thanks for the information. It's very clear.

The last question. Scala's licensed under [1], so assuming it's legal
to use it's nsc (compiler package) code because its license is not
listed in [2] and does not violate Apache's. Am I correct in that
assumption?

Thanks again for kindly help!

[1]. http://www.scala-lang.org/license.html
[2]. http://www.apache.org/legal/resolved.html#category-x


On 27 January 2015 at 18:43, Mark Thomas <ma...@apache.org> wrote:
> On 26/01/2015 09:45, Chia-Hung Lin wrote:
>> Hi,
>>
>> I have a naive question regarding to include the methods like
>> Main.compile in com.sun package in the project source code.
>>
>> For instance, in our project like hama if there is a source file that
>> makes use of com.sun.tools.javac.Main to runtime compile java sources
>> into classes. Is it legal to release or include that source with
>> project?
>
> Legally, yes that is fine. You can reference internal JVM vendor classes
> if you wish.
>
> What you may not do is include tools.jar in your distribution since the
> license for that JAR is not compatible with distribution under the ALv2.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>

Re: Legal question to include code like com.sun.tools.javac.Main

Posted by Chia-Hung Lin <cl...@googlemail.com>.
Thanks for the information. It's very clear.

The last question. Scala's licensed under [1], so assuming it's legal
to use it's nsc (compiler package) code because its license is not
listed in [2] and does not violate Apache's. Am I correct in that
assumption?

Thanks again for kindly help!

[1]. http://www.scala-lang.org/license.html
[2]. http://www.apache.org/legal/resolved.html#category-x


On 27 January 2015 at 18:43, Mark Thomas <ma...@apache.org> wrote:
> On 26/01/2015 09:45, Chia-Hung Lin wrote:
>> Hi,
>>
>> I have a naive question regarding to include the methods like
>> Main.compile in com.sun package in the project source code.
>>
>> For instance, in our project like hama if there is a source file that
>> makes use of com.sun.tools.javac.Main to runtime compile java sources
>> into classes. Is it legal to release or include that source with
>> project?
>
> Legally, yes that is fine. You can reference internal JVM vendor classes
> if you wish.
>
> What you may not do is include tools.jar in your distribution since the
> license for that JAR is not compatible with distribution under the ALv2.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org


Re: Legal question to include code like com.sun.tools.javac.Main

Posted by Mark Thomas <ma...@apache.org>.
On 26/01/2015 09:45, Chia-Hung Lin wrote:
> Hi,
> 
> I have a naive question regarding to include the methods like
> Main.compile in com.sun package in the project source code.
> 
> For instance, in our project like hama if there is a source file that
> makes use of com.sun.tools.javac.Main to runtime compile java sources
> into classes. Is it legal to release or include that source with
> project?

Legally, yes that is fine. You can reference internal JVM vendor classes
if you wish.

What you may not do is include tools.jar in your distribution since the
license for that JAR is not compatible with distribution under the ALv2.

Mark

Re: Legal question to include code like com.sun.tools.javac.Main

Posted by Mark Thomas <ma...@apache.org>.
On 26/01/2015 09:45, Chia-Hung Lin wrote:
> Hi,
> 
> I have a naive question regarding to include the methods like
> Main.compile in com.sun package in the project source code.
> 
> For instance, in our project like hama if there is a source file that
> makes use of com.sun.tools.javac.Main to runtime compile java sources
> into classes. Is it legal to release or include that source with
> project?

Legally, yes that is fine. You can reference internal JVM vendor classes
if you wish.

What you may not do is include tools.jar in your distribution since the
license for that JAR is not compatible with distribution under the ALv2.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org