Skip to content
Adam edited this page Jan 16, 2013 · 2 revisions

Table of Contents

Install Java

  • Download the Java JDK (JDK 6 Update 6) Linux RPM in self-extracting file from SUN

    Java JDK 6 update 6
  • If running the command:
java -version chmod +x jdk-6u6-linux-i586-rpm.bin
  • Install JDK. Scroll down and say 'yes' when prompted.
./jdk-6u6-linux-i586-rpm.bin
  • Install the key for the JPackage repository
rpm --import http://jpackage.org/jpackage.asc
  • Install the JPackage repository information for yum
cd /etc/yum.repos.d wget http://www.jpackage.org/jpackage17.repo
  • Install the Java JRE
yum -y --enablerepo=jpackage-generic-nonfree install java-1.6.0-sun-compat.i586
  • Expected Output
'''<tt>=========================================================================</tt>''' Package Arch Version Repository Size '''<tt>=========================================================================</tt>''' Installing: java-1.6.0-sun-compat i586 1.6.0.06-1jpp jpackage-generic-nonfree 54 k Transaction Summary '''<tt>=========================================================================</tt>''' Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 54 k Is this ok [y/N]: y Downloading Packages: {| border="1" |- (1/1): java-1.6.0-sun-com 100% ||=========================|| 54 kB 00:00 |} Running Transaction Test Finished Transaction Test Running Transaction Installing : java-1.6.0-sun-compat ######################### [1/1] Installed: java-1.6.0-sun-compat.i586 0:1.6.0.06-1jpp Complete!
  • Set default JAVA path to new JRE
/usr/sbin/alternatives --config java


Expected Output

Selection Command ----------------------------------------------- 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java *+ 2 /usr/lib/jvm/jre-1.6.0-sun/bin/java Enter to keep the current selection[+], or type selection number:


Select number corresponding to jre-1.6.0-sun

Install Java GUI Package

yum install netfpga-gui

Java GUI Regression Tests

  • Run the regression tests
nf2_regress_test.pl --project gui_scone
  • Sample correct output:
Root directory is /usr/local/NF2 Running tests on project 'gui_scone'... Running global setup... PASS Running test 'test_main_frame'... PASS Running test 'test_routing_table'... PASS Running test 'test_arp_table'... PASS Running test 'test_port_config_table'... PASS Running test 'test_popup'... PASS Running global teardown... PASS

Clone this wiki locally