Can't get Jar to execute

I have an application that I'm trying to create a Jar file so I can just execute the jar to run it. When I try to run it with "javaw JHandicap.jar" it says it can't find the main class. Nothing happens when double clicking the jar. Of course if i put in into the classpath it then finds all the classes. I have another program that works ok from the jar without being in the classpath, which I created a while ago, but it only has one class, so I'm guessing that's my problem.
For this program the main class is called JHandicap.
There is another class called DateComboBox.
And one more for WinClosing.
There are also a bunch of classes with $'s, like DateComboBox$1.class, but I'm not sure I understand the importance of those being included or whether they get created when it is run.
I created the Manifest in a couple different ways:
Try1:
Manifest-Version: 1.0
Main-Class: JHandicap
Created-By: James Pifer
Name: JHandicap.class
Java-Bean: False
Try 2:
Main-Class: JHandicap
try 3:
Main-Class: JHandicap.class
None of these worked. Do I include the other classes in the Manifest too? If so, how?
Can Anyone tell me what I'm doing wrong?
Do I create the jar with only the main class files or should I do *.class to include all the $ ones too. I've tried both ways.
Any help is appreciated.
James

My understanding is that the more recent JRE's can run JAR files by double clicking them. I know 1.3+ does, not sure about 1.2.
Anyway, I created my jar like this:
jar cfm myjar.jar Manifest.mf *.class
This will add all the classes in the current directory to the myjar.jar file. Make sure all your class files are in that directory, unless they are in your regular classpath.
My Manifest.mf has one line in it:
Main-Class: classname
Make sure you have a carriage return after this line. That's it, you should be able to double click on it. Hopefully I haven't missed anything.
HTH,
James

