ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] [crosspost] I: Установка Oracle Java SE 6/7 под AltLinux
@ 2012-02-17 13:16 Igor Vlasenko
  2012-02-17 13:23 ` [devel] [Comm] " Mykola S. Grechukh
  2012-02-18  7:03 ` Eugene Prokopiev
  0 siblings, 2 replies; 8+ messages in thread
From: Igor Vlasenko @ 2012-02-17 13:16 UTC (permalink / raw)
  To: devel; +Cc: sisyphus, community

Господа,
для Oracle Java 6/7 SDK доступны nosrc.rpm.
Статья по их установке доступна на
http://www.altlinux.org/Java/OracleSDK

Установка Oracle Java 6/7 SDK в ALTLinux
----------------------------------------

Лицензионные ограничения

jdk-6u26-linux является последним фирменным JDK, распространяемым под лицензией DLJ (Operating System Distributor License for Java version 1.1). Эта лицензия явно разрешает распространять JDK в составе дистрибутива. Таким образом, java-1.6.0-sun-1.6.0.26 является последним JDK от Sun/Oracle, входящим в состав Sisyphus.

Последующие версии Oracle JDK теперь распространяются только под дицензией Oracle Binary Code License, в которой есть явное разрешение распространять JDK вместе с java приложениями, например, в составе LiveCD, но нет явного разрешения распространять JDK в одиночку, как отдельный пакет.
Поэтому их нет в сизифе.

Однако ничто не мешает установить данные пакеты самостоятельно.
Для безболезненной установки Oracle JDK под ALTLinux доступны .nosrc.rpm пакеты. В эти .nosrc.rpm пакеты собственно Oracle JDK не входит, его нужно отдельно скачать, после чего их можно пересобрать по инструкции ниже и получить обычные rpm пакеты, готовые к установке.

NOSRC In a Nutshell

Скачайте с ftp://ftp.linux.kiev.ua/pub/Linux/ALT/people/viy/java-1.7.0-oracle/ (для Oracle JDK 7) либо с ftp://ftp.linux.kiev.ua/pub/Linux/ALT/people/viy/java-1.6.0-oracle/ (для Oracle JDK 6) соответствующий .nosrc.rpm пакет. Например, ftp://ftp.linux.kiev.ua/pub/Linux/ALT/people/viy/java-1.7.0-oracle/java-1.7.0-oracle-1.7.0.3-alt1.nosrc.rpm

Установите его командой вида

rpm -i java-1.7.0-oracle-1.7.0.3-alt1.nosrc.rpm

Скачайте в папку SOURCES/ недостающие исходники с downloads.oracle.com. Например, для java-1.7.0-oracle-1.7.0.3 это будут файлы http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-i586.tar.gz http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.tar.gz .

Зайдите в папку SPECS/ и выполните команду (для Oracle JDK 7):

rpmbuild -bs --nodeps java-1.7.0-oracle.spec

Полученный в результате java-1.7.0-oracle-1.7.0.3-alt1.src.rpm пересоберите в hasher.


-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [devel] [Comm] [crosspost] I: Установка Oracle Java SE 6/7 под AltLinux
  2012-02-17 13:16 [devel] [crosspost] I: Установка Oracle Java SE 6/7 под AltLinux Igor Vlasenko
@ 2012-02-17 13:23 ` Mykola S. Grechukh
  2012-02-17 13:35   ` Igor Vlasenko
  2012-02-18  7:03 ` Eugene Prokopiev
  1 sibling, 1 reply; 8+ messages in thread
From: Mykola S. Grechukh @ 2012-02-17 13:23 UTC (permalink / raw)
  To: ALT Linux Community general discussions; +Cc: sisyphus, devel

17 февраля 2012 г. 15:16 пользователь Igor Vlasenko <> написал:
> Последующие версии Oracle JDK теперь распространяются только под дицензией Oracle Binary Code License, в которой есть явное разрешение распространять JDK вместе с java приложениями, например, в составе LiveCD, но нет явного разрешения распространять JDK в одиночку, как отдельный пакет.

То есть, если я соберу netbook-live с локальным оверлеем, всё ок
просто этот оверлей нельзя опубликовать?

-- 
Mykola Grechukh

CTO, Satelliz-Ukraine

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [devel] [Comm] [crosspost] I: Установка Oracle Java SE 6/7 под AltLinux
  2012-02-17 13:23 ` [devel] [Comm] " Mykola S. Grechukh
@ 2012-02-17 13:35   ` Igor Vlasenko
  2012-02-17 14:39     ` Sergey Vlasov
  0 siblings, 1 reply; 8+ messages in thread
From: Igor Vlasenko @ 2012-02-17 13:35 UTC (permalink / raw)
  To: ALT Linux Team development discussions

