Announcement

Collapse
No announcement yet.

How do I get the concurrent.jar file?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I get the concurrent.jar file?

    The install instructions say to go to;



    to obtain the concurrent.jar file. At that site the following instructions are presented;

    This package, currently declared as
    EDU.oswego.cs.dl.util.concurrent
    is available in (tar.gz format) or (zip format).
    It is currently distributed in source form only. To build it, use a Java 1.2+ compiler to:

    javac -d [SOMEWHERE IN YOUR CLASSPATH] *.java
    Or use this ant build file donated by Travell Perkins.

    I downloaded the ant build.xml file as well as the tar.gz file, extracted the file into the /tmp folder, put the build.xml file into the /tmp/concurrent folder, ran ant and while I get a "BUILD SUCCESFUL" response ... I don't get a concurrent.jar file being produced anywhere that I can find ... :O(

    Any help would be apprciated.

  • #2


    follow the instructions and you sould have concurrent.jar at the end

    I did it with the zip format
    unzip it create the directories do the commands

    Comment


    • #3
      Getting concurrent.jar using ANT

      The problem is I don't have JAVAC on my computer or at least it gives me an "Unknown Command" error when I try to run it. That's why I was hoping I could use the "ant" build.xml route.

      Comment


      • #4
        Originally posted by Sneeper View Post
        The problem is I don't have JAVAC on my computer or at least it gives me an "Unknown Command" error when I try to run it. That's why I was hoping I could use the "ant" build.xml route.
        1. you want to read the install instructions again http://www.open-xchange.com/wiki/ind...e_Installation
        2. you can't install OX without a java sdk (which provides javac)
        3. ant uses javac to create concurrent.jar

        Comment


        • #5
          Which JAVAC package do I install?

          ANT works fine ... I used it to build the json.jar file ... but no JAVAC ...

          root@ubuntu:/tmp/concurrent# javac --help
          The program 'javac' can be found in the following packages:
          * gcj-4.1
          * jikes-sablevm
          * kaffe
          * jikes-sun
          * ecj
          * java-gcj-compat-dev
          * j2sdk1.4
          * jikes-classpath
          * jikes-gij
          * jikes-kaffe
          * sun-java5-jdk
          * sun-java6-jdk
          Try: apt-get install <selected package>
          Make sure you have the 'multiverse' component enabled
          bash: javac: command not found
          root@ubuntu:/tmp/concurrent# ant
          Buildfile: build.xml

          help:
          [echo] To build concurrent.jar which contains the core library and misc classes: ant dist
          [echo] To clean the build created files: ant clean

          BUILD SUCCESSFUL
          Total time: 1 second
          root@ubuntu:/tmp/concurrent# dir *.jar
          dir: *.jar: No such file or directory
          root@ubuntu:/tmp/concurrent# cd ..
          root@ubuntu:/tmp# dir *.jar
          dir: *.jar: No such file or directory

          ANT works, but NOT the build.xml that was on the web site ... at least it doesn't work on my brand spanking new Ubuntu 7.04 server version.

          So which of the above packages should I install? I'm assuming the "sun-java5-jdk" or the "sun-java6-jdk"?

          Comment


          • #6
            Originally posted by Sneeper View Post
            root@ubuntu:/tmp/concurrent# ant
            Buildfile: build.xml

            help:
            [echo] To build concurrent.jar which contains the core library and misc classes: ant dist
            [echo] To clean the build created files: ant clean

            BUILD SUCCESSFUL
            Total time: 1 second

            ant doesn't work fine without javac what you see is just a help message that does echo 2 times (and hence doesn't need javac for this) the first line tells you what to do to get concurrent jar.

            These 3 packages have a javac command:
            • j2sdk1.4
            • sun-java5-jdk
            • sun-java6-jdk
            debian has the update-alternatives command to set it up right.

            Comment


            • #7
              Something is not adding up if ANT requires JAVAC then I must have it someplace, I just need to find out how to access it becasue ANT built the json.jar as per the instructions;

              root@ubuntu:/home/jan# cd /tmp
              root@ubuntu:/tmp# cvs -d server:anonymous@www.open-xchange.com:/var/lib/cvs co json-jdk15
              cvs checkout: CVS password file /root/.cvspass does not exist - creating a new file
              cvs checkout: warning: cannot write to history file /var/lib/cvs/CVSROOT/history: Permission denied
              cvs checkout: Updating json-jdk15
              U json-jdk15/build.xml
              cvs checkout: Updating json-jdk15/src
              cvs checkout: Updating json-jdk15/src/org
              cvs checkout: Updating json-jdk15/src/org/json
              U json-jdk15/src/org/json/CDL.java
              U json-jdk15/src/org/json/Cookie.java
              U json-jdk15/src/org/json/CookieList.java
              U json-jdk15/src/org/json/HTTP.java
              U json-jdk15/src/org/json/HTTPTokener.java
              U json-jdk15/src/org/json/JSONArray.java
              U json-jdk15/src/org/json/JSONException.java
              U json-jdk15/src/org/json/JSONObject.java
              U json-jdk15/src/org/json/JSONString.java
              U json-jdk15/src/org/json/JSONStringer.java
              U json-jdk15/src/org/json/JSONTokener.java
              U json-jdk15/src/org/json/JSONWriter.java
              U json-jdk15/src/org/json/Test.java
              U json-jdk15/src/org/json/XML.java
              U json-jdk15/src/org/json/XMLTokener.java
              root@ubuntu:/tmp# cd /tmp/json-jdk15
              root@ubuntu:/tmp/json-jdk15# ant
              Error: JAVA_HOME is not defined correctly.
              We cannot execute java
              root@ubuntu:/tmp/json-jdk15# export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
              root@ubuntu:/tmp/json-jdk15# ant
              Buildfile: build.xml

              clean:

              prepare:
              [mkdir] Created dir: /tmp/json-jdk15/build
              [mkdir] Created dir: /tmp/json-jdk15/lib

              compile:
              [javac] Compiling 15 source files to /tmp/json-jdk15/build

              jar:
              [jar] Building jar: /tmp/json-jdk15/lib/json.jar

              default:

              BUILD SUCCESSFUL
              Total time: 15 seconds
              root@ubuntu:/tmp/json-jdk15# cp lib/json.jar /opt/open-xchange/lib
              root@ubuntu:/tmp/json-jdk15#

              So is there some sort of equivalent to the export command, "export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun" that I need to add to the build.xml file? I tried running the command just before running ANT, but that didn't help any.

              :O(

              Jan

              Comment


              • #8
                Clueing in SLOWLY ... you meant I needed to type "ant dist", not just "ant" in the concurrent sub-folder ... well, lo and behold ... "ant dist", worked and I now have a concurrent.jar file ... many thanks!!!

                Jan

                Comment

                Working...
                X