Brunovernay (talk | contribs) No edit summary |
Brunovernay (talk | contribs) No edit summary |
||
Line 87: | Line 87: | ||
= Teaching and Learning Java = | = Teaching and Learning Java = | ||
('''Go to Development / Developer''') | |||
As part of planning and implementing new 100% FLOSS Java components into Fedora, this draft document has been opened to give developers a place to teach each other about best practices, patterns, etc. | As part of planning and implementing new 100% FLOSS Java components into Fedora, this draft document has been opened to give developers a place to teach each other about best practices, patterns, etc. | ||
Line 113: | Line 115: | ||
= See Also = | = See Also = | ||
* [[Java/FAQ]] | * [[User:Brunovernay/Java/FAQ]] | ||
* [[Java/Troubleshooting]] | * [[User:Brunovernay/Java/Troubleshooting]] | ||
* [[Java/PKIAppletCompatibility]] | * [[Java/PKIAppletCompatibility]] | ||
* [[Java/StackTraces]] | * [[Java/StackTraces]] |
Revision as of 14:49, 13 July 2017
Proposed new Java page. See this "discussion" for the rationale.
Java
Java is about:
- Communities: the https://www.jcp.org/ to define the platform, but also User Groups https://community.oracle.com/community/java/jug
- Platforms (JVM, JRE ...) to run applications on PC, mobiles, embedded devices https://en.wikipedia.org/wiki/Java_(software_platform)
- Programming languages (Java is the most popular, but there are Scala, Groovy, Clojure ...) https://en.wikipedia.org/wiki/Java_(programming_language)
- If you came here because an application ask for Java (or JRE, JVM) to be installed, then simply install
.Java
- If it still does not work or the application ask specifically for Oracle Java: See here #Oracle version.
- If you want to develop, code, on the Java Platform: See Brunovernay/Java/Development. (Careful to change the link for production)
JRE JDK JVM JSE ...
Some vocabulary:
- JRE Java Runtime Environment. Required to run Java code and applications. Install
.Java
- JVM Java Virtual Machine. Main component of the JRE.
- JDK Java Development Kit. Required only for development, coding.
- SDK Software Development Kit. idem JDK
- OpenJDK Open Source project behind the Java Platform http://openjdk.java.net/.
- IcedTea is a support project for OpenJDK (concern only developers) http://icedtea.classpath.org/
- JSE,J2SE, JEE ... obsolete acronyms for Java Standard & Enterprise Edition. JavaSE is like JRE.
Multiple implementations
Fedora provides the Free OpenJDK
. If this Open Source stack does not fulfil your requirements. Alternatives can be installed alongside or separately.
Java
The Java Community Process defines the specifications of the platform that many implements (IBM J9, Jikes, Zing, Zulu Dalvik ...). We will only focus on Oracle here.
Multiple implementations can be installed side-by-side without interfering:
- The [alternative] system allows to switch from one to another.
- An application can directly reference a specific Java installation
- Some applications include a java platform, it is then transparent for the user. (But the package is bigger.)
Oracle version
Some applications still ask for Oracle's implementation. It is mostly based on the OpenJDK Open Source project, but there are some non-free code and Fedora does not package non-free softwares.
Oracle provides the RPM packages: https://java.com/en/download/help/linux_rpm.xml
...
Switching alternatives
Switching is done using the Alternatives system (also used to change some other subsystems). Java's subsystem name is surprisingly java and typical commands include:
# alternatives --display java
# alternatives --config java
See alternative's own documentation for more information for usage and parts involved.
Should be noted that JRE implementations installed outside Fedora distribution, may not support alternatives and thus not be visible there. Then the symbolic links under directory /etc/alternatives must be manually fixed.
Troubleshooting
(Is it useful here ???)
OpenJDK's java.library.path, shared library paths for i386 are:
/usr/lib /usr/lib/jvm/java-1.?.0-openjdk-1.?.0.0.x86_64/jre/lib/
and for x86_64:
/usr/lib64 /usr/lib/jvm/java-1.?.0-openjdk-1.?.0.0.x86_64/jre/lib/amd64/
OpenJDK package name on Fedora is java-1.?.0-openjdk.
Java packages in Fedora
- JavaFX (?) JavaFX is supposed to be merged in Java 8. Why is there a specific package??
Teaching and Learning Java
(Go to Development / Developer)
As part of planning and implementing new 100% FLOSS Java components into Fedora, this draft document has been opened to give developers a place to teach each other about best practices, patterns, etc.
Open Issues with Java packages
(Useful here ????)
Communicate
You can subscribe to java-devel list or talk to us in #fedora-java Freenode IRC channel. Read Communicate page for more information.
See Also
- Java/PKIAppletCompatibility
- Java/StackTraces
- Java/JPPMavenReadme
- Java/FedoraJavaMarketingBrief
- Docs/Drafts/JavaProgramming
- Packaging:Java
- JDK_on_Fedora
- Developer.FedoraProject.Org/Java
- SIGs/Java