RedBrick Ubuntu DIY: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 35: | Line 35: | ||
==More about how we build the CD== | ==More about how we build the CD== | ||
The above is how we added the java support onto the image used to build the live cd. For more about how the live cd was actually constructed read | The above is how we added the java support onto the image used to build the live cd. For more about how the live cd was actually constructed read [https://help.ubuntu.com/community/LiveCDCustomization help.ubuntu.com/community/LiveCDCustomization] |
Revision as of 01:25, 6 October 2008
If you're already running linux you'll probably want to integrate our java changes rather than re-install.
These instructions are based on Ubuntu 8.04 Hardy Heron (the version the cd is based on). This process will vary between distributions.
Install java
From a terminal run:
sudo apt-get install openjdk-6-jdk
This will install java on your system
Adding Files for First Year java
Programs in first year java rely on extra classes and jars not part of normal java.
- Use "sudo su" to become root
- cd /usr/lib/jvm/java-6-openjdk
- wget http://www.redbrick.dcu.ie/~receive/java/Console.class
- wget http://www.redbrick.dcu.ie/~receive/java/robots.jar
- wget http://www.redbrick.dcu.ie/~receive/java/graphics.jar
Setting the classpath
- cd /etc/profile.d
- wget http://www.redbrick.dcu.ie/~receive/java/java.sh
- chmod 755 java.sh
This will download a script that sets the classpath to include the jars/class we just downloaded. This script is ran for all shells.
More about how we build the CD
The above is how we added the java support onto the image used to build the live cd. For more about how the live cd was actually constructed read help.ubuntu.com/community/LiveCDCustomization