1 Replies - 702 Views - Last Post: 29 December 2012 - 04:48 AM Rate Topic: -----

#1 stevejohn78636  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 27-December 12

unable to compile my java program in netbeans

Posted 29 December 2012 - 01:54 AM

run:
C:\Users\PEARL\AppData\Local\NetBeans\Cache\7.2.1\executor-snippets\run.xml:48: 
Cancelled by user.
BUILD FAILED (total time: 1 second)

<project name="{0} (run)" default="run" basedir=".">
    <target name="run">        
        <translate-classpath classpath="${classpath}" targetProperty="classpath-translated" />
        <property name="run.jvmargs" value="" />
        <property name="work.dir" value="${basedir}"/>
        <property name="application.args" value="" />
        <java classpath="${classpath-translated}" classname="${classname}" dir="${work.dir}" jvm="${platform.java}" fork="true">
            <jvmarg value="-Dfile.encoding=${encoding}"/>
            <redirector inputencoding="${encoding}" outputencoding="${encoding}" errorencoding="${encoding}"/>
            <jvmarg line="${run.jvmargs}" />
            <arg line="${application.args}" />
            <syspropertyset>
                <propertyref prefix="run-sys-prop."/>
                <mapper from="run-sys-prop.*" to="*" type="glob"/>
            </syspropertyset>
        </java>
    </target>
</project>



i am not able to compile my code the error what i am getting is in my xml file: run.Xml and error what i am getting is:
run:
C:\Users\PEARL\AppData\Local\NetBeans\Cache\7.2.1\executor-snippets\run.xml:48:
Cancelled by user.
BUILD FAILED (total time: 1 second)

actually i am running the code in netbeans. and i have run my Entry.java file from net beans and due to which i am getting above error i think the system automatically cancells the build. i have made an gui from netbeans but due to some problem i copy and pasted the gui components in another windows form; before that it was running no problem but after pasting it started to show the above error. please help..! :-(

Is This A Good Question/Topic? 0
  • +

Replies To: unable to compile my java program in netbeans

#2 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2735
  • View blog
  • Posts: 11,525
  • Joined: 20-September 08

Re: unable to compile my java program in netbeans

Posted 29 December 2012 - 04:48 AM

Quote

C:\Users\PEARL\AppData\Local\NetBeans\Cache\7.2.1\executor-snippets\run.xml

What is that file and what are you trying to do with it? If you want to run/build the project at the command line, you should use the Ant build files normally
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1