Tuesday, December 20, 2011

How to run Topcoder Arena from Ubuntu

Somehow Topcoder Arena does not work in chrome or firefox browsers in Ubuntu 11.10.

This is what you can do instead:
(1) Download http://www.topcoder.com/contest/classes/ContestApplet.jar to your local directory.
(2) Run the following code in a terminal.
java -cp ContestApplet.jar com.topcoder.client.contestApplet.runner.generic www.topcoder.com 5001

This method works in openjdk as well.

Update: this seems no longer working for Java 7. The ultimate solution is to configure Ubuntu/Mac etc. to open .jnlp files with javaws, similar to the instructions in this post.

12 comments:

qiuqiyuan said...

Hi I used your method and ti worked.
But I came across another problem that I cannot directly edit the file generated by topcoder plugins. There are written.

Test said...

You can also try this:
http://mytechmemo.blogspot.com/2012/01/how-to-let-google-chrome-automatically.html

Coder said...

But I got the error FAILED TO ESTABLISH A CONNECTION TO THE SOCKET SERVER
I don't know why

Chong Luo said...

Maybe try at a different time? I just checked and it works.

Ravi Shankar said...

IT DOESN'T WORK ANYMORE

NEW METHOD:

Download the following files:

http://www.topcoder.com/contest/classes/7.0/arena-client-7.0.0.jar
http://www.topcoder.com/contest/classes/7.0/basic_type_serialization-1.0.1.jar
http://www.topcoder.com/contest/classes/7.0/client-socket-SNAPSHOT.jar
http://www.topcoder.com/contest/classes/7.0/concurrent-SNAPSHOT.jar
http://www.topcoder.com/contest/classes/7.0/encoder-SNAPSHOT.jar
http://www.topcoder.com/contest/classes/7.0/arena-shared-SNAPSHOT.jar
http://www.topcoder.com/contest/classes/7.0/client-common-SNAPSHOT.jar
http://www.topcoder.com/contest/classes/7.0/compeng-common-SNAPSHOT.jar
http://www.topcoder.com/contest/classes/7.0/custom-serialization-SNAPSHOT.jar
http://www.topcoder.com/contest/classes/7.0/http-tunnel-client-SNAPSHOT.jar
http://www.topcoder.com/contest/classes/7.0/log4j-1.2.13.jar

And then run the following command:


java -cp "arena-client-7.0.0.jar:basic_type_serialization-1.0.1.jar:client-socket-SNAPSHOT.jar:concurrent-SNAPSHOT.jar:encoder-SNAPSHOT.jar:arena-shared-SNAPSHOT.jar:client-common-SNAPSHOT.jar:compeng-common-SNAPSHOT.jar:custom-serialization-SNAPSHOT.jar:http-tunnel-client-SNAPSHOT.jar:log4j-1.2.13.jar" com.topcoder.client.contestApplet.runner.generic www.topcoder.com 5001

Anonymous said...

^^ thanks for the above update

Anonymous said...

it doesn't works when I try open promlem

Anonymous said...

thanks for the update. I am able to launch arena.

Anonymous said...

I get a 404 when I try to download http://www.topcoder.com/contest/classes/7.0/arena-client-7.0.0.jar

Online suggestions include using the more recent http://www.topcoder.com/contest/classes/7.0/arena-client-7.0.2.jar, but this doesn't work either.

Anonymous said...

Please configure Ubuntu to open .jnlp files using javaws. This will always work even if TopCoder upgrades their plugin. Please see "Update" above for more details.

sturmer said...

Hi, just to keep this post fresh, I have tried to use the method you explain in the post and it works (Ubuntu 13.10, Java 7). Using javaws ContestAppletProd.jnlp also works.

Anonymous said...

How to add proxy authentication in the method given.

Visitors