It is currently Tue Apr 16, 2024 12:52 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
Offline
 Post subject: KGS ignoring -open parameter?
Post #1 Posted: Sun Jun 13, 2010 4:39 pm 
Gosei
User avatar

Posts: 1435
Location: California
Liked others: 53
Was liked: 171
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
Lately it seems like cgoban is ignoring the -open command line parameter, which is keeping it from working as a Firefox helper. Specifically the command line...

Code:
javaws -open foo.sgf http://files.gokgs.com/javaBin/cgoban.jnlp

... no longer opens foo.sgf; it just opens cgoban.

Anybody else seeing this?

_________________
KGS 4 kyu - Game Archive - Keyboard Otaku

Top
 Profile  
 
Offline
 Post subject: Re: KGS ignoring -open parameter?
Post #2 Posted: Sun Jun 13, 2010 5:13 pm 
Lives in gote
User avatar

Posts: 450
Location: Portland, OR USA
Liked others: 257
Was liked: 287
KGS: wms
Are you sure the syntax is right? I thought it was just "javaws foo.jnlp <file to open>", but I could be wrong.

Top
 Profile  
 
Offline
 Post subject: Re: KGS ignoring -open parameter?
Post #3 Posted: Sun Jun 13, 2010 6:18 pm 
Oza

Posts: 2264
Liked others: 1180
Was liked: 552
that should be the correct syntax. I use it all the time (via a Mac app that Hikaru79 wrote):
http://www.godiscussions.com/forum/show ... php?t=4893

Humm.. I guess its been a while since I've actually tried to open an sgf directly

from the commandline, I get a Null Pointer Exception
Code:
$ javaws -Xnosplash -open game.sgf http://files.gokgs.com/javaBin/cgoban.jnlp
$ Exception in thread "javawsApplicationMain" java.lang.NullPointerException
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:441)
        at java.lang.Runtime.exec(Runtime.java:591)
        at java.lang.Runtime.exec(Runtime.java:464)
        at com.sun.javaws.Launcher.execProgram(Launcher.java:824)
        at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:499)
        at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:219)
        at com.sun.javaws.Launcher.run(Launcher.java:166)
        at java.lang.Thread.run(Thread.java:613)

Top
 Profile  
 
Offline
 Post subject: Re: KGS ignoring -open parameter?
Post #4 Posted: Sun Jun 13, 2010 6:31 pm 
Oza

Posts: 2264
Liked others: 1180
Was liked: 552
could it be that the <application-desc/> tag is missing the main-class name?

from http://java.sun.com/j2se/1.4.2/docs/gui ... yntax.html
Code:
    Arguments can be specified to the application by including one or more nested argument elements. For example:

      <application-desc main-class="Main">
        <argument>arg1</argument>
        <argument>arg2</argument>
      </application-desc>


because http://java.sun.com/j2se/1.5.0/docs/gui ... avaws.html says this about the -open command-line option to Java Web Start
Code:
-open <arguments>

    If specified, replaces the arguments in the jnlp file with -open <arguments>.


* this is all just guessing on my part

Top
 Profile  
 
Offline
 Post subject: Re: KGS ignoring -open parameter?
Post #5 Posted: Sun Jun 13, 2010 7:07 pm 
Gosei
User avatar

Posts: 1435
Location: California
Liked others: 53
Was liked: 171
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
Weird, it works on one computer, but not the other... Hey, wait a minute... Turns out I've got stupid openjdk! Lucid Lynx secretly replaced my coffee with decaffeinated Folgers Crystals, wondering if I'd notice. Oh, I noticed, b!%^#&s!

_________________
KGS 4 kyu - Game Archive - Keyboard Otaku

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group