Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-30-2007, 02:48 PM
Member
 
Join Date: Jul 2007
Posts: 43
leonard is on a distinguished road
Compile failed, messages should have been provided
I have this problem
Code:
[javac] Compiling 1178 source files to C:\exj\classes [javac] java.lang.NoClassDefFoundError: com/sun/tools/javac/Main [javac] Exception in thread "main" BUILD FAILED C:\dbC\build.xml:75: Compile failed, messages should have been provided. Total time: 1 second
what's the problem?
do you have any ideas?
thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-30-2007, 06:16 PM
Senior Member
 
Join Date: Jul 2007
Posts: 134
brianhks will become famous soon enough
The tools.jar file is not in your class path. This jar is typically part of the jdk. I think ant is trying to invoke this class without using the javac.exe but it cannot find it in the class path.

My guess is that you only have the JRE installed and not the JDK or if you do you are running java.exe from the JRE and not the JDK directory.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-30-2007, 06:36 PM
Member
 
Join Date: Jul 2007
Posts: 72
Swamipsn is on a distinguished road
Pls check all jar files are presented in lib directory or not? Pls let us to know about the JDK version
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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

vB 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
Error Messages Not Showing Up nvidia Web Frameworks 0 04-07-2008 11:41 PM
How JDBC support is provided by Spring applications Java Tip Java Tips 0 03-31-2008 11:21 AM
how can server send messages every 5 min? dim_ath Networking 7 01-10-2008 04:59 PM
How JDBC support is provided by spring applications JavaBean Java Tips 0 09-28-2007 01:53 PM
Jsf Error Messages - Retain vaswin JavaServer Faces 0 08-05-2007 09:22 PM


All times are GMT +3. The time now is 10:57 AM.


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