[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/05/2006 at 05:16AM PDT, ID: 21978197
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

doesnt run from command line but runs from eclipse

Asked by mrnmrn in Miscellaneous Programming

Tags: command, doesnt, line, run

My dear friends ,
I have a few issues that I hope all of you can throw some light on.
Basically I have an application that runs fine when I execute it though eclipse. However when I run it through command line it does not run. I was wondering if you guys can throw some light on what may be going wrong and what I can do to correct the issue.
I think I know what the problem is but dont know how to find a solution. There is still too much of a black box.


On eclipse the command line arguments are as follows: 1  1 ds 6000 5 true all 5000 person
 I pass all these variables through the command line options in the Run->launch configuration.

When I run from the command line using the following command I get the following output.
java -cp ./test/build/test.jar scache.test.client.StartSCacheTestClient  1  1 ds 6000 5 true all 5000 person
I just get a couple of lines from the main method and as soon as some method in a class in a jar file is called the application does not give any output. I dont see any ecception thrown but the program stops executiing,




When I run it using the following command from the command line.


java -cp ./jars/ifcs.jar:./jars/impl.jar:./test/build/BC.jar:./test/build/DSClient.jar:./test/build/DSPubInterfaces.jar:./test/build/DSRPC.jar:./test/build/application.jars:./test/build/audit.jar:./test/build/b2b.jar:./test/build/building.jar:./test/build/codegen.jar:./test/build/common.jar:./test/build/company.jar:./test/build/contact.jar:./test/build/dsDev2.jar:./test/build/excep.jar:./test/build/group.jar:./test/build/jbossall-client.jar:./test/build/jnp-client.jar:./test/build/monitor.jar:./test/build/netinfo.jar:./test/build/network.jar:./test/build/operator.jar:./test/build/person.jar:./test/build/refdata.jar:./test/build/rpctest.jar:./test/build/services.jar:./test/build/sso.jar:./test/build/transport.jar:./test/build/company.jar:./test/build/test.jar scache.test.client.StartSCacheTestClient  1  1 ds 6000 5 true all 5000 person


It runs a lot further i.e. I see at least a few more lines of output from methods in classes that are in the included jars to run.

So my conclusion is that my problem is that all the jar files are not being found. I don't get any more specific output from the command line. How do I produce more output to help me to debug ?


The output that I have is as follows
=====================
Error Stream has encoding: MacRoman
Hello World
Output Stream has encoding: MacRoman
before setup debug level
In InitFactory before UniversalFactoryImpl.getElementFactory()   (<----------this is in the main befor going into the jar files )
IN getElementFactory   (<------------------this is inside the jar files )
In InitFactory after UniversalFactoryImpl.getElementFactory()    ( this is after returning from the jar files )

=====================

How do  I proceed with this ? I dont have the source to all the jars. I could put some more printf's in some of the jars whose source I have. But what about the jars that I dont have the source for . Is there any other way for me to extract more insightful information.

It could also be an issue on specifying the jars in the right order. Is there a way for me to figure out the right order of the jars ?

I could go to eclipse and look under the Project Build Properties and figure out the order in which eclipse calls the jars during the build process. Could I specify the same order for the jars during the runtime. Would this help ?

Any other ideas ?
Could I get some verbose output  from teh compiler  at build time. Perhaps it reporting some warnings about some issues that can only be resolved at run time.  How can I get infomation on these warnings ?

I also created a build.xml to execute the code. The build.xml method does not seem to work for running the code. I am not too sure how to pass command line arguments to a program. Can anyone enlighten me on how to modify to accept command line arguments ?
I know basedir is defined correctly because several other parts of my build.xml file use it and it works correctly. How do I specify all my jars correctly for the runtime. My build works fine with a simlar syntax but my execute doesnt. Can anyone suggest better of alternative syntax for telling my executable where to find the jars ?



<target name="run_test" depends="compile_test" >
              <java jar="${basedir}/test/build/test.jar" fork="true"/>
         <classpath>
            <pathelement path="S{basedir}/jars">
                    <fileset dir="S{basedir}/jars">
                      <include name="**/*.jar"/>
                </fileset>
                </pathelement>
          </classpath>
      </target>
































[+][-]09/05/06 12:03 PM, ID: 17458114

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/05/06 03:15 PM, ID: 17459483

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/05/06 03:24 PM, ID: 17459518

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/05/06 06:46 PM, ID: 17460199

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/06/06 10:28 AM, ID: 17464799

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/06/06 11:38 AM, ID: 17465266

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Miscellaneous Programming
Tags: command, doesnt, line, run
Sign Up Now!
Solution Provided By: shinobun
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09/27/06 02:10 PM, ID: 17614200

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10/02/06 03:03 AM, ID: 17641911

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91