Results 1 to 5 of 5

Thread: Classpath

  1. #1
    Parneel is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default Classpath

    I wnt 2 know hw 2 set a classpath......
    For running a text 2 speech convertor program, i followed d foll steps:
    1)i ws needed 2 include freetts.jar & jsapi.jar in classpath, so i executd foll instruction on command prompt
    c:>set classpath=c:\pathwhere2filesarestored
    2)next i executd d program
    c:>javac program.java

    nw it is compiling
    but while running d code it shows exception of missing main function(though i hv one)

    pls help

    :mad:

  2. #2
    sarath is offline Member
    Join Date
    Apr 2009
    Posts
    3
    Rep Power
    0

    Default

    First set the classpath

  3. #3
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

  4. #4
    Join Date
    Apr 2009
    Posts
    5
    Rep Power
    0

    Default

    thanks for that information .i am a new member to this site. i registered to this site just few miniuts back. anything there should i know about this site.

  5. #5
    faisalcmpm is offline Member
    Join Date
    Feb 2009
    Posts
    22
    Rep Power
    0

    Default

    why u are reseting system variable classpath?
    Why cant you use a local class path just for running your program

    E.g.
    set class_path=D:\ServerExceptionTracker
    D:\Applns\jdk1.5.0_11\bin\java -classpath %class_path% file.ServerExceptionTracker

Similar Threads

  1. help me to set classpath
    By srinivaspuvvala in forum Java Servlet
    Replies: 3
    Last Post: 01-18-2009, 07:13 PM
  2. Classpath
    By Preethi in forum New To Java
    Replies: 5
    Last Post: 06-20-2008, 09:00 AM
  3. Set classPath?
    By rgbosque in forum New To Java
    Replies: 3
    Last Post: 02-07-2008, 02:14 PM
  4. GNU Classpath 0.96.1
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-01-2007, 04:14 PM
  5. GNU Classpath 0.96
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-16-2007, 06:35 PM

Posting Permissions

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