#App not launching

52 messages ยท Page 1 of 1 (latest)

clever wasp
#
deps-jar:
Updating property file: C:\Users\Leon\Documents\Unit4Assignment2\Unit4Assignment\build\built-jar.properties
compile:
run:
BUILD STOPPED (total time: 5 seconds)``` I KEEP GETTING THIS SAME ERROR for 0 reason i havent messed with anything (as far as i know)  that would change this yet i keep getting this issue now any clue as to why?
upper magnetBOT
#

โŒ› This post has been reserved for your question.

Hey @clever wasp! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

clever wasp
#

Its like there is no file it Loads then it acts like its trunning yet nothing shows

#

For context i am running from a GUI so even if the other code is broke (its not) my code should still run this is the GUI code ``````

#

This is the Output ```ant -f C:\Users\Leon\Documents\Unit4Assignment2\Unit4Assignment -Dnb.internal.action.name=run run
init:
Deleting: C:\Users\Leon\Documents\Unit4Assignment2\Unit4Assignment\build\built-jar.properties
deps-jar:
Updating property file: C:\Users\Leon\Documents\Unit4Assignment2\Unit4Assignment\build\built-jar.properties
Compiling 1 source file to C:\Users\Leon\Documents\Unit4Assignment2\Unit4Assignment\build\classes
compile:
run:

upper magnetBOT
#

๐Ÿ’ค Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

upper magnetBOT
#
guardian180
Help Account

Here are some statistics about how @clever wasp has helped others here.

Experience

0 / 1000 XP (0.00%) until <@&964510886184226856>
0 Total XP
[โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘]

Total Times Thanked

0

Times Thanked This Week

0

upbeat lance
#

Hello Leon, you need to show the build.xml. Regards

upper magnetBOT
#

๐Ÿ’ค Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

clever wasp
#

this is all i have

upbeat lance
#

This is all you can see. There must be much more.

clever wasp
#

Nope

#

lmao

#

if i go into here

#
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="Programming" default="default" basedir=".">
    <description>Builds, tests, and runs the project Programming.</description>
    <import file="nbproject/build-impl.xml"/>
    <!--

    There exist several targets which are by default empty and which can be 
    used for execution of your tasks. These targets are usually executed 
    before and after some main targets. They are: 

      -pre-init:                 called before initialization of project properties
      -post-init:                called after initialization of project properties
      -pre-compile:              called before javac compilation
      -post-compile:             called after javac compilation
      -pre-compile-single:       called before javac compilation of single file
      -post-compile-single:      called after javac compilation of single file
      -pre-compile-test:         called before javac compilation of JUnit tests
      -post-compile-test:        called after javac compilation of JUnit tests
      -pre-compile-test-single:  called before javac compilation of single JUnit test
      -post-compile-test-single: called after javac compilation of single JUunit test
      -pre-jar:                  called before JAR building
      -post-jar:                 called after JAR building
      -post-clean:               called after cleaning build products

    (Targets beginning with '-' are not intended to be called on their own.)

    Example of inserting an obfuscator after compilation could look like this:

        <target name="-post-compile">
            <obfuscate>
                <fileset dir="${build.classes.dir}"/>
            </obfuscate>
        </target>

    For list of available properties check the imported 
    nbproject/build-impl.xml file. 


    Another way to customize the build is by overriding existing main targets.
    The targets of interest are: 

      -init-macrodef-javac:     defines macro for javac compilation
      -init-macrodef-junit:     defines macro for junit execution
      -init-macrodef-debug:     defines macro for class debugging
      -init-macrodef-java:      defines macro for class execution
      -do-jar:                  JAR building
      run:                      execution of project 
      -javadoc-build:           Javadoc generation
      test-report:              JUnit report generation

    An example of overriding the target for project execution could look like this:

        <target name="run" depends="Programming-impl.jar">
            <exec dir="bin" executable="launcher.exe">
                <arg file="${dist.jar}"/>
            </exec>
        </target>

    Notice that the overridden target depends on the jar target and not only on 
    the compile target as the regular run target does. Again, for a list of available 
    properties which you can use, check the target you are overriding in the
    nbproject/build-impl.xml file. 

    -->
</project>
#

This is the whole build file @upbeat lance

#

The issue is it doesnt load

#

like at all an application should launch on run

upbeat lance
#

Ah wunderful!

clever wasp
#

but nothing happens

upbeat lance
#

Ok, from what I can tell is that this build.xml is empty except for one import: "nbproject/build-impl.xml".

#

I am pretty sure nb means netbeans. Are you using netbeans mate?

clever wasp
#

yes!

clever wasp
#

and it was working

#

it stopped after making changes to the GUI

upbeat lance
clever wasp
#

see look the program is running

#

but there is no application

#
init:
Deleting: C:\Users\Leon\Documents\Unit4Assignment2\Unit4Assignment\build\built-jar.properties
deps-jar:
Updating property file: C:\Users\Leon\Documents\Unit4Assignment2\Unit4Assignment\build\built-jar.properties
Compiling 1 source file to C:\Users\Leon\Documents\Unit4Assignment2\Unit4Assignment\build\classes
compile:
run:
#

and this is all i get

upbeat lance
#

I think it is netbeans internal magic. I am not familiar with netbeans. Unfortunately netbeans have no discord-server afaik https://discord.com/servers?query=netbeans

Discord

0 search results found in Home for "netbeans". Discover Discord servers and communities. Join servers that share your interests - from gaming, to music, to learning, there's a place for you.

clever wasp
#

it could be something outside of the build folder though

#

something to do with the GUI

#

because if i launc

#

the GUILogin

#

then that launches correctly

#

@upbeat lance

#

but when details are added which should display the GUI the program crashes

#

which says to me its to do with the GUI

#

not netBeans

upbeat lance
#

I can not help ya, sorry

somber moon
#

Don't try to print out the textField values instead a Sout

clever wasp
#

My app is still not launching what does this mean ```java.lang.IndexOutOfBoundsException: end < start (4225 < 5203)
at org.netbeans.spi.editor.hints.ErrorDescriptionFactory.createErrorDescription(ErrorDescriptionFactory.java:243)
at org.netbeans.spi.java.hints.ErrorDescriptionFactory.forTree(ErrorDescriptionFactory.java:121)
at org.netbeans.modules.java.hints.jdk.ConvertToLambda.computeAnnonymousToLambda(ConvertToLambda.java:81)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[catch] at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:315)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:794)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.doComputeHints(HintsInvoker.java:562)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:282)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:227)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:192)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:165)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:127)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:113)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:63)
at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273)
at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1420)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2035)

#

@somber moon @upbeat lance