Instala Java no Fedora 17 [RESOLVIDO]

1. Instala Java no Fedora 17 [RESOLVIDO]

Paulo Dionatam de Resende
paulodr

(usa Ubuntu)

Enviado em 18/10/2012 - 17:36h

Boa tarde Galera,


Instalei o Fedora 17 no meu note e estou precisando urgentemente de instalar o java, como eu consigo instalar?
Realizei alguns passos mai nada funcionou. Alguem poderia me ajudar por favor?


Muito obrigado.

Abaixo o resultado:

[Paulo@PauloDionatam ~]$ java -version
java version "1.7.0_06-icedtea"
OpenJDK Runtime Environment (fedora-2.3.1.fc17.2-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
[Paulo@PauloDionatam ~]$ su --login
Senha:
su: senha incorreta
[Paulo@PauloDionatam ~]$ su --login
Senha:
[root@PauloDionatam ~]# clear

[root@PauloDionatam ~]# ln -s /usr/java/default/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/.
[root@PauloDionatam ~]# yum install -y compat-libstdc++-33 compat-libstdc++-296
Plugins carregados: fastestmirror, langpacks, presto
Loading mirror speeds from cached hostfile
* fedora: mirror.ispbrasil.com.br
* rpmfusion-free: fedora.tu-chemnitz.de
* rpmfusion-free-updates: fedora.tu-chemnitz.de
* rpmfusion-nonfree: fedora.tu-chemnitz.de
* rpmfusion-nonfree-updates: fedora.tu-chemnitz.de
* updates: mirror.ispbrasil.com.br
O pacote compat-libstdc++-33-3.2.3-68.3.x86_64 já está instalado em sua última versão
O pacote compat-libstdc++-296-2.96-144.i686 já está instalado em sua última versão
Nada a ser feito
[root@PauloDionatam ~]# yum remove -y jre.i586
Plugins carregados: fastestmirror, langpacks, presto
Nenhuma correspondência para o argumento: jre.i586
Nenhum pacote marcado para remoção
[root@PauloDionatam ~]# wget -O ~/jre-6u3-linux-i586-rpm.bin http://javadl.sun.com/webapps/download/AutoDL?BundleId=11283
--2012-10-18 17:19:51-- http://javadl.sun.com/webapps/download/AutoDL?BundleId=11283
Resolvendo javadl.sun.com... 137.254.16.64
Conectando-se a javadl.sun.com|137.254.16.64|:80... conectado.
A requisição HTTP foi enviada, aguardando resposta... 302 Moved Temporarily
Localização: http://sdlc-esd.sun.com/ESD33/JSCDL/jdk/6u2/jre-6u2-linux-i586-rpm.bin?AuthParam=1350591730_ec32577d... [redirecionando]
--2012-10-18 17:19:52-- http://sdlc-esd.sun.com/ESD33/JSCDL/jdk/6u2/jre-6u2-linux-i586-rpm.bin?AuthParam=1350591730_ec32577d...
Resolvendo sdlc-esd.sun.com... 177.43.198.29, 177.43.198.35
Conectando-se a sdlc-esd.sun.com|177.43.198.29|:80... conectado.
A requisição HTTP foi enviada, aguardando resposta... 200 OK
Tamanho: 18591989 (18M) [application/x-sdlc]
Salvando em: “/root/jre-6u3-linux-i586-rpm.bin”

100%[======================================>] 18.591.989 3,34M/s em 4,8s

2012-10-18 17:22:36 (3,67 MB/s) - “/root/jre-6u3-linux-i586-rpm.bin” salvo [18591989/18591989]

[root@PauloDionatam ~]# exit
logout
[Paulo@PauloDionatam ~]$ chmod +x jre*
chmod: impossível acessar "jre*": Arquivo ou diretório não encontrado
[Paulo@PauloDionatam ~]$ su --login
Senha:
[root@PauloDionatam ~]# chmod +x jre*
[root@PauloDionatam ~]# ./jre*
Sun Microsystems, Inc. Binary Code License Agreement

for the JAVA SE RUNTIME ENVIRONMENT (JRE) VERSION 6

SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT
CAREFULLY. BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU
ACCEPT THE TERMS OF THE AGREEMENT. INDICATE ACCEPTANCE BY
SELECTING THE "ACCEPT" BUTTON AT THE BOTTOM OF THE
AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE
TERMS, SELECT THE "DECLINE" BUTTON AT THE BOTTOM OF THE
AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL NOT
CONTINUE.

1. DEFINITIONS. "Software" means the identified above in
binary form, any other machine readable materials
(including, but not limited to, libraries, source files,
header files, and data files), any updates or error
corrections provided by Sun, and any user manuals,
programming guides and other documentation provided to you
by Sun under this Agreement. "Programs" mean Java applets
and applications intended to run on the Java Platform,
Standard Edition (Java SE) on Java-enabled general purpose
desktop computers and servers.

2. LICENSE TO USE. Subject to the terms and conditions of
this Agreement, including, but not limited to the Java
Technology Restrictions of the Supplemental License Terms,
Sun grants you a non-exclusive, non-transferable, limited
license without license fees to reproduce and use
internally Software complete and unmodified for the sole
purpose of running Programs. Additional licenses for
developers and/or publishers are granted in the
Supplemental License Terms.

3. RESTRICTIONS. Software is confidential and copyrighted.
Title to Software and all associated intellectual property
rights is retained by Sun and/or its licensors. Unless
enforcement is prohibited by applicable law, you may not
modify, decompile, or reverse engineer Software. You
acknowledge that Licensed Software is not designed or
intended for use in the design, construction, operation or
maintenance of any nuclear facility. Sun Microsystems, Inc.
disclaims any express or implied warranty of fitness for
such uses. No right, title or interest in or to any
trademark, service mark, logo or trade name of Sun or its
licensors is granted under this Agreement. Additional
restrictions for developers and/or publishers licenses are
set forth in the Supplemental License Terms.

4. LIMITED WARRANTY. Sun warrants to you that for a period
of ninety (90) days from the date of purchase, as evidenced
by a copy of the receipt, the media on which Software is
furnished (if any) will be free of defects in materials and
workmanship under normal use. Except for the foregoing,
Software is provided "AS IS". Your exclusive remedy and
Sun's entire liability under this limited warranty will be
at Sun's option to replace Software media or refund the fee
paid for Software. Any implied warranties on the Software
are limited to 90 days. Some states do not allow
limitations on duration of an implied warranty, so the
above may not apply to you. This limited warranty gives you
specific legal rights. You may have others, which vary from
state to state.

5. DISCLAIMER OF WARRANTY. UNLESS SPECIFIED IN THIS
AGREEMENT, ALL EXPRESS OR IMPLIED CONDITIONS,
REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE
EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY
INVALID.

6. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY
LAW, IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR
ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT,
CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT
OF OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE,
EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES. In no event will Sun's liability to you, whether
in contract, tort (including negligence), or otherwise,
exceed the amount paid by you for Software under this
Agreement. The foregoing limitations will apply even if the
above stated warranty fails of its essential purpose. Some
states do not allow the exclusion of incidental or
consequential damages, so some of the terms above may not
be applicable to you.

7. TERMINATION. This Agreement is effective until
terminated. You may terminate this Agreement at any time by
destroying all copies of Software. This Agreement will
terminate immediately without notice from Sun if you fail
to comply with any provision of this Agreement. Either
party may terminate this Agreement immediately should any
Software become, or in either party's opinion be likely to
become, the subject of a claim of infringement of any
intellectual property right. Upon Termination, you must
destroy all copies of Software.

8. EXPORT REGULATIONS. All Software and technical data
delivered under this Agreement are subject to US export
control laws and may be subject to export or import
regulations in other countries. You agree to comply
strictly with all such laws and regulations and acknowledge
that you have the responsibility to obtain such licenses to
export, re-export, or import as may be required after
delivery to you.

9. TRADEMARKS AND LOGOS. You acknowledge and agree as
between you and Sun that Sun owns the SUN, SOLARIS, JAVA,
JINI, FORTE, and iPLANET trademarks and all SUN, SOLARIS,
JAVA, JINI, FORTE, and iPLANET-related trademarks, service
marks, logos and other brand designations ("Sun Marks"),
and you agree to comply with the Sun Trademark and Logo
Usage Requirements currently located at
http://www.sun.com/policies/trademarks. Any use you make of
the Sun Marks inures to Sun's benefit.

10. U.S. GOVERNMENT RESTRICTED RIGHTS. If Software is being
acquired by or on behalf of the U.S. Government or by a
U.S. Government prime contractor or subcontractor (at any
tier), then the Government's rights in Software and
accompanying documentation will be only as set forth in
this Agreement; this is in accordance with 48 CFR 227.7201
through 227.7202-4 (for Department of Defense (DOD)
acquisitions) and with 48 CFR 2.101 and 12.212 (for non-DOD
acquisitions).

11. GOVERNING LAW. Any action related to this Agreement
will be governed by California law and controlling U.S.
federal law. No choice of law rules of any jurisdiction
will apply.

12. SEVERABILITY. If any provision of this Agreement is
held to be unenforceable, this Agreement will remain in
effect with the provision omitted, unless omission would
frustrate the intent of the parties, in which case this
Agreement will immediately terminate.

13. INTEGRATION. This Agreement is the entire agreement
between you and Sun relating to its subject matter. It
supersedes all prior or contemporaneous oral or written
communications, proposals, representations and warranties
and prevails over any conflicting or additional terms of
any quote, order, acknowledgment, or other communication
between the parties relating to its subject matter during
the term of this Agreement. No modification of this
Agreement will be binding, unless in writing and signed by
an authorized representative of each party.

SUPPLEMENTAL LICENSE TERMS

These Supplemental License Terms add to or modify the terms
of the Binary Code License Agreement. Capitalized terms not
defined in these Supplemental Terms shall have the same
meanings ascribed to them in the Binary Code License
Agreement . These Supplemental Terms shall supersede any
inconsistent or conflicting terms in the Binary Code
License Agreement, or in any license contained within the
Software.

A. Software Internal Use and Development License Grant.
Subject to the terms and conditions of this Agreement and
restrictions and exceptions set forth in the Software
"README" file incorporated herein by reference, including,
but not limited to the Java Technology Restrictions of
these Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license without fees to reproduce
internally and use internally the Software complete and
unmodified for the purpose of designing, developing, and
testing your Programs.

B. License to Distribute Software. Subject to the terms and
conditions of this Agreement and restrictions and
exceptions set forth in the Software README file,
including, but not limited to the Java Technology
Restrictions of these Supplemental Terms, Sun 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 protects Sun's
interests consistent with the terms contained in this
Agreement, and (vi) you agree to defend and indemnify Sun
and its licensors from and

C. Java Technology Restrictions. You may not create,
modify, or change the behavior of, or authorize your
licensees to create, modify, or change the behavior of,
classes, interfaces, or subpackages that are in any way
identified as "java", "javax", "sun" or similar convention
as specified by Sun in any naming convention designation.

D. Source Code. Software may contain source code that,
unless expressly licensed for other purposes, is provided
solely for reference purposes pursuant to the terms of this
Agreement. Source code may not be redistributed unless
expressly provided for in this Agreement.

E. Third Party Code. Additional copyright notices and
license terms applicable to portions of the Software are
set forth in the THIRDPARTYLICENSEREADME.txt file. In
addition to any terms and conditions of any third party
opensource/freeware license identified in the
THIRDPARTYLICENSEREADME.txt file, the disclaimer of
warranty and limitation of liability provisions in
paragraphs 5 and 6 of the Binary Code License Agreement
shall apply to all Software in this distribution.

F. Termination for Infringement. Either party may terminate
this Agreement immediately should any Software become, or
in either party's opinion be likely to become, the subject
of a claim of infringement of any intellectual property
right.

G. Installation and Auto-Update. The Software's
installation and auto-update processes transmit a limited
amount of data to Sun (or its service provider) about those
specific processes to help Sun understand and optimize
them. Sun does not associate the data with personally
identifiable information. You can find more information
about the data Sun collects at http://java.com/data/.

For inquiries please contact: Sun Microsystems, Inc., 4150
Network Circle, Santa Clara, California 95054, U.S.A.

Do you agree to the above license terms? [yes or no]

y
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u2-linux-i586.rpm
Preparando... ########################################### [100%]
o pacote jre-1.7.0_09-fcs.x86_64 (que é mais recente que o jre-1.6.0_02-fcs.i586) já está instalado
o arquivo /etc/init.d/jexec da instalação de jre-1.6.0_02-fcs.i586 conflita com o arquivo do pacote jdk-2000:1.7.0_09-fcs.x86_64
o arquivo /etc/init.d/jexec da instalação de jre-1.6.0_02-fcs.i586 conflita com o arquivo do pacote jre-1.7.0_09-fcs.x86_64

Done.
[root@PauloDionatam ~]# rm -rf jre*
[root@PauloDionatam ~]# ln -s /etc/alternatives/java /usr/bin/java
ln: failed to create symbolic link "/usr/bin/java": Arquivo existe
[root@PauloDionatam ~]# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/default
alternatives versão 1.3.59 - Copyright (C) 2001 Red Hat, Inc.
Pode ser redistribuído livremente sob os termos da Licença Pública GNU.

uso: alternatives --install <ligação> <nome> <caminho> <prioridade>
[--initscript <serviço>]
[--slave <ligação> <nome> <caminho>]*
alternatives --remove <nome> <caminho>
alternatives --auto <nome>
alternatives --config <nome>
alternatives --display <nome>
alternatives --set <nome> <caminho>

opções comuns: --verbose --test --help --usage --version
--altdir <diretório> --admindir <diretório>
[root@PauloDionatam ~]# java -version
java version "1.7.0_06-icedtea"
OpenJDK Runtime Environment (fedora-2.3.1.fc17.2-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
[root@PauloDionatam ~]#



  


2. Re: Instala Java no Fedora 17 [RESOLVIDO]

Matias
matiasalexsandro

(usa Fedora)

Enviado em 18/10/2012 - 19:09h

vamos por partes:

vc pode baixar o arquivo .RPM pelo link

http://www.java.com/pt_BR/download/manual.jsp?locale=pt_BR

escolha se for 32 ou 64 bits

depois, eita foi mal primeiro atualize pelo comando:


$ sudo yum upgrade -y


depois vc baixa o link q te passei


agora botão direito do pacote rpm abrir com instalação de programas

e voi-là.

no tiro de misericórdia vc pode o nome programa chamado "icedtea" em adicionar programas. caso o java nao funfe ele entra em ação. poste a resposta. vai a dica, caso nao saiba se seu sistema é 32 ou 64 bits tente fazer o comando

$arch

ai ele vai dizer valeu


3. Re: Instala Java no Fedora 17 [RESOLVIDO]

Paulo Dionatam de Resende
paulodr

(usa Ubuntu)

Enviado em 18/10/2012 - 19:20h

afrosamurai escreveu:

vamos por partes:

vc pode baixar o arquivo .RPM pelo link

http://www.java.com/pt_BR/download/manual.jsp?locale=pt_BR

escolha se for 32 ou 64 bits

depois, eita foi mal primeiro atualize pelo comando:


$ sudo yum upgrade -y


depois vc baixa o link q te passei


agora botão direito do pacote rpm abrir com instalação de programas

e voi-là.

no tiro de misericórdia vc pode o nome programa chamado "icedtea" em adicionar programas. caso o java nao funfe ele entra em ação. poste a resposta. vai a dica, caso nao saiba se seu sistema é 32 ou 64 bits tente fazer o comando

$arch

ai ele vai dizer valeu



Quando executei o comando para saber qual sistema operacional o resultado foi "x86_64" isso quer dizer o que? é 32 ou 64 bits?





4. Re: Instala Java no Fedora 17 [RESOLVIDO]

Paulo Dionatam de Resende
paulodr

(usa Ubuntu)

Enviado em 18/10/2012 - 19:27h

afrosamurai escreveu:

vamos por partes:

vc pode baixar o arquivo .RPM pelo link

http://www.java.com/pt_BR/download/manual.jsp?locale=pt_BR

escolha se for 32 ou 64 bits

depois, eita foi mal primeiro atualize pelo comando:


$ sudo yum upgrade -y


depois vc baixa o link q te passei


agora botão direito do pacote rpm abrir com instalação de programas

e voi-là.

no tiro de misericórdia vc pode o nome programa chamado "icedtea" em adicionar programas. caso o java nao funfe ele entra em ação. poste a resposta. vai a dica, caso nao saiba se seu sistema é 32 ou 64 bits tente fazer o comando

$arch

ai ele vai dizer valeu



O pacote que você pediu para baixar eu ja baxei e instalei conforme você disse, porém não funcionou. Eu localizei o programa "icedtea" o que tenho que fazer com ele?





5. Re: Instala Java no Fedora 17 [RESOLVIDO]

Paulo Dionatam de Resende
paulodr

(usa Ubuntu)

Enviado em 18/10/2012 - 19:59h

afrosamurai escreveu:

vamos por partes:

vc pode baixar o arquivo .RPM pelo link

http://www.java.com/pt_BR/download/manual.jsp?locale=pt_BR

escolha se for 32 ou 64 bits

depois, eita foi mal primeiro atualize pelo comando:


$ sudo yum upgrade -y


depois vc baixa o link q te passei


agora botão direito do pacote rpm abrir com instalação de programas

e voi-là.

no tiro de misericórdia vc pode o nome programa chamado "icedtea" em adicionar programas. caso o java nao funfe ele entra em ação. poste a resposta. vai a dica, caso nao saiba se seu sistema é 32 ou 64 bits tente fazer o comando

$arch

ai ele vai dizer valeu



Muito obrigado pela ajuda, consegui finalmente instalar o java.....

Muito obrigado!




6. Re: Instala Java no Fedora 17 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 18/10/2012 - 21:29h

-eu simplesmente uso o easylife


7. Re: Instala Java no Fedora 17 [RESOLVIDO]

Matias
matiasalexsandro

(usa Fedora)

Enviado em 19/10/2012 - 12:08h

sabia que iria dar tudo certo com a instalação dos dois pacotes ICEDTEA E JAVA. pq para sites de bancos pede o java.

fico contente de estar ajudando novatos iguais a mim. e passar experiencias q já tive. mas é assim mesmo valeu irmão






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts