Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-30-2009, 09:44 PM
Member
 
Join Date: Mar 2009
Posts: 3
Rep Power: 0
Parneel is on a distinguished road
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

Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 04-01-2009, 11:47 AM
Member
 
Join Date: Apr 2009
Posts: 3
Rep Power: 0
sarath is on a distinguished road
Default
First set the classpath
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-01-2009, 12:25 PM
Senior Member
 
Join Date: Dec 2008
Location: Hong Kong
Posts: 473
Rep Power: 2
mtyoung is on a distinguished road
Default
why no one use -cp
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-01-2009, 12:55 PM
Member
 
Join Date: Apr 2009
Posts: 5
Rep Power: 0
BISWAJIT KUMAR BABU is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 04-01-2009, 01:22 PM
Member
 
Join Date: Feb 2009
Posts: 22
Rep Power: 0
faisalcmpm is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help me to set classpath srinivaspuvvala Java Servlet 3 01-18-2009 08:13 PM
Classpath Preethi New To Java 5 06-20-2008 10:00 AM
Set classPath? rgbosque New To Java 3 02-07-2008 03:14 PM
GNU Classpath 0.96.1 JavaBean Java Announcements 0 11-01-2007 05:14 PM
GNU Classpath 0.96 JavaBean Java Announcements 0 10-16-2007 07:35 PM


All times are GMT +2. The time now is 05:52 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org