On Fri, Feb 17, 2012 at 03:23:47PM +0200, Mykola S. Grechukh wrote:
> 17 февраля 2012 г. 15:16 пользователь Igor Vlasenko <> написал:
> > Последующие версии Oracle JDK теперь распространяются только под дицензией Oracle Binary Code License, в которой есть явное разрешение распространять JDK вместе с java приложениями, например, в составе LiveCD, но нет явного разрешения распространять JDK в одиночку, как отдельный пакет.
> 
> То есть, если я соберу netbook-live с локальным оверлеем, всё ок
> просто этот оверлей нельзя опубликовать?

Я внизу привел пункт C Oracle BCL, смотрите, разбирайтесь,
но IMHO лучше всюду ставить openjdk, а про Oracle JDK забыть.

C.  LICENSE TO DISTRIBUTE SOFTWARE.  Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the  README File, including, but not limited to the Java Technology Restrictions and    Limitations on Redistribution of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute the Software, provided that (i) you distribute the Software complete and unmodified and only bundled as part of, and for the sole purpose of running, your Programs, (ii) the Programs add significant and primary functionality to the Software, (iii) you do not distribute additional  software intended to replace any component(s) of the Software, (iv) you do not remove or alter any proprietary legends or notices contained in the Software, (v) you only distribute the Software subject to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in this Agreement and that includes the notice set forth in Section H, and (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including  attorneys' fees)  incurred in connection  with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software.


-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [devel] [Comm] [crosspost] I: Установка Oracle Java SE 6/7 под AltLinux
  2012-02-17 13:35   ` Igor Vlasenko
@ 2012-02-17 14:39     ` Sergey Vlasov
  2012-02-17 15:46       ` Igor Vlasenko
  0 siblings, 1 reply; 8+ messages in thread
From: Sergey Vlasov @ 2012-02-17 14:39 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 836 bytes --]

On Fri, Feb 17, 2012 at 03:35:27PM +0200, Igor Vlasenko wrote:
> On Fri, Feb 17, 2012 at 03:23:47PM +0200, Mykola S. Grechukh wrote:
> > 17 февраля 2012 г. 15:16 пользователь Igor Vlasenko <> написал:
> > > Последующие версии Oracle JDK теперь распространяются только под дицензией Oracle Binary Code License, в которой есть явное разрешение распространять JDK вместе с java приложениями, например, в составе LiveCD, но нет явного разрешения распространять JDK в одиночку, как отдельный пакет.
> > 
> > То есть, если я соберу netbook-live с локальным оверлеем, всё ок
> > просто этот оверлей нельзя опубликовать?
> 
> Я внизу привел пункт C Oracle BCL, смотрите, разбирайтесь,
> но IMHO лучше всюду ставить openjdk, а про Oracle JDK забыть.

А где в этом openjdk взять javaws?  Был сломанный пакет, а теперь совсем
пропал.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [devel] [Comm] [crosspost] I: Установка Oracle Java SE 6/7 под AltLinux
  2012-02-17 14:39     ` Sergey Vlasov
@ 2012-02-17 15:46       ` Igor Vlasenko
  2012-03-11  7:42         ` Sergey Vlasov
  0 siblings, 1 reply; 8+ messages in thread
From: Igor Vlasenko @ 2012-02-17 15:46 UTC (permalink / raw)
  To: ALT Linux Team development discussions

On Fri, Feb 17, 2012 at 06:39:57PM +0400, Sergey Vlasov wrote:
> А где в этом openjdk взять javaws?  Был сломанный пакет, а теперь совсем
> пропал.

Скоро будет, отдельным пакетом соберу
mozilla-plugin-java-1.7.0-openjdk+java-1.7.0-openjdk-javaws.

Думаю, при их наличии не имеет смысла собирать еще и
mozilla-plugin-java-1.6.0-openjdk+java-1.6.0-openjdk-javaws.
Но если кому-то надо, могу собрать и их тоже.


-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [devel] [Comm] [crosspost] I: Установка Oracle Java SE 6/7 под AltLinux
  2012-02-17 13:16 [devel] [crosspost] I: Установка Oracle Java SE 6/7 под AltLinux Igor Vlasenko
  2012-02-17 13:23 ` [devel] [Comm] " Mykola S. Grechukh
@ 2012-02-18  7:03 ` Eugene Prokopiev
  1 sibling, 0 replies; 8+ messages in thread
From: Eugene Prokopiev @ 2012-02-18  7:03 UTC (permalink / raw)
  To: ALT Linux Community general discussions; +Cc: sisyphus, devel

17 февраля 2012 г. 17:16 пользователь Igor Vlasenko
<vlasenko@imath.kiev.ua> написал:
> Господа,
> для Oracle Java 6/7 SDK доступны nosrc.rpm

Игорь, огромное спасибо!

-- 
С уважением,
Прокопьев Евгений

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [devel] [Comm] [crosspost] I: Установка Oracle Java SE 6/7 под AltLinux
  2012-02-17 15:46       ` Igor Vlasenko
@ 2012-03-11  7:42         ` Sergey Vlasov
  2012-03-12 14:09           ` Igor Vlasenko
  0 siblings, 1 reply; 8+ messages in thread
From: Sergey Vlasov @ 2012-03-11  7:42 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 2075 bytes --]

On Fri, Feb 17, 2012 at 05:46:20PM +0200, Igor Vlasenko wrote:
> On Fri, Feb 17, 2012 at 06:39:57PM +0400, Sergey Vlasov wrote:
> > А где в этом openjdk взять javaws?  Был сломанный пакет, а теперь совсем
> > пропал.
> 
> Скоро будет, отдельным пакетом соберу
> mozilla-plugin-java-1.7.0-openjdk+java-1.7.0-openjdk-javaws.

В p6 сломано: https://bugzilla.altlinux.org/show_bug.cgi?id=27056

> Думаю, при их наличии не имеет смысла собирать еще и
> mozilla-plugin-java-1.6.0-openjdk+java-1.6.0-openjdk-javaws.
> Но если кому-то надо, могу собрать и их тоже.

С 1.7.0 та гадость, которой требуется javaws, у меня так и не
заработала:

Permission added: ("java.io.FilePermission" "/home/vsu/.icedtea/cache/0/https/<host>/iKVM.jar" "read")
Permission added: ("java.io.FilePermission" "/home/vsu/.icedtea/cache/1/https/<host>/liblinux_x86_64.jar" "read")
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application.
	at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:776)
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:552)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:887)
Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars.

Видимо, по той причине, что там внутри

s        210 Thu Jul 14 15:30:30 UTC 2011 META-INF/MANIFEST.MF

      X.509, CN=Shu-Yu Fu, OU=RD1, O=ATEN, C=TW
      [certificate expired on 22.02.10 7:44]
      [CertPath not validated: Path does not chain with any of the trust anchors]

либо (после выковыривания сертификата и запихивания в trusted.certs)

s k      210 Thu Jul 14 15:30:30 UTC 2011 META-INF/MANIFEST.MF

      X.509, CN=Shu-Yu Fu, OU=RD1, O=ATEN, C=TW (13918)
      [certificate expired on 22.02.10 7:44]
      [CertPath not validated: timestamp check failed]

Т.е., эти #$%$%$# ухитрились использовать для подписи jar сертификат,
протухший уже на момент подписывания, а в этом варианте javaws нет
возможности пропустить проверку подписи jar.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [devel] [Comm] [crosspost] I: Установка Oracle Java SE 6/7 под AltLinux
  2012-03-11  7:42         ` Sergey Vlasov
@ 2012-03-12 14:09           ` Igor Vlasenko
  0 siblings, 0 replies; 8+ messages in thread
From: Igor Vlasenko @ 2012-03-12 14:09 UTC (permalink / raw)
  To: ALT Linux Team development discussions; +Cc: Sergey Vlasov

On Sun, Mar 11, 2012 at 11:42:21AM +0400, Sergey Vlasov wrote:
> С 1.7.0 та гадость, которой требуется javaws, у меня так и не
> заработала:
> 
> Permission added: ("java.io.FilePermission" "/home/vsu/.icedtea/cache/0/https/<host>/iKVM.jar" "read")
[...]

Спасибо большое за сообщение. Получается, в javaws для java7 
security manager включен по умолчанию, и чтобы что-либо 
можно было сделать, надо добавить policy файл
[http://java.sun.com/developer/onlineTraining/Programming/JDCBook/appA.html]

По идее должно заработать, если в /usr/bin/javaws.itweb добавить в
JAVA_ARGS="-Djava.security.policy=/etc/icedtea-web/javaws.policy"

и создать файл /etc/icedtea-web/javaws.policy:
-------------------------
grant codeBase "file:/usr/share/icedtea-web/netx.jar" {
    permission java.security.AllPermission;
};

Я извиняюсь, не могли бы вы сразу по горячим следам проверть?


-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-03-12 14:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-17 13:16 [devel] [crosspost] I: Установка Oracle Java SE 6/7 под AltLinux Igor Vlasenko
2012-02-17 13:23 ` [devel] [Comm] " Mykola S. Grechukh
2012-02-17 13:35   ` Igor Vlasenko
2012-02-17 14:39     ` Sergey Vlasov
2012-02-17 15:46       ` Igor Vlasenko
2012-03-11  7:42         ` Sergey Vlasov
2012-03-12 14:09           ` Igor Vlasenko
2012-02-18  7:03 ` Eugene Prokopiev

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git