This page shows how to compile a very graphical java project such as the popular rubik's cube created by Karl Hörnell. Originally located here but now located here.
|Java Rubik's Cube By Karl Hörnell, March 11, 1996.|
Last modified April 17, 1996. Point the mouse at the cube and press s to scramble and r to reset.
The HTML code shown below was used to display the rubik's cube seen above.
<applet code="rubik.class" archive="rubik.jar" width=120 height=120>
RUBIK'S CUBE SOURCE FILES
rubik.java code needed to build compressed binary jar file (15.8KB).
rubik.jar compressed java binary archive used by this web page (7.1KB).
rubik.sh script used here for automatic compiling (242 bytes).
rubik.tar.gz the original rubik's cube source code and example HTML file, however, please visit Karl's website for updates and other java program examples (10.4KB).
COMPILE JAVA MANUALLY
To compile "rubik.java" source code manually into a compressed "rubik.jar", follow these steps on the command line:
1. 2. 3. 4. 5.
COMPILE JAVA BY SCRIPT
This "rubik.sh" script lets you compile the "rubik.java" code all in one step. This script assumes the project is in directory "~/temp"
# Create compiled code from java file.
# Create a compressed jar archive from compiled file.
# Cleanup results
# Show results
Follow the steps below to compile this project.
|Other Java Pages On This Web Site|
|Java Install||Example Clock||Example Spreadsheet||A Few Games|
|Other Pages On This Web Site|
|Home Page||Backup With Tar||Disk Image Backup||BOINC On Linux||android.rules For adb Server|
|Remove Duplicate Files||Remove Spaces In File Names||Change MAC Address||Ship Arcade||PicDis Disassembler|