Compiling Java project on command line with CPlex

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I'm trying to compile a java project that uses CPlex on the command line (Ubuntu 14.04). I'm trying to run this command:



javac -cp /opt/ibm/ILOG/CPLEX_Studio_Community128/cplex/lib/cplex.jar *.java


I get about 98 errors and I believe they are all stemming from the first one:



error: package ilog.concert does not exist


I think this error means that the compiler can't find CPlex packages. I'm 100% sure that CPlex is installed here: /opt/ibm/ILOG/CPLEX_Studio_Community128/cplex



What should I try? Thank you!







share|improve this question
























    up vote
    0
    down vote

    favorite












    I'm trying to compile a java project that uses CPlex on the command line (Ubuntu 14.04). I'm trying to run this command:



    javac -cp /opt/ibm/ILOG/CPLEX_Studio_Community128/cplex/lib/cplex.jar *.java


    I get about 98 errors and I believe they are all stemming from the first one:



    error: package ilog.concert does not exist


    I think this error means that the compiler can't find CPlex packages. I'm 100% sure that CPlex is installed here: /opt/ibm/ILOG/CPLEX_Studio_Community128/cplex



    What should I try? Thank you!







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to compile a java project that uses CPlex on the command line (Ubuntu 14.04). I'm trying to run this command:



      javac -cp /opt/ibm/ILOG/CPLEX_Studio_Community128/cplex/lib/cplex.jar *.java


      I get about 98 errors and I believe they are all stemming from the first one:



      error: package ilog.concert does not exist


      I think this error means that the compiler can't find CPlex packages. I'm 100% sure that CPlex is installed here: /opt/ibm/ILOG/CPLEX_Studio_Community128/cplex



      What should I try? Thank you!







      share|improve this question












      I'm trying to compile a java project that uses CPlex on the command line (Ubuntu 14.04). I'm trying to run this command:



      javac -cp /opt/ibm/ILOG/CPLEX_Studio_Community128/cplex/lib/cplex.jar *.java


      I get about 98 errors and I believe they are all stemming from the first one:



      error: package ilog.concert does not exist


      I think this error means that the compiler can't find CPlex packages. I'm 100% sure that CPlex is installed here: /opt/ibm/ILOG/CPLEX_Studio_Community128/cplex



      What should I try? Thank you!









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 19 at 18:50









      ellen

      105




      105




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          The command I needed was



          javac -classpath .:/opt/ibm/ILOG/CPLEX_Studio_Community128/cplex/lib/cplex.jar *.java


          See the javac documentation for more info: http://www.cs.yorku.ca/tech/other/java/docs/tooldocs/solaris/javac.html (I should have checked this out earlier :O).



          The .: at the beginning of the path allows me to include my current directory as well.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026493%2fcompiling-java-project-on-command-line-with-cplex%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            The command I needed was



            javac -classpath .:/opt/ibm/ILOG/CPLEX_Studio_Community128/cplex/lib/cplex.jar *.java


            See the javac documentation for more info: http://www.cs.yorku.ca/tech/other/java/docs/tooldocs/solaris/javac.html (I should have checked this out earlier :O).



            The .: at the beginning of the path allows me to include my current directory as well.






            share|improve this answer
























              up vote
              0
              down vote



              accepted










              The command I needed was



              javac -classpath .:/opt/ibm/ILOG/CPLEX_Studio_Community128/cplex/lib/cplex.jar *.java


              See the javac documentation for more info: http://www.cs.yorku.ca/tech/other/java/docs/tooldocs/solaris/javac.html (I should have checked this out earlier :O).



              The .: at the beginning of the path allows me to include my current directory as well.






              share|improve this answer






















                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                The command I needed was



                javac -classpath .:/opt/ibm/ILOG/CPLEX_Studio_Community128/cplex/lib/cplex.jar *.java


                See the javac documentation for more info: http://www.cs.yorku.ca/tech/other/java/docs/tooldocs/solaris/javac.html (I should have checked this out earlier :O).



                The .: at the beginning of the path allows me to include my current directory as well.






                share|improve this answer












                The command I needed was



                javac -classpath .:/opt/ibm/ILOG/CPLEX_Studio_Community128/cplex/lib/cplex.jar *.java


                See the javac documentation for more info: http://www.cs.yorku.ca/tech/other/java/docs/tooldocs/solaris/javac.html (I should have checked this out earlier :O).



                The .: at the beginning of the path allows me to include my current directory as well.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 3 at 22:02









                ellen

                105




                105



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026493%2fcompiling-java-project-on-command-line-with-cplex%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491