Results 1 to 9 of 9
Thread: my program cannot be compile
- 08-17-2010, 07:50 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 18
- Rep Power
- 0
my program cannot be compile
Hi all~
my program has been done before im using netbeans 6.9,
before that im using netbeans 6.8.
after i format my computer and install netbeans 6.9 my program cannot be compile already, even i try to install back netbeans 6.8.
error when im compile the project :
..\nbproject\build-impl.xml:184: Must set build.dir
error whrn im run the project :
does not have a main class set.:confused:
who can help me ?? thank you
- 08-17-2010, 07:55 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Can you post the complete error message you comes with?
And the code you've try to compile.
- 08-17-2010, 08:03 AM #3
Member
- Join Date
- Jun 2010
- Posts
- 18
- Rep Power
- 0
D:\CSTay-Data\TMM - Java Program\09-08-10\new\Computer\nbproject\build-impl.xml:184: Must set build.dir
BUILD FAILED (total time: 0 seconds)
this is my compile error.
I cannot make it my code here because that the code is very big and long~
before that still can work well.
- 08-17-2010, 08:07 AM #4
Member
- Join Date
- Jun 2010
- Posts
- 18
- Rep Power
- 0
the error point me as below
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
<fail unless="src.build.dir">Must set src.build.dir</fail>
<fail unless="build.dir">Must set build.dir</fail>
<fail unless="dist.dir">Must set dist.dir</fail>
<fail unless="build.classes.dir">Must set build.classes.dir</fail> <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
<fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
<fail unless="dist.jar">Must set dist.jar</fail>
</target>
- 08-17-2010, 08:13 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Did you set the main class in your project?
- 08-17-2010, 08:16 AM #6
Member
- Join Date
- Jun 2010
- Posts
- 18
- Rep Power
- 0
sorry can teach me how to do it? because before that i just type out the code and run~
never do other setting before
- 08-17-2010, 09:13 AM #7
Member
- Join Date
- Jun 2010
- Posts
- 18
- Rep Power
- 0
hi~ i try to set main class le ~ but it was no any class in the drop down list~
how i going to choose?
>.<
Image Upload with resize
- 08-17-2010, 09:32 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Right click on the project, and click on properties. You can find an option to define the main class there.
- 08-17-2010, 10:11 AM #9
Member
- Join Date
- Jun 2010
- Posts
- 18
- Rep Power
- 0
Similar Threads
-
Compile and run a java program through another one
By z.zojaji in forum Advanced JavaReplies: 9Last Post: 07-15-2010, 07:06 AM -
Teach Me Pls How To Compile Java Program Using CMD
By Lilsimple in forum Java AppletsReplies: 1Last Post: 03-11-2010, 04:26 PM -
My Java program will not compile and run?
By sabrown311313 in forum Java AppletsReplies: 1Last Post: 09-23-2008, 09:38 AM -
Program Won't Compile
By JavaLovenJoe in forum New To JavaReplies: 2Last Post: 04-22-2008, 01:31 PM -
Compile a program
By toby in forum New To JavaReplies: 2Last Post: 07-30-2007, 09:09 AM


LinkBack URL
About LinkBacks

Bookmarks