#Java MTX Library
49 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @candid holly! Please use
/closeor theClose Postbutton above when you're finished. 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.
What's the problem that you're facing?
Do you get any errors?
Can you share both the relevant code, the expected result and the actual results?
Do you know how debugging works?
debugging is a powerful tool that helps you diagnose all sorts of problems
It allows you to step through your program and see what it does and check the values of local variables
What IDE do you use?
Do you not have a computer?
ah ok
I don't think debugging works on mobile phones
At first, you should understand how debugging works in general
You can create "break points" whereever you want
And if you run your program in debug mode (which NetBeans is capable of), it will stop as soon as it reaches a breakpoint
and if it does, it shows you the state of your variables
and you can move to the next line
where you can inspect the variables again
so you can check what exactly your program is doing
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
this link has a few explainations for debugging in NetBeans
maybe https://medium.com/@teguhteja/how-to-debugging-in-netbeans-java-c3087d9e2f6c (a blog post on debugging in NetBeans) is better
Using the debugger, you can see what your program does which helps you diagnose where exactly the problem is
i.e. you can check whether what the program does matches your expectations
not sure if debugging works in JvDroid
writing code on mobile phones is pretty painful
I tried to improve it a little bit by making looking up docs easier but that doesn't fix the problems
What do you typically use your computer for?
it ust seems like a program
libraries are reusable program parts
so that others can call it from their programs
libraries normally also don't need a main class
you just write the classes that should be used by others
then you create a JAR out of it
and then you could also publish it to a Maven repository but that's a a bit complicated
a JAR file is basically a ZIP file containing all your compiled class files and a bit of metadata
normally, you would use an IDE (not JvDroid)
or a build tool
or the jar command
no, that's for running JAR files
you want to create one
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.