Are you a regular competitor of TopCoder SRMs? If yes, then probably you have been launching the Arena by (double) clicking a sacred file named ContestAppletProd.jnlp somewhere in your computer. You must have been doing that every time you want to participate in an SRM.
I felt that looking for that file before every SRM is quite tedious, and putting the file in my desktop is not an elegant way. So, I added a launcher to TopCoder Arena in Ubuntu GNOME menu. It is very handy, so I would like to share how to do that. In this tutorial, I am using Ubuntu 11.04 Natty Narwhal.
First things first:
- Download ContestAppletProd.jnlp from TopCoder website, by clicking the O(n) icon in the upper left corner. Save it, for example, in /home/fushar/TC.
- Install Oracle Java 6/7 JRE. You can consult https://help.ubuntu.com/community/Java for help.
Now let’s add TopCoder to Ubuntu menu.
- Right-click GNOME menu, and click Edit Menus. A new window will appear.
- Select Programming, and then click New Item. Enter these details:
- Type: Application
- Name: TopCoder Arena
- Comment: Launch TopCoder Arena (or anything you want)
- Enter the following into the Command field. Of course, enter your own path to ContestAppletProd.jnlp.
(You could also use full path for javaws if you install several versions of Java.)
- If you want an icon for the menu, then download this image, save it somewhere, click the icon button in the left, and then select the image. The image is basically a JPG-converted image from TopCoder website’s favicon.
- Click Close.
Done! You should be able to see the new menu in Applications -> Programming. From now on, you can forget where you place the ContestAppletProd.jnlp file, and run the Arena directly from Ubuntu menu instead.
Bonus tip: If you add -Xnosplash before the ContestAppletProd.jnlp path, like this:
javaws -Xnosplash “/home/fushar/TC/ContestAppletProd.jnlp”
then the Java splash logo will not appear before the Arena loads.
Try this! I would love to hear how this tutorial helps you guys 🙂