Similar Messages

  • How can I get Firefox to execute html code in a text file?

    I used Notepad to create a text file, markup.html, that contains html code. How can I get Firefox to execute this code?
    Also, how can I use the <script> tag in the html code using the src attribute to execute code in a file written in Javascript?

    First guess is that you did not use an .html extension on the file. The file may well be ''name.html.txt''
    * see http://www.bbc.co.uk/webwise/guides/file-extensions
    *http://windows.microsoft.com/en-gb/windows/show-hide-file-name-extensions#show-hide-file-name-extensions=windows-vista
    Forum Note
    This is normally offtopic for this forum. I say normally because now we cover webmaker questions. I wonder if this is therefore on topic as a webmaker question?
    I have tagged with webmaker-contribution

  • How can I get firefox to execute perl scripts from local files

    I have created perl scripts on my local host (file type ".pl").
    In MS Windows I have associated that type to a perl interpreter installed on my local host.
    IE allows me to create links to them and to execute them (after asking for permission).
    How can I get firefox to do the same? It doesn't seem to allow me to add application types, only to change those that are already defined. As a result, in firefox, they just show up as text, instead of being executed.

    First guess is that you did not use an .html extension on the file. The file may well be ''name.html.txt''
    * see http://www.bbc.co.uk/webwise/guides/file-extensions
    *http://windows.microsoft.com/en-gb/windows/show-hide-file-name-extensions#show-hide-file-name-extensions=windows-vista
    Forum Note
    This is normally offtopic for this forum. I say normally because now we cover webmaker questions. I wonder if this is therefore on topic as a webmaker question?
    I have tagged with webmaker-contribution

  • Can't get iTunes to execute.

    I've recently bought an iPod Nano and installed the iTunes software v5. When I try to execute iTunes, I get the agreement screen and an error message stating:
    The folder "iTunes" cannot be found or created and is required.
    The default location for this folder is inside the "My Music" folder.
    I've tried the suggested solution from the support pages which is to change the CD Burning drive using Tweka UI but this didn't help.
    Can anybody help please ??
      Windows XP  

    hi vgvera!
    I've tried the suggested solution from the support pages which is to change the CD Burning drive using Tweka UI but this didn't help.
    (puzzled look) that's not what that support document says. it says to adjust the location of the My Music folder.
    have a look at steps 4 through 8 again:
    iTunes for Windows: "Disk is locked" or "iTunes folder cannot be found" when installing or opening iTunes
    keep us posted.
    love, b

  • Can I get jar version from class run from within jar ?

    I am launching a number of applets from a single jar file. I want to display jar file version on initial applet. I would ideally like the applet to be able to determine from the jar file which it was part of what version it is . Is this possible ?
    Applets are swing based & I'm using java plugin

    if your jar file has a manifest that specifies the version number, you can use java.util.jar.JarFile to get the information. Other wise, you would just have to induce it based upon the file attributes of the jar file, using java.io. Remember that applets can not, by default, read the local file system, so you might have to use signed applets.

  • Can't get JAR file to work

    I am currently having problems getting the JAR file for my program to work properly. Here is what I'm doing in creating it and trying to run it:
    1.I create the JAR file with the command "jar cf myjar.jar *.class"
    2.I create a manifest file to point to the main class which contains only the line "Main-Class: MainClass". This is WITHOUT the .class extension
    3.I update the manifest for the jar archive with the command:"jar umf textfile myjar.jar"
    4.I try to run the app with the command "java -jar myjar.jar" but this only gives me an error that says "Failed to load Main-Class manifest attribute from
    myjar.jar"
    Am I doing something wrong here? I've tried to make my steps as close as possible to those that I read in the tutorials, but it's still not coming out for some reason. My computer does recognize the file as a JAR though since it made an icon of a JAR file for it. Please note I made up names for both my jarfile and main class file for privacy reasons, but I do not think the specific names would make much of a difference in this as they contain no special characters or anything in the file names.

    Hmm....I tried both of your tips javagalaxy and tsith by making the file look as javagalaxy posted as well as renaming it to "manifest.mf" and putting it in a "META-INF" folder that is in the same directory as all my .class files. I also made sure I hit Enter twice so that there was a blank line between the Main-Class line of the file. When i run the command it displayed "added manifest" as well as all the class names that I needed to be in the jar file including the main one that I'm trying to invoke. Despite all of that I'm still getting the same error that it can't load the main-class attribute from the jar file when using the command "java -jar myjar.jar" =/. I'm not really sure what went wrong. I tried deleting the extra line so that the cursor was flashing right below the Main-Class line, but that didn't change anything when I re-ran the commands. Did I do something else wrong in the manifest file? Thanks for your help so far! This is some complicated stuff the first time one tries it.

  • Can't get transitions to execute

    Hi folks,
    I'm building my first Flex app, which is a typical simple quiz. Intro state, string of questions, then a result.
    I'm stuck right now in that my transitions are not running. I suspect it has something to do with the fact that I extended the Application class and typed my main application mxml file to that class so that I could keep Actionscript separate from MXML in two separate files. The app will switch states successfully but it won't run the transition effects on a state change, and so my endEffect event is not firing...
    It may be that I have something else wrong altogether.
    Here is the application MXML file:
    <?xml version="1.0" encoding="utf-8"?>
    <classes:QuizApplication
        xmlns:local="*"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:classes="classes.*"
        layout="absolute"
        currentState="landingState"
        >
        <mx:HTTPService id="questions" url="./data/questions.xml" />
        <classes:states>
            <mx:State name="landingState"/>
            <mx:State name="landingStateOut" basedOn="landingState"/>
            <mx:State name="question">
                <mx:RemoveChild target="{text1}"/>
                <mx:RemoveChild target="{startButton}"/>
                <mx:AddChild relativeTo="{vbox1}" position="lastChild">
                    <local:FormHolderVBox id="formHolder" applicationVO="{applicationVO}" width="348" height="248" />
                </mx:AddChild>
            </mx:State>
            <mx:State name="resultState"/>
            <mx:State name="betweenQuestions1" basedOn="question">
                <mx:RemoveChild target="{formHolder}"/>
                <mx:RemoveChild target="{vbox1}"/>
            </mx:State>
        </classes:states>
        <classes:transitions>
            <mx:Transition id="advanceTransition0" fromState="landingState" toState="landingStateOut">
                <mx:Fade
                    duration="2000"
                    id="fadeToBetween"
                    alphaFrom="1"
                    alphaTo="0"
                    effectEnd="continueAdvance();"
                />    
            </mx:Transition>        
            <mx:Transition id="advanceTransition1" fromState="question" toState="betweenQuestions" effect="{fadeToBetween}" />        
            <mx:Transition id="advanceTransition2" fromState="question" toState="betweenQuestions">
                <mx:Fade
                    id="fadeToQuestion"
                    alphaFrom="0"
                    alphaTo="1"
                />    
            </mx:Transition>        
        </classes:transitions>
        <mx:Canvas x="45" y="41" width="392" height="361" id="canvas">
            <mx:VBox x="21" y="47" height="291" width="348" id="vbox1">
                <mx:Text text="Take this quick quiz to find out what type of shopper you are!" width="347" height="40" fontSize="12" id="text1"/>
                <mx:Button label="Start the Quiz" id="startButton"/>
            </mx:VBox>
        </mx:Canvas>
        <mx:Text text="What kind of shopper are you?"  fontSize="21" fontWeight="bold" fontFamily="Arial" x="45" y="41"/>
    </classes:QuizApplication>
    And here is the associated Actionscript:
    package classes
        import classes.events.AdvanceEvent;
        import flash.events.MouseEvent;
        import mx.collections.ArrayCollection;
        import mx.containers.Canvas;
        import mx.controls.Button;
        import mx.core.Application;
        import mx.events.FlexEvent;
        import mx.events.EffectEvent;
        import mx.rpc.events.ResultEvent;
        import mx.rpc.http.mxml.HTTPService;
        public class QuizApplication extends Application
            [Bindable]
            public var startButton:Button;
            public var canvas:Canvas;
            public var questions:HTTPService;
            //[Bindable] ?
            public var questionVOs:ArrayCollection;
            [Bindable]
            public var applicationVO:ApplicationVO;
            //CONSTRUCTOR
            public function QuizApplication()
                super();
                this.addEventListener(FlexEvent.APPLICATION_COMPLETE, init);
                // go ahead and create singleton of DataClass to store globals
                applicationVO = new ApplicationVO();
            //METHODS
            private function init(e:FlexEvent):void
                startButton.addEventListener(MouseEvent.MOUSE_UP, handleStartQuiz);
                questions.addEventListener(ResultEvent.RESULT, handleQuestionData);
                questions.send();
                // set up listeners for app business
                canvas.addEventListener(AdvanceEvent.FORWARD, advanceToQuestion);
                //canvas.addEventListener(AdvanceEvent.BACKWARD, advanceToQuestion);
            //    canvas.addEventListener(AdvanceEvent.CONTINUE, continueAdvance);
                // set to start with question 1
                applicationVO.currentQuestion = 0;
            // EVENT HANDLERS
            private function handleStartQuiz(e:MouseEvent): void
            //currentState = "question"; // states hard-coded in mxml
            trace("should set state to landingStateOut");
            trace("currentState now is "+currentState);
            currentState = "landingStateOut";
            trace("currentState now is "+currentState);        
            private function handleQuestionData(e:ResultEvent): void
                applicationVO.questionVOs = new ArrayCollection();
                // loop through XML's ArrayCollections and create an ArrayCollection of QuestionVO's, one for each question in XML
                 for each (var question:Object in e.result.questions.question)
                    var newVO:QuestionVO = new QuestionVO();
                    newVO.questionID = question.id;
                //    trace("question.id is "+question.id);
                    newVO.questionText = question.text;
                //    trace("question.text is "+question.text);
                    newVO.answers = new ArrayCollection();
                    for each (var answer:Object in question.answers.answer)
                        newVO.answers.addItem(answer);
                    //    trace("answer is "+answer);
                    applicationVO.questionVOs.addItem(newVO);
            private function advanceToQuestion(e:AdvanceEvent):void
                trace("should transition to next question now");
                e.stopImmediatePropagation();    
                if (e.type == "forward")
                    //somehow call the transition AdvanceTransition
                    applicationVO.currentQuestion++;
                    currentState = "betweenQuestions1";
                else
                    applicationVO.currentQuestion--;
                    currentState = "betweenQuestions1";
            public function continueAdvance():void
                trace("should transition now from betweenQuestions2 to question state");
                //currentState = "question";
    Can anyone point out what I've got wrong that could cause the Transitions not to work? I thought they were simply supposed to execute on a state change from A to B, for which you've indicated set up a Transition from state A to B.
    Many thanks!

    Ok, I finally figured out what was wrong.  I was missing the concept that you had to specify a target element in the effect definition in your transition upon which the transition would play.  Transition plays now.

  • How can i get a java executable (*.class) run on a web browser?

    I have created a simple appilcation in java and i would like to view it through a web browser.
    In order to do so, do i need to use an application server or just a web server?
    Can you come up with another solution to solve my problem(view the java application through the web)?
    Thank you in advance.

    If it HAS to be an application (perhaps something you have already written and now need to distribute), then Java Web Start may be an option.
    What is your user base? How many people will be using it? In what environment? How frequently will they use your app? I think you mentioned that it needs to read files. Is that on the user's machine?
    You may be able to create an applet version of your application using the same logic but subclassing some of the components to allow for remote login etc.

  • Please I can not get a .jar file to run on XP SP3 start/run/cmd/

    I can not get a .jar file to run on XP SP3 start/run/cmd/
    Please help if can figure this out. I'm convinced it is a Windows XP SP3 problem from searching on google and seeing other ppl on XP SP3 with same problem (but no working solution for myself). I'll try to be complete-listing all I've done.
    I had installed: Java SE Runtime Environment v6u14 for Windows Multi-language
    I had checked here it was working properly: http://www.java.com/en/download/manual.jsp
    I'm trying to run this jar file (soht-client-0.6.2.jar):
    http://prdownloads.sourceforge.net/telnetoverhttp/soht-java-client-0.6.2.zip?download
    http://www.ericdaugherty.com/dev/soht/javaclient.html < this is the information for the program.
    (yes the file can be executed and should open the program's window
    I wanted to post screenshot of it but friend that it's working for isn't here)
    _(Please find log of all cmds I did in this post here: http://pastebin.com/f792983df )_
    _I have extracted +'all' the files to: C:\062\+_ (I have tried using other directories, same problem)
    ++I then start/open/run/cmd+
    then I: cd C:\062\+
    then I try various commands - all+ of these do absolutely nothing- meaning no errors, no reply, no window opens, nothing except enters that directoy again:
    java -jar soht-client-0.6.2.jar
    java -jar -client soht-client-0.6.2.jar
    java -client -jar soht-client-0.6.2.jar
    java -jar soht-client-0.6.2.jar soht.properties
    soht-client-0.6.2.jar
    So I try this cmd: java soht-client-0.6.2.jar
    Reply:
    C:\062>java soht-client-0.6.2.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: soht-client-0/6/2/jar
    Caused by: java.lang.ClassNotFoundException: soht-client-0.6.2.jar
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: soht-client-0.6.2.jar. Program will exit.
    I try this cmd:
    java -jar soht-client-0.6.2.jar -client
    Reply:
    C:\062>java -jar soht-client-0.6.2.jar -client
    Unable to load configuration file: -client - java.io.FileNotFoundException: -cli
    ent (The system cannot find the file specified)
    SOHT Java Client
    The SOHT Java Client requires a properties file. Either start
    the application in the same directory as the soht.properties
    file, or specify the file name on the command line:
    java -jar soht-cleint-<version>.jar c:\soht.properties
    So then I do these cmds which produce the exact same error/reply just above; Unable to load..:
    j_ava -jar soht-client-0.6.2.jar -client soht.properties_
    java -jar soht-client-0.6.2.jar -client C:\062\soht.properties
    So then I copy soht.properties to C root and do:
    java -jar soht-client-0.6.2.jar -client C:\soht.properties <same error as above
    Then from other information I have read I right click on the .jar file, select open with Always open with:
    _"C:\Program Files\Java\jre6\bin\javaw.exe"_
    Try again.. same problem.
    Then I do cmd:
    _"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\062\soht-client-0.6.2.jar"_
    does nothing, retry the other commands same thing (either nothing or those same replies)
    Then I read (http://forums.sun.com/thread.jspa?threadID=5384879) someone had the same problem as I and they solved it by uninstalling all Java/reboot/ then install JDK 6 Update 14 with NetBeans 6.5.1 start NetBeans and then it worked for them.
    So I unistalled all Java, rebooted and gave the cmd another try (before re-installing), now a new error, of course:
    C:\062>java -jar soht-client-0.6.2.jar
    'java' is not recognized as an internal or external command, operable program or batch file.
    Then I install  Java SE and NetBeans Cobundle (JDK 6u14 and NB 6.5.1) Final Release/ reboot/ open Netbeans/
    go to test java page; all is good, run cmds again -and still nothing..
    C:\062>java -version
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
    I reassociate program with: C:\Program Files\Java\jre1.6.007\bin\javaw.exe_
    same thing.. nothing
    Thank you very much for your time :D_
    PS. My computer has been newly reformatted so needing another reformat I'm sure is not the solution.

    Thank you very much for your replies Taggert_77 & swmtgoet_x :D
    Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
    Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
    This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
    swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
    The proper cmd is simply: java -jar soht-client-0.6.2.jar
    I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
    java -client -jar soht-client-0.6.2.jar soht.properties
    Thank you again...the mystery remains
    PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above).

  • Get name of executing jar-file (who-am-i)

    Hi,
    I'm planning to use a jar-file for a JAVA-application that holds all classes and an additional file with initial values (init.txt). This should allow an easy way to change initial behavior without having to recompile the code (I mean I could put all the initial values directly into the code). So I simply change init.txt and deploy the jar-file.
    To achieve this I need a way to find out the name of the jar-file that is currently executing. With that I can open the jar-file from within the code and do the rest (I'm not going to bother you with this ;) ).
    In C it was pretty simple, an argv[0] would do it. But how does it work in JAVA? I only have access to the parameters passed to the program.
    EXAMPLE:
    ========
    The command line looks like this:
    java -jar MyApp.jar
    MyApp.jar contains this (among others):
    |- MyApp.class
    |- init.txt
    In this example I need to get the information that I'm "MyApp.jar". I already have the rest of the code so I'm only missing this little thingy.
    Thanks beforehands for help.

    No, you should NOT need the name of your JAR file. You are probably coding it up the wrong way. If what you're after is to be able to read that "init.txt" file, then do so via something like:
    InputStream initStream = getClass().getResourceAsStream("/init.txt");
    rather than using filename-based API's.

  • How can I get a single jar file with NetBeans?

    How can I get a single jar file with NetBeans?
    When I create the project I get these files:
    dist/lib/libreria1.jar
    dist/lib/libreria2.jar
    dist/software.jar
    The libraries that have been imported to create the project are in separate folders:
    libreria1/libreria1.jar
    libreria2/libreria2.jar
    libreria1, libreria2, dist folders are all located inside the project folder.
    I added the following code to the build.xml:
    <target name="-post-jar">
    <jar jarfile="dist/software.jar">
    <zipfileset src="${dist.jar}" excludes="META-INF/*" />
    <zipfileset src="dist/lib/libreria1.jar" excludes="META-INF/*" />
    <zipfileset src="dist/lib/libreria2.jar" excludes="META-INF/*" />
    <manifest>
    <attribute name="Main-Class" value="pacco.classeprincipale"/>
    </manifest>
    </jar>
    </target>
    Of course there is also the project folder:
    src/pacco/classeprincipale.form
    src/pacco/classeprincipale.java
    Can you tell me what is wrong? The error message I get is as follows:
    C:...\build.xml:75: Problem creating jar: archive is not a ZIP archive BUILD FAILED (total time: 2 seconds)

    This is not a NetBeans forum, it is a JDeveloper forum. You might want to try http://forums.netbeans.org/. I also saw your other question - try looking in the New to Java forum: New To Java

  • How can i get the path to config folder placed inside the jar file?

    Hi i have developed an RCP application using eclipse.
    In my application config directory is there.
    When i export my RCP application as JNLP Project the jar file is created which contains config folder inside it.
    When i download the application using java web start , how can i get the path to config folder placed inside the jar file?
    Will the config folder exists in local cache in my system?
    Help needed.
    -Deepak

    -- This works in CS6:
    tell application "Adobe InDesign CS6"
      set myDocument to active document
      set selectedRectangles to selection of myDocument
      set theGraphicsLink to file path of item link of (graphic 1 of (item 1 of selectedRectangles))
    --> "Macintosh HD:folder/folder/filename.tif"
    end tell

  • Can't get a jar file to work

    Hi All,
    I have a moronic question. I have a simple jar file called xmlpowertoolkit.jar and I can't get any of the classes in it imported into my simple console app.
    I unpacked the jar file to look at the namespace hierarchy since I have no documentation with this jar file. It came out like this:
    xmlpowertoolkit\com\sabre\xmlpowertoolkit\
    ... then a bunch of classes in this directory. Specifically, there is a class called XMLPowerToolKit_Services that I need to use. Here is a typical constructor call for this class:
    XMLPowerToolKit_Services myvar = new XMLPowerToolKit_Services ();
    Can someone tell me what I'm doing wrong with this jar file? How do I import this namespace so that I can use the class?
    Do I not say:
    import com.sabre.*;
    Thanks for your help.
    Steven Tate

    Try
    import xmlpowertoolkit.com.sabre.xmlpowertoolkit.*;
    OR
    import com.sabre.xmlpowertoolkit.*;
    I think com.sabre.* will just get you the classes at that "level" ... it doesn't grab the classes in subfolders.
    i hope that works.

  • Can you get the file name of the current executing TSQL script?

    Can you get the file name of the current executing TSQL script? I wrote entries to a generic log file and would like to include the script name.

    Okay, So What you can do is
    1. Read get the version from your  database and redirect it to a text file(SQLCMD outout can be directed to text file using -o option or windows redirection operator >)
    2. Now you can read this value from the text file either inside a batch file or a powershell script and decide what operations you can do. 
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • In wich jar can i get this class org.apache.batik.dom.util.DOMUtilities

    please let me know in which jar file can i get this class and tell me the location for downloading
    org.apache.batik.dom.util.DOMUtilities;
    import org.w3c.dom.Document;

    Hai,
    I think you have to use the xml-apis.jar file from the batik project, which has the class org.apache.batik.dom.util.DOMUtilities.
    Yogesh.

Maybe you are looking for

  • Generate Valid XML from pl/sql

    Hi, A new-bee here. I want to know how to generate a valid xml document. I have a schema which by the way includes two other schemas. This is the code I am using but I don't know how to make sure that I insert the child nodes in the right sequence. A

  • Comparing SQL data in the same table for two different dates

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 Hello, We have a batch scheduling tool that automatically runs Oracle jobs and when it runs the jobs it stores a record from the instance in a table. I am trying to write a query that pulls up

  • RFC receiver asynchronous

    Hi,  i’ve got a problem with an Asynchronous message. The operation goes from an FTP to a RFC. The file adapter converts a flat file into a XML, and the XML is sent to a Remote RFC. Everything is ok in XI. In the SXMB_MONI and in the RFC adapter moni

  • Organizer crash @ keyword save

    why does organizer crash when i try to save keyword tags? Elements 9 Organizer, Mac OS 10.7.4

  • DB_REP_JOIN_FAILURE when adding a new replicated environment

    Hello, I'm developing a replicated system using the Base Replication API. At the moment this works quite well except for the case that I add a new replicated site (Site N). On Site N I start with rep_start(NULL, DB_REP_CLIENT). After some messages ha