Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: The input line is too long

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Location
    Bangalore.India
    Posts
    9
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default The input line is too long

    Hi All,

    I am trying to execute a batch file to debug my java application with eclipse.I want to set collection of jar

    files in to the class path before that,so I am using a .bat file for that. While running the .bat file I am getting an error as

    "The input line is too long".What is the problem stoping me here?.It

    is exactly breaking after line 72.I am using windows 2000 server.Any help should be great.

    My Bat file contents are as follows



    @echo off
    set path=D:\workspace\tomcat\bin;C:\Program Files\Java\jre1.6.0_07\bin;C:\Program Files\Java\jdk1.6.0_12\bin;
    set classpath=C:\Program Files\Java\jdk1.6.0_12\lib\tools.jar;
    set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_12;
    set CATALINA_HOME=D:\workspace\tomcat\bin;
    set classpath=%classpath%;D:\workspace\tomcat\bin\bootstrap.jar;
     
    set classpath=%classpath%;D:\workspace\tomcat\common\lib\naming-factory-dbcp.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\activation-1.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\activeio-core-3.1.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\activemq-core-5.2.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\annogen-0.1.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\antlr-2.7.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\aopalliance-1.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\asm-1.5.3.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\asm-attrs-1.5.3.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\aspectjweaver-1.6.2.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\axiom-api-1.2.7.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\axiom-dom-1.2.7.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\axiom-impl-1.2.7.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\axis2-1.4.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\axis2-kernel-1.4.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\axis2-spring-1.4.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\backport-util-concurrent-2.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\bsh-2.0b4.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\camel-core-1.5.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\cglib-2.1_3.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-beanutils-1.7.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-codec-1.3.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-collections-3.2.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-dbcp-1.2.2.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-digester-1.8.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-discovery-0.4.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-email-1.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-fileupload-1.2.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-httpclient-3.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-io-1.4.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-lang-2.4.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-logging-1.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-logging-api-1.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\commons-pool-1.3.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\dom4j-1.6.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\ehcache-1.2.3.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\ejb3-persistence-1.0.1.GA.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\geronimo-j2ee-management_1.0_spec-1.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\geronimo-jms_1.1_spec-1.1.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\geronimo-stax-api_1.0_spec-1.0.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\gom-bp-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\gov-aa-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\gov-be-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\gov-bf-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\gov-fw-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\gov-hr-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\gov-mail-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\gov-pr-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\gov-ui-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\gov-web-zktheme.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\hibernate-3.2.5.ga.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\hibernate-annotations-3.3.1.GA.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\hibernate-commons-annotations-3.0.0.ga.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\httpcore-4.0-beta1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\httpcore-nio-4.0-beta1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\itext-2.1.4.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\jasperreports-3.1.2.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\jaxen-1.1.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\jcifs-1.2.19.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\jcommon-1.0.12.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\jfreechart-1.0.9.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\jibx-run-1.2.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\jsf-facelets-1.1.11.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\jstl-1.2.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\jta-1.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\jxl-2.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\license4j-1.4.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\log4j-1.2.14.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\mail-1.4.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\myfaces-api-1.2.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\myfaces-impl-1.2.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\mysql-connector-java-5.1.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\neethi-2.0.4.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\ojdbc-10.2.0.4.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\opencsv-1.8.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\persistence-api-1.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\poi-3.0.2-FINAL.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-aop-2.5.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-beans-2.5.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-context-2.5.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-context-support-2.5.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-core-2.5.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-jdbc-2.5.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-jms-2.5.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-orm-2.5.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-security-acl-2.0.4.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-security-core-2.0.4.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-security-core-tiger-2.0.4.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-security-ntlm-2.0.4.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-tx-2.5.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\spring-web-2.5.6.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\stax-api-1.0.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\trinidad-api-1.2.10.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\trinidad-impl-1.2.10.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\woden-api-1.0M8.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\woden-impl-dom-1.0M8.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\wsdl4j-1.6.2.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\wstx-asl-3.2.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\xalan-2.7.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\xbean-spring-3.5.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\xercesImpl-2.8.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\xml-apis-1.3.04.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\xmlParserAPIs-2.6.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\XmlSchema-1.4.2.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\zcommon-3.6.0.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\zcommons-el-1.0.2.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\zhtml-3.6.0.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\zk-3.6.0.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\zkex-3.6.0.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\zkmax-3.6.0.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\zkplus-3.6.0.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\zml-3.6.0.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\zul-3.6.0.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\zuljsf-0.8.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\zweb-3.6.0.1.jar;
     
    java -Xrunjdwp:transport=dt_socket,server=y,address=8989  -Dcatalina.base="D:\workspace\tomcat" -Djava.io.tmpdir="D:\workspace\tomcat\temp" org.apache.catalina.startup.Bootstrap start

    Thanks in advance
    Vivek.
    Last edited by Freaky Chris; September 5th, 2009 at 04:03 PM.


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: The input line is too long

    Why dont you just run your program from within eclipse and debug it that way?

    // Json

  3. #3
    Junior Member
    Join Date
    Sep 2009
    Location
    Bangalore.India
    Posts
    9
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default Re: The input line is too long

    The problem for that approach is, If project is a big one then the eclipse get slow down.

  4. #4
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: The input line is too long

    It does?

    How big a project are we talking about? I have projects with 2000+ classes which I debug just fine.

    // Json

  5. #5
    Member Truffy's Avatar
    Join Date
    May 2009
    Location
    Philippines
    Posts
    93
    Thanks
    2
    Thanked 9 Times in 7 Posts

    Default Re: The input line is too long

    Quote Originally Posted by Json View Post
    Why dont you just run your program from within eclipse and debug it that way?

    // Json
    Yup, i agree with Json. Its kinda hard to debug it over the script file. Hm, try first it on eclise.

    Cheers,
    Truffy

  6. #6
    Junior Member
    Join Date
    Oct 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: The input line is too long

    set classpath=%classpath%;D:\Application\ProjectJars\c ommons-logging-1.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\c ommons-logging-api-1.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\c ommons-pool-1.3.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\d om4j-1.6.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\e hcache-1.2.3.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\e jb3-persistence-1.0.1.GA.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\g eronimo-j2ee-management_1.0_spec-1.0.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\g eronimo-jms_1.1_spec-1.1.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\g eronimo-stax-api_1.0_spec-1.0.1.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\g om-bp-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\g ov-aa-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\g ov-be-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\g ov-bf-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\g ov-fw-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\g ov-hr-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\g ov-mail-0.0.1-SNAPSHOT.jar;
    set classpath=%classpath%;D:\Application\ProjectJars\g ov-pr-0.0.1-SNAPSHOT.jar;
    Last edited by Json; October 17th, 2009 at 04:01 AM.

Similar Threads

  1. Long term project work from home developer
    By internext in forum Paid Java Projects
    Replies: 17
    Last Post: May 2nd, 2012, 07:51 PM
  2. on-line shopping
    By sriraj.kundan in forum Web Frameworks
    Replies: 13
    Last Post: August 1st, 2009, 02:03 PM
  3. [SOLVED] Please Review My Code (Long Integer Addition)
    By Saradus in forum Java Theory & Questions
    Replies: 10
    Last Post: July 4th, 2009, 12:55 PM
  4. Reading a file line by line using the Scanner class
    By JavaPF in forum File Input/Output Tutorials
    Replies: 0
    Last Post: April 17th, 2009, 07:34 AM
  5. How to Read a file line by line using BufferedReader?
    By JavaPF in forum File Input/Output Tutorials
    Replies: 0
    Last Post: May 19th, 2008, 06:32 AM

Tags for this Thread