Menu

Installing on Unix

Help
Matthew
2004-08-12
2004-08-25
  • Matthew

    Matthew - 2004-08-12

    I have the following files
    1. ConsultComm-3.0.5.zip
    2. ConsultComm-3.0.5.src.zip

    I wish to install these files under a Unix Environment.

    How do i do this?

    Also how do i set this program up under a CVS environment.

    Thank you.

     
    • DeckerEgo

      DeckerEgo - 2004-08-12

      Here's the list of file extensions you'll normally see with Unix/Linux:

      .src.tar.gz - These are source files, compressed into a single file. Use this file if you want to view the source code or compile a project from scratch.

      .zip - Compressed binary files. This file should contain all the pre-compiled binaries you need.

      .rpm - Package manager files, used for automated installation of programs. This is the preferred method for installing applications in Linux.

      Also included is a .jar file, which has a GUI installer to walk you through the process.

      My recommendation is to either use the .zip file or the .rpm file to install ConsultComm. Either one has a shell script to launch the program called `ConsultComm`.

      To view the project in CVS, see the instructions at https://sourceforge.net/cvs/?group_id=34622

       
      • Matthew

        Matthew - 2004-08-12

        I can only use the files i have been supplied with.
        And i am new to unix.

        I have unzipped the files seperatly, i did this under windows.
        I then ended up with the following two directories

        1. ConsultComm-3.0.5
        2. ConsultComm-3.0.5.src

        Then under unix, i went into the directory with the CsltComm.jar file, an type the command
        $ java -jar CsltComm.jar

        And the program worked.

        But im not sure if this is the correct way of going about installing the program.

        Upon typing this command i get the following output in the shell before the program opens.

        $ ...ConsultComm-3.0.5>java -jar CsltComm.jar

        Deserializing plugin JDBCConnect from JDBCConnect.xml
        Instantiating plugin TimeOut from TimeOut.jar
        Error loading file X/libtimeout.so: java.io.IOException: Stream closed
        Instantiating plugin TotalTimes from TotalTimes.jar
        Set size to 258.0 489.0

        Any more help would be great.

         
        • DeckerEgo

          DeckerEgo - 2004-08-13

          Is there something in particular that isn't working? Those messages are normal feedback of the plugin system. Is the application not functioning correctly for you?

           
          • Matthew

            Matthew - 2004-08-13

            Ok then i was not sure that was the normal behaviour of the program.

            So then the process i have taken is fine in attempting to install the program??

            By unzipping the 2 files i was provided with.
            This then creates two new folders.
            Then in order to run the program i just type the command java -jar CsltComm.jar

            I also noticed the following output in the consol when selecting the edit option from the project menu.

            java.lang.NullPointerException
                    at ClntComm.editWindow(Unknown Source)
                    at ClntComm.editProject(Unknown Source)
                    at ClntComm.access$200(Unknown Source)
                    at ClntComm$3.actionPerformed(Unknown Source)
                    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
                    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
            n Source)
                    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
                    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
                    at javax.swing.AbstractButton.doClick(Unknown Source)
                    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
                    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease
            d(Unknown Source)
                    at java.awt.Component.processMouseEvent(Unknown Source)
                    at java.awt.Component.processEvent(Unknown Source)
                    at java.awt.Container.processEvent(Unknown Source)
                    at java.awt.Component.dispatchEventImpl(Unknown Source)
                    at java.awt.Container.dispatchEventImpl(Unknown Source)
                    at java.awt.Component.dispatchEvent(Unknown Source)
                    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
                    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
                    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
                    at java.awt.Container.dispatchEventImpl(Unknown Source)
                    at java.awt.Window.dispatchEventImpl(Unknown Source)
                    at java.awt.Component.dispatchEvent(Unknown Source)
                    at java.awt.EventQueue.dispatchEvent(Unknown Source)
                    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

                    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
                    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                    at java.awt.EventDispatchThread.run(Unknown Source)

            Is this also normal behaviour of the program?

            I can still use the edit option, it just spews out the messages stated above every time i select it thats all.

            Therefore, i thought the reason for this was that the program was not installed properly.

            Thanks very much for your help.

             
            • DeckerEgo

              DeckerEgo - 2004-08-13

              Console messages are for debugging purposes. If it's still working as expected you should be okay.

              Note that the full command to launch the application is in the README: java -Djava.library.path=syslibs/ -jar CsltComm.jar . There is also a shellscript called `ConsultComm` that does this automatically for you.

               
        • DeckerEgo

          DeckerEgo - 2004-08-25

          Just found your course's web page on project methodology & code refactoring. Lemme know if you guys come up with any good code changes ;)

           
    • Matthew

      Matthew - 2004-08-14

      What do i have to do in order to execute the shellscript?

      Thanks

       
    • Matthew

      Matthew - 2004-08-14

      i typed

      bash-2.03$ sh ConsultComm

      and get the following output

      ConsultComm: CSLTCOMM_HOME /usr/local/ConsultComm does not exist; you must set it
      ConsultComm: in your environment or in the ConsultComm script

      What exactly do i have to do.

      Thanks again.

       
      • DeckerEgo

        DeckerEgo - 2004-08-14

        A few ways:

        1) Define the directory you installed ConsultComm by setting the environment variable CSLTCOMM_HOME (i.e. by typing `export CSLTCOMM_HOME=/opt/ConsultComm`)

        2) Move the ConsultComm files into /usr/local/ConsultComm

        3) Edit the ConsultComm script and change the top line to be the path that contains CsltComm.jar

         

Log in to post a comment.

MongoDB Logo MongoDB