Results 1 to 3 of 3
  1. #1
    Anandt88 is offline Member
    Join Date
    Jun 2010
    Rep Power

    Default Problem with importing IO from java

    Hello Everyone,
    Tomcat is running but it shows the below details marked as Bold.

    INFO: The Apache Tomcat Native library which allows optimal performance in produ
    ction environments was not found on the java.library.path:
    C:\Program Files\Java\jdk1.5.0_03\bin;.;C:\WINDOWS\system32;C :\WINDOWS;C:\Program Files\PCConnectivitySolution\;C:\WINDOWS\system32; C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ProgramFile s\Java\jdk1.5.0_03\bin\

    And when i compile my java file i get the following error:

    javac: invalid flag: Files\apache-tomcat-5.5.17\common\lib\servlet-api.jar
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are u
    -classpath <path> Specify where to find user class files
    -cp <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -endorseddirs <dirs> Override location of endorsed standards path
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release

    -target <release> Generate class files for specific VM version
    -version Version information
    -help Print a synopsis of standard options
    -X Print a synopsis of nonstandard options
    -J<flag> Pass <flag> directly to the runtime system

    Pls let me know wats the problem...

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Rep Power


    the bold message is only a warning it's not an error. modern apache portable runtime native libraries can optionally be present in the java native library path, if they are found, tomcat will attempt to use this APR based HTTP connector instead of the coyote java based HTTP connector. I guess this could somehow be set up to have the APR HTTP connector handle SSL. This is of course assuming you are not having tomcat connected to an external apache service such as with mod_jk. So generally, it is safe in practical use cases to ignore this warning.

    The second error is likely because you are attempting to include the servlet-api.jar file in your classpath for javac, but the path contains spaces, which on the command line, unless you enclose the path with quotations, it is interpreted as an additional command line argument, so, try to do something like

    Java Code:
    javac -classpath [B]"[/B]c:\Program Files\apache-tomcat-5.5.17\common\lib\servlet-api.jar[B]"[/B] ...
    Note this kind of thing is not windows specific, spaces in unix paths can cause problems too.

    If you haven't already found ant, i recommend getting into using Ant to compile your java classes, its good to help automate the compiler options and classpath settings.

  3. #3
    Anandt88 is offline Member
    Join Date
    Jun 2010
    Rep Power



    Thank You, I tried installin Tomcat in some other directory n it worked...

Similar Threads

  1. Problem in importing org.apache
    By novice in forum New To Java
    Replies: 6
    Last Post: 05-10-2010, 07:40 PM
  2. Problem in importing jar file in libraries of netbeans
    By dataprofiling in forum AWT / Swing
    Replies: 1
    Last Post: 03-30-2010, 12:30 PM
  3. Importing a .java
    By Kaito in forum New To Java
    Replies: 5
    Last Post: 09-24-2009, 02:33 AM
  4. Importing Picture into Java Code
    By swimmy101 in forum New To Java
    Replies: 1
    Last Post: 02-12-2009, 09:48 AM
  5. importing .java files into eclipse
    By nickl2002 in forum Eclipse
    Replies: 1
    Last Post: 01-19-2009, 12:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts