Codex Gamicus
Explore
Main Page
Discuss
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Forums
Company Index
Character Index
Hardware Index
In-Game Index
Ratings Index
Video Game Index
Fandom
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Fandom's centric source of video game knowledge
42,423
pages
Explore
Main Page
Discuss
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Forums
Company Index
Character Index
Hardware Index
In-Game Index
Ratings Index
Video Game Index
Fandom
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
Java
Back to page
Edit
VisualEditor
View history
Talk (0)
Edit Page
Java
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{SoftwareInfobox | image = Java avatar.png | caption = "Write once, run everywhere." | type = Programming Language | developer = Sun Microsystems,Oracle Corporation | publisher = Sun Microsystems,Oracle Corporation }} '''''Java''''' (not to be confused with ''[[JavaScript]])'' is a programming language that uses a platform-independent portable software layer that is designed to run software virtually identically across a wide variety of platforms and architectures. ''Java'' by default refer to the Java originally developed by ''Sun Microsystems'', now owned by ''Oracle Corporation'', but other software is capable of running Java applications, such as ''[[OpenJDK]]'', and in the past, the ''[[Microsoft Virtual Machine]]'', before an anti-trust lawsuit forced Microsoft to stop offering it for download, and to develop a tool to allow users to completely remove it from their systems. ''"Write once, run everywhere."'' is the motto of the Java platform. ''Java Edition'' includes the ''Java programming language'' and the ''Java core library''. Users who want to play Java games must install a ''Java Runtime Environment'' onto their computer, though some operating systems include one. ==Java applets== [[File:Slime-volleyball.png|thumb|300px|right|''[[Slime Volleyball]]'', an example of a Java applet.]] Java 1.0 introduced the concept of a ''Java applet'', a rectangular zone on a web page that could display a Java program. If you wanted to play ''[[Slime Volleyball]]'', for example, then you would open a web browser like Netscape Navigator 2.0 or Microsoft Internet Explorer 3.0, and visit a web page with the game. A ''security manager'' applied itself to Java applets, to prevent applets from accessing your files or doing any other unsafe activity. Java programs are compiled into ''bytecode'', not native machine code, so Java applets worked on different types of machines. You could play ''Slime Volleyball'' on [[Mac OS]], [[Solaris]], or [[Microsoft Windows]]. ===Why there were few Java applets=== Java 1.0 had some interesting programming features; string objects were in Unicode, and allowed Java to handle international languages. URL objects also provided an abstract way to connect to a network; the garbage collector prevented memory problems that would otherwise cause crashes. Java was simpler than C++ and became popular in educational fields. But the ''Abstract Window Toolkit'', the part of the Java core library for accessing native Mac OS, X11, or Microsoft Windows widgets, lacked features, and had an inefficient event model. Sound had to be a ".au" file at 8000 Hz quality, and images were not easy to load. Such a poor set of features did not attract many game programmers. Newer versions of Java made improvements, but Apple, Microsoft and Netscape forced their users to use Java 1.1, even though programmers wanted to use Java 1.2 or later. Just ''installing'' the current version of Java onto an operating system became an obstacle. ==Java application == [[File:Legerdemain pumpkin.png|frame|left|''[[Legerdemain]]'' shows Java's support for international Unicode characters, using them to draw a [[roguelike]] game.]] Other than Java applets, there are ''Java applications'' that run outside the web browser. Java applications originally were not easy to install and launch until Java 1.4 introduced ''Java Web Start''. With Java 1.4 installed, a link can be embedded within web pages to install Java applications. An example of a Java Web Start game is ''[[Legerdemain]]''. Currently, there are not many large scale games using 3D graphics in Java. The largest and most complex games to use ''Java'' are arguably ''[[RuneScape]]'' and ''[[Minecraft]]''. Initial developer installations of Java did not provide a programming interface for 3D graphics. Note, however, that since Java is interpreted bytecode, Java may be too slow for CPU-intensive games that would normally require a faster computer with a lot of computational ability. ==Java on the server== Some web server administrators were able to install Java and use it to script their web servers. Java is a lower-level language than Perl, PHP or Python, but some CGI programmers prefer Java. ==Installing Java== ===Microsoft Windows and Solaris=== # Visit [http://www.java.com/en/download/index.jsp Oracle Corporation] # Follow the instructions ===Linux x86 and x86-64=== * Follow the above instructions. Note that Oracle Corporation ''does not'' provide Java for other architectures of Linux, like SPARC, Alpha or PowerPC! ([http://www.blackdown.org/ Blackdown] has some ''old'' versions of Java for some architectures, although it is worth noting that these versions may contain security vulnerabilities.) ===macOS=== # Upgrade to the latest version of macOS. # Run "Software Update". Apple ''does not'' port current versions of Java to older versions of macOS. Running new Java programs may require you to upgrade to a superior macOS version. '''Commercial server operating systems''' * Some vendors of [[Unix]] or [[VMS]] have licenses from Oracle Corporation and provide ports of Java to their platforms. Check your operating systems' website. '''Other Unix distributions''' * If you run BSD-based x86 or x86-64 distributions, you might be able to use a Linux version of Java under emulation. If you run Linux PowerPC, you may be able to register with IBM and obtain their [http://www-128.ibm.com/developerworks/java/jdk/linux/ IBM Developer Kit] containing Java. ==Free alternatives to Java== There are free alternatives to Java that have been ported to more platforms. They implement most of Java 1.4, but also have other features. Most of them use [http://www.classpath.org GNU Classpath] for their core library. Look at [http://www.gnu.org/software/classpath/stories.html#jvm JVMs that use Classpath] or try [http://gcc.gnu.org/java/ GCJ] or [http://www.kaffe.org/ Kaffe]. You may be able to use them to play Java games on Linux or BSD. Some Linux distributions, like [http://www.ubuntu.com/ Ubuntu], include a free alternative to Java, ''[[OpenJDK]]''. The [http://openjdk.dev.java.net/ OpenJDK] project has HotSpot, a Java bytecode interpreter, and Javac, the Java language compiler. [[Category:Programming Languages]]
Summary:
Please note that all contributions to the Codex Gamicus are considered to be released under the CC BY-SA 3.0
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:ArrayListDevelopers
(
view source
) (protected)
Template:ArrayListPublishers
(
view source
) (protected)
Template:ArraySWPageType
(
view source
) (protected)
Template:ArrayStatusList
(
view source
) (protected)
Template:CompanySwitch
(
view source
) (protected)
Template:GameInfoboxLinksPI
(
view source
)
Template:Icon
(
view source
) (protected)
Template:SWPageTypeSwitch
(
view source
) (protected)
Template:SoftwareInfobox
(
view source
) (protected)
Template:StatusSwitch
(
view source
) (protected)
Follow on IG
TikTok
Join Fan Lab