Use this tag for questions about entry points to executables (programs); e.g., the "main()" function in most programming languages. If your question is programming language specific, tag that: language as well e.g. C, C++, Java etc.
Questions tagged [program-entry-point]
2997 questions
0
votes
2 answers
Can't run .jar file created with IntelliJ / Gradle. "no main manifest attribute, in app.jar"
I've followed the advice of other solutions. Like this one.
And this one.
I've also tried the solution belonging to this
$ java -cp app.jar main.Main
I get an error that would not normally occur when running the project inside of IntelliJ.
Here is…

Sage Belknap
- 1
- 1
0
votes
1 answer
How do I convert this into Win Forms with a button click?
namespace iText.Samples.Sandbox.Tables
{
public class SimpleTable
{
public static readonly string DEST = "results/sandbox/tables/simple_table.pdf";
public static void Main(String[] args)
{
FileInfo file…

Garym
- 1
0
votes
0 answers
How can I create FAT JAR using maven without main class?
I try to create a library by creating a fat jar with maven in IntelliJ.
However, in that library I don't need main class because all methods and classes were tested with unit tests.
So, the main class is simply there because all java programs need…

JPA
- 11
- 2
0
votes
1 answer
Is there a reason for giving the class holding Main() a namespace in C#?
After attempting to research C# namespaces further (coming from a c++ background) I think I understand the purpose of namespaces in general - to organise classes for the user, and to avoid conflicts. This practise, I imagine, still holds just as…

Doggo
- 11
- 3
0
votes
0 answers
I have a problem deploying the Django project
When deploying the Django project, I am facing this problem: There is no module with this name (main project folder).
I tried another project with a different name, but still no response.
The command prompt gives me this message:…
0
votes
0 answers
Golang package pkg/st is not in GOROOT
Lan: Golang
OS: Win11
go version go1.19.4 windows/amd64
go env:
set GO111MODULE=on
GOPATH=e:\Develop\Go\
GOROOT=E:\Develop\Go
I am trying to understand how to add my own package into main entry go file.
the structure of my files are the…

Eugene Shlyapkin
- 1
- 1
0
votes
1 answer
Is there a portable way to tell if main() has started yet?
In C++ it's possible to call arbitrary functions at init time before main() has been entered, including calls to libraries that are not fully initialized yet, which can cause confusing errors. If I'm writing a library, is it possible in standard…

quietfanatic
- 81
- 4
0
votes
0 answers
need help after laying out monthly budget design
I have this program that I am having trouble writing the correct code for the functions in it. It uses functions to create a monthly budget analyzation. As you can see, some of the coding is empty. I do not know where to go from here.
def…
user20391565
0
votes
1 answer
A .c file collection with their main() in NetBeans
I'm using NetBeans 7.0.1 to learn C.
I have done all the pre-requisites to start compiling in NetBeans so I'm ok with that.
I have done a "HelloWorld.c" with a main() in it and it runs fine. But then I made "Another.c" with its respective main(). I…

chntgomez
- 2,058
- 3
- 19
- 31
0
votes
1 answer
Main() not getting called in C# ( A combined WinForms + WCF Service application)
I started a C# project as type "WCF Service Library".
In order to include the WCF service within a GUI application, I added windows Forms within this project (not solution) using the Add button on the project. I then changed the project output type…

kpmd
- 11
- 3
0
votes
0 answers
Having errors on C project
can any one help me with this error
I tried but still can't debug it
I want to solve the error
0
votes
0 answers
Write a proper code calling things in main()
def main():
personne.se_presenter()
if __name__ == "__main__":
main()
class personne:
def __init__(self, nom, age, taille, passion):
self.nom = 'Moi'
self.age = 18
self.taille = 1,83
self.passion =…

Thomas
- 1
0
votes
1 answer
Python Program Doesn't Show Any Output/Result in Visual Studio Code (No Errors)
I have a python program that displays no errors when I run it but doesn't give any kind of output. It only displays:
"Dash is running on http://127.0.0.1:8050/
Serving Flask app 'Editable_Table'
Debug mode: on"
No other output is given. It gives…
0
votes
0 answers
Getting the error "program does not contain a static 'main' method suitable for an entry point" while trying to create docker on my ASP API
Im trying to create a docker image of my ASP.net web application, but i get the error "program does not contain a static 'main' method suitable for an entry point" im on .net 6.0 so there is no startup.cs anymore with a main, is there a way i can…

Bart
- 31
- 3
0
votes
1 answer
How do I access an inputed file?
So I have this code:
#include
int main(int argc, char **argv) {
//Reassign input arguments into local values
// Check if inputs are valid
// translate the input string
//assign the list into a nested string
//search…

Dark
- 3
- 1