Jaqoup’s Weblog

A Blog !!!!

TopCoder Arena launcher in Ubuntu

well..

that took me some time to create the launcher :D

first i’m running on Ubuntu 9.04, all what i wanted is a launcher to start the Arena without the need to digg into folders for it

so i made the icon, put it in the Application launcher and added the command wich was “javaws %ArenaPath%/ContestAppletProd.jnlp”

and when i click it, nothing happens

and when running that command in a terminal it outputs:

Jun 23, 2009 5:26:20 PM com.sun.corba.se.impl.ior.IORImpl getProfile
WARNING: "IOP00511201: (INV_OBJREF) IOR must have at least one IIOP profile"
org.omg.CORBA.INV_OBJREF:   vmcid: SUN  minor code: 1201  completed: No
 at com.sun.corba.se.impl.logging.IORSystemException.iorMustHaveIiopProfile(IORSystemException.java:473)
 at com.sun.corba.se.impl.logging.IORSystemException.iorMustHaveIiopProfile(IORSystemException.java:495)
 at com.sun.corba.se.impl.ior.IORImpl.getProfile(IORImpl.java:334)
 at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:787)
 at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:761)
 at com.sun.corba.se.impl.encoding.CDRInputStream.read_Object(CDRInputStream.java:231)
 at com.sun.corba.se.impl.resolver.INSURLOperationImpl.getIORFromString(INSURLOperationImpl.java:120)
 at com.sun.corba.se.impl.resolver.INSURLOperationImpl.operate(INSURLOperationImpl.java:130)
 at com.sun.corba.se.impl.orb.ORBImpl.string_to_object(ORBImpl.java:836)
 at org.GNOME.Accessibility.AccessUtil.getRegistryObject(AccessUtil.java:143)
 at org.GNOME.Accessibility.JavaBridge.registerApplication(JavaBridge.java:1099)
 at org.GNOME.Accessibility.JavaBridge.<init>(JavaBridge.java:364)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
 at java.lang.Class.newInstance0(Class.java:372)
 at java.lang.Class.newInstance(Class.java:325)
 at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:786)
 at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:875)
 at javax.swing.ImageIcon.<init>(ImageIcon.java:136)
 at javax.swing.ImageIcon.<init>(ImageIcon.java:155)
 at net.sourceforge.jnlp.runtime.JNLPRuntime.loadWindowIcon(JNLPRuntime.java:469)
 at net.sourceforge.jnlp.runtime.JNLPRuntime.getDefaultBaseDir(JNLPRuntime.java:259)
 at net.sourceforge.jnlp.runtime.Boot.getBaseDir(Boot.java:405)
 at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:169)
 at java.security.AccessController.doPrivileged(Native Method)
 at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:160)
netx: Invalid XML document syntax.

after some searching i found that this was because of the version of JAVA i use, the default 1.6 but “OpenJDK”

so when i used the command

“/usr/lib/jvm/java-6-sun/bin/javaws   %ArenaPath%/ContestAppletProd.jnlp”

it ran correctly

and i added the “-Xnosplash” to the command before the Arena path to disable the JAVA web start splash screen :D

i hope that helps some body like me :)

June 23, 2009 - Posted by Jaqoup | Jaunty | , , , , , , | 5 Comments

5 Comments »

  1. You can change the default JRE permanently using the command:

    update-alternatives –config java

    3ashan te5las men el aflam bta3et OpenJDK di 5ales

    Comment by Omar Tarabai | June 23, 2009 | Reply

  2. and for 64-bit users as Mohamad Abd El Fattah said:

    Let me add for 64-bit users. I like to use (K)Ubuntu 64-bit releases. As the SUN 64-bit JRE doesn’t contain javaws or javaw. You have two solutions:

    1) sudo apt-get install ia32-sun-java6-bin
    This will install the 32-bit JRE (including javaws to your linux. Thus, the javaws command will be the sun 32-bit JRE javaws.
    … Read More
    2) For the second solution, you don’t even need the 32-bit SUN Java. Install (actually, extract the 64-bit SUN JRE in your home folder). Then, this bash file will make the 64-bit java run the arena
    #########################
    #!/bin/bash
    rm ~/ContestApplet.jar # Remove the old jar file
    wget http://www.topcoder.com/contest/classes/ContestApplet.jar -O ~/ContestApplet.jar # Update it with the new one
    ~/%PATH_TO_JRE%/bin/java -jar ~/ContestApplet.jar http://www.topcoder.com 5001 http://tunnel1.topcoder.com/tunnel\?dummy TopCoder # Run the jar file, the arguments needed a little bit search, but they work as is for the current version of the Arena.
    #########################

    Comment by Jaqoup | June 24, 2009 | Reply

  3. قشطة انا ان شاء الله قريب أوى هرمى الويندوز, أدعيلى بس ربنا يثبتنى

    Comment by 5olio | June 25, 2009 | Reply

  4. thanks very much for sharing , it worked for me :)
    Who0o0o0o0
    Linux 4 ever :D

    Comment by kebomix | July 6, 2009 | Reply

  5. thank you so much … had my head spinning addressing this issue but only your post considers us 64-bit users. thanks again

    Comment by netstumbler | July 16, 2009 | Reply


Leave a comment