[Coco] Drivewire4 - Java problem

Aaron Wolfe aawolfe at gmail.com
Sun Sep 1 09:47:58 EDT 2013


On Sun, Sep 1, 2013 at 9:41 AM, Bill Pierce <ooogalapasooo at aol.com> wrote:

I would change the bit about the GUI not understanding multiple
instances, it mostly does now :)
Otherwise this is still accurate.


> According to Aaron's notes,
>
> --- Aaron's email quote ---
>
> Ok.. to do multiple instances/devices requires a good understanding of the many ways/options to launching DW.
> First, a "normal" open, same thing that happens if you double click on the .exe launcher thing:
> Open a command prompt, cd to wherever DW lives, enter:
>
> java -jar DW4UI.jar
>
> You'll get the typical behavior.
> Now, let's open a second GUI to the same server.  So with the 'normal' instance still running, open another command prompt and do:
>
> java -jar DW4UI.jar -noserver
>
> This tells DW you just want another GUI, not another server.  You'll now have 2 GUIs that are both connected to the server started by the first.
>
> Now... you want to control 2 different devices (a serial port and a tcp port).  There are 2 ways to do this.  You can either run one server with 2 instance definitions, or you can run 2 servers.  The GUI doesn't understand the first form very well, so lets just run 2 servers.
>
> Again, our first device is basically covered by the default way we run DW.  To run a second server that talks to a second device, we need a second config file for it.  So..
>
> Copy config.xml to something, say conf2.xml
>
> Edit conf2.xml to make sure we have different UI ports.. we can't use the same port from 2 different programs at once. So edit conf2.xml and look for
>
> <UIPort category="advanced" max="65535" min="1" type="int">6800</UIPort>
>
> or maybe just
>
> <UIPort>6800</UIPort>
>
> (same thing, one just has extra details used by the config editor)
> Change the 6800 to something else, anything that's free is fine.  Lets use 6799.
> Now lets start up the second server (assuming you still have server #1 running):
>
> java -jar DW4UI.jar -noui -config conf2.xml
>
> Now we have 2 servers running and 1 GUI running, which is showing us the first server. To switch to the second server, we go to the GUI and in the File menu "Choose Server", enter '127.0.0.1:6799'. This switches the GUI to the second server.  To switch back, its '127.0.0.1:6800' (should be in the history drop down, makes switching back and forth easy).
>
> Or maybe you want a GUI for each server.  No problem, start the second GUI with:
>
> java -jar DW4UI.jar --noserver
>
> and use File menu to attach to second server.
>
> Hope that makes sense!  There is a lot of flexibility.  Try:
>
> java -jar DW4UI.jar -help
>
> for all the available command line options. These control the runtime behavior of that particular DW instance.
>
> -Aaron
>
> --- end quote --
>
>
>
> Bill Pierce
> My Music from the Tandy/Radio Shack Color Computer 2 & 3
> https://sites.google.com/site/dabarnstudio/
> Co-Webmaster of The TRS-80 Color Computer Archive
> http://www.colorcomputerarchive.com/
> Co-Contributor, Co-Editor for CocoPedia
> http://www.cocopedia.com/wiki/index.php/Main_Page
> E-Mail: ooogalapasooo at aol.com
>
>
>
>
> -----Original Message-----
> From: Robert Gault <robert.gault at att.net>
> To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
> Sent: Sun, Sep 1, 2013 9:03 am
> Subject: Re: [Coco] Drivewire4 - Java problem
>
>
> Bill Pierce wrote:
>>
>> Hi,
>> After a complete (reformat) re-installation of my Windows Vista Home Premium
> 64 bit system and re-installing the latest Java package, I've noticed that when
> I run Drivewire4 then close it, I cannot reopen Drivewire 4 until the java
> applet removes itself from memory. This sometimes takes a few minutes. If I
> click on the DW4 icon during this time, nothing happens. When the java app
> finally disappears from the services list in task manager, I can once again run
> Drivewire.
>> In my previous Windows install (same version of windows and java) I did not
> see this problem. Since I use both 32 bit and 64 bit browsers, the Java site
> suggested I install both 32 & 64 bit installations of Java. I'm pretty sure I
> had the same thing on my previous install of java.
>>
>> Multiple instances of DW4 are not happening either. Before, I could run
> several instances of dw4. Now after starting the first instance, no other
> instance will start.
>> I feel this is a Java problem and not DW4. Does anyone know what may cause
> Java not to close itself after the dw4 software closes?
>>
>> Thanks
>>
>> Bill Pierce
>
> With a WinXP 32-bit system and the current JAVA package, I can almost get two
> DW4 windows functioning. There is an error message which may well explain what
> is necessary to really get multiple windows running.
>
> =======================================================
> D:\Coco\DW4>java -Xmx256M -jar DW4UI.jar --backup
> 01 Sep 2013 08:50:50 INFO  [dwserver-8    ] DriveWire Server v4.3.3o starting
> Error 0x5 at ..\src\termios.c(887): Access is denied.
>
> Warning: NineServer port already in use.  Is another DW4UI running?
> =======================================================
>
> Looks like each DW4 window will need its own config.xml indicating different
> ports and maybe disk mounts.
>
> Robert
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco



More information about the Coco mailing list