Questions tagged [program-entry-point]

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.

Filter by
Sorted by
Tagged with
-10 votes
0 answers
66 views

ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] [duplicate]

I'm running Ubuntu on a virtualbox, I installed all the necessary compilers, but it gives me an error that says "ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]". #include ...
Mekkai's user avatar
  • 1
-1 votes
0 answers
24 views

I faced this problem while running the spring boot project on eclipse

Exception in thread "main" java.lang.NoSuchMethodError: 'org.springframework.core.io.support.SpringFactoriesLoader org.springframework.core.io.support.SpringFactoriesLoader....
Pawan Bhattarai's user avatar
0 votes
0 answers
27 views

Render multiple columns in subreport Telerik

I am creating a Telerik report and in this report I am using few sub reports for some parts of this report. In one portion of the reports I need to display multiple items (detail with description) and ...
Nikhil Kumar's user avatar
0 votes
1 answer
91 views

Problem with "java.lang.reflect.InvocationTargetException"

I am very new to this and I have a problem with this message that I get every time I try to run a program. I've tried a thousand things and I don't know what else to do. If anyone could help me I ...
Alejandro Ardila's user avatar
0 votes
0 answers
37 views

Main.ts for Angular

For Google's Tour of Heroes, I realised that for chapter 3, "Create a feature component", file main.ts has to be modified, for the application to be able to start. Anyway, the contents of ...
user3500176's user avatar
0 votes
0 answers
78 views

VB.net BC30738 'Sub Main' is declared more than once in <application> My.MyApplication.Main(args As String())

Solved this issue and posting to help future readers. This happened when switching a Windows Forms App to start with my own Main() instead of a form. After experimenting with many different ways of ...
Mike D's user avatar
  • 1
1 vote
3 answers
110 views

If name main check in Nim

So, If you know Python, you should be familiar with this: def main(): <your code> if __name__ == '__main__': main() That creates a main function and checks if current files is being ...
Orlando Huang's user avatar
0 votes
0 answers
10 views

Sub from submodule namespace does not execute from MAIN sub

look at this example: unit module Mod; module Mod::TestModule { our sub testSub { say "ok" } } sub MAIN { Mod::TestModule::testSub } This does not print "ok", but it will ...
fingolfin's user avatar
  • 591
0 votes
0 answers
54 views

Program ignores condition and enters it the function

/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************...
The Blitz's user avatar
2 votes
1 answer
88 views

Is it true that on a Linux Ubuntu system the main function is called by the _libc_start_main function?

My system : Ubuntu 22.04.3 running on x86_64 CPU. I have this C program in a file named test.c : int main(){ long int a = 10; long int b = 20; } I've compiled the file with "gcc test.c -...
alessio solari's user avatar
0 votes
0 answers
68 views

Get MainWindow Instance WPF

I have some custom extensions, which when i double-click on it, it launch program and every time as i do it, it creates new mainwindow. So i want not create, but update the first mainwindow. I searced ...
Bird's user avatar
  • 1
0 votes
0 answers
25 views

Below is a screenshot of the Entry Point error I get when I try to load an mp3 file into my script

def load_mp3_16k_mono(filename): """ Load a WAV file, convert it to a float tensor, resample to 16 kHz single-channel audio. """ res = tfio.audio.AudioIOTensor(...
Sifat-E-Jahan's user avatar
3 votes
1 answer
66 views

What kind of entity does the Main Class in Java represent? [duplicate]

Whenever we see an introduction to Object Oriented Programming, we commonly come across this explanation, A class is a blueprint of an object, it can be used to represent a real world entity virtually,...
nick's user avatar
  • 31
0 votes
1 answer
48 views

What does "args" equal or return in "main" if it has no value, I.E. no args (arguments) were passed when the program was executed

I have this code here: try { System.out.print("There are args!: " + args[0]); } catch (Exception e) { System.out.print("No args"); } I am checking if arguments were passed ...
STC2's user avatar
  • 33
0 votes
1 answer
19 views

CPLEX inserting results to Excel Sheet in main method

I am creating a project where I have one model where one variable is always changing, namely ForecastMultiplier. I need to put the results of each iteration into an excel spreadsheet. You can find ...
Anduliska's user avatar
0 votes
0 answers
27 views

How to change my entry point of my angular app to a service?

My current main.ts is bootstrapping the output-dialog.module, which makes the entry point for the output-dialog.component.ts ... When I build my app, deploy it on Nexus, and I want other apps to use ...
der papa's user avatar
1 vote
2 answers
35 views

CPLEX: Generating production planning for two factories delivering to n places with m scenarios

I am trying to create a model for production planning in two factories that deliver goods to five different locations. Each factory has a maximum capacity and a production cost rate. Additionally, the ...
Anduliska's user avatar
-1 votes
2 answers
72 views

Unable to access global variable in main function | python

I wanted to understand, how global scope works in if __name__ == '__main__': Block E.g: x = 2 if __name__ == '__main__': global x x = 10 print(x) The above will throw an exception: ...
Tushar's user avatar
  • 954
-1 votes
1 answer
41 views

Debugging issue in Sprinboot Application

I am trying to debug my spring boot application but debugger is getting suspended at run method but my application is working. @SpringBootApplication public class Application { public static ...
Prajwal Jathar's user avatar
0 votes
1 answer
107 views

How do I specify the entry point location in a Manifest-file to run a jar-file?

I am trying to run a program I've downloaded ( https://github.com/ottiram/MMAX2 ) which comes as a jar-file on Ubuntu 22.04. When I do, it returns: "no main manifest attribute, in MMAX2.jar"....
jak326i205's user avatar
1 vote
1 answer
19 views

main tab should be closed as the focus should be on that tab without explicitly shifting to that tab in selenium python [duplicate]

My question is that I excepted main tab to be closed after the execution of last of code as the focus should be on that tab after i closed the second tab. But instead I got this error, selenium.common....
Ali Haider's user avatar
0 votes
0 answers
22 views

Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE selenium java

Na hora de executar o programa feito a selenium ele aparace a excessão Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE Exception in thread "main" java.lang....
Lucas Silva's user avatar
1 vote
2 answers
233 views

Why am I getting the error 'Main method not found in class' even though I defined the main method in my Java program with inheritance? [duplicate]

package code.now; class Test { public void fun() { System.out.println("Coding Ninjas"); } } class Derived extends Test { public void fun() { System.out....
Goutham's user avatar
  • 39
0 votes
0 answers
50 views

main method not found in class Main

I am trying to run this class but I am getting an error that main method is not found although I have defined the public static void main (String [] args){} This is my class file : package jDBCLearn; ...
Ronit Pandey's user avatar
0 votes
1 answer
35 views

Unable to execute simple java file from windows command line [duplicate]

Unable to execute this code from windows command line I wrote the code as : package sample; public class PrivateMain{ public static void main(String[] args){ System.out.println("...
sampath's user avatar
  • 33
0 votes
1 answer
52 views

Getting ClassNotFoundException from the same folder where class file is present

I have written a very simple java program and compiled using java 11. Here is the code : public class Simple { public static void main(String[] args) { System.out.println(" here &...
Jitesh's user avatar
  • 234
-2 votes
1 answer
94 views

Why do we write "string [] args" in java? [closed]

I just want to know in Java programming why do we write String args[] in public static void main(String [] args). We have other datatypes also but why String?
GURMEET SINGH's user avatar
0 votes
1 answer
287 views

entrypoint in game engine

I am asking myself, how you would achieve something in a game engine, where a user just defines one class and can compile. Maybe let me elaborate with some code, this would just be what the user of ...
ignatz's user avatar
  • 13
1 vote
0 answers
35 views

There isn't compile error, error "Thread 1: signal SIGABRT" occur in the main function's return 0

Recently, I started learning C language because I was interested in it. I was solving the problem in the textbook I was learning. I was working on a project to create a program that stores book ...
23 3's user avatar
  • 23
0 votes
1 answer
1k views

podman ENTRYPOINT with multiple arguments

I have a model which takes 3 arguments, (two files and a random number). The form of the call is: modelExec -ind file1 -ainp file2 -sim x where x is a random number. I am trying to get this to run ...
andy's user avatar
  • 185
-1 votes
1 answer
99 views

Float division by zero in clip duration

When using the main function for all the videos in a directory, this error 'division by zero' happens, but for just for a video file it doesn't happen, I used fmod function instead of /, but it has ...
fatemeh khoshhal's user avatar
0 votes
0 answers
10 views

I want my visitors to go in my root directory file.php

I have in a subfolder a wordpress site. There is a index.php file there too. I copied the content of subfolder to httpdocs main (root) directory. In this root directory there is a htaccess file and ...
Skopelos Kostas's user avatar
0 votes
0 answers
7 views

I wanted fill() method to run again when the button "Retry" is pressed. But when i press button nothing happens? What I can do?

this part is mostly where i declared panels, labels, and other things like progressbar, slider import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; ...
Mariyam Kemelbay's user avatar
0 votes
0 answers
22 views

Procedure entry point not found when using SDL2 and SDL2_image [duplicate]

I get an entry point not found error when trying to use SDL2 2.26.5 x64 in conjuction with SDL2_image 2.6.3 x64, and calling IMG_Init(). include paths, linker stuff all set up like so: so everything ...
Ramster445's user avatar
0 votes
1 answer
42 views

I have a Static Void Main in c# but keep getting the CS5001 Error

This is the most basic code there is. I'm working in visual studio 17.5.4, ASP.NET is 17.5.318.41597. Im not new to programming but I'm new to c# and visual studio so I dunno if there is some weird ...
ConfusedAF's user avatar
3 votes
0 answers
977 views

hatch and scripts entry point in Python

I need a script to be produced by installing the package and to be put in user PATH. I've followed the Hatch guide on entry points and my directory looks like this: . ├── docs │   ├── conf.py │   ├── ...
Luca Braglia's user avatar
  • 3,153
0 votes
0 answers
9 views

Close QApplication in __main__ from other module, i.e. execute exit(app.exec()) statement from other module

Having created an instance of QApplication in the "main" of a file.py I run several other modules, which import others etc. In my specific case I check the connection to a SQLite3 database ...
Wolverine's user avatar
2 votes
1 answer
499 views

How to avoid that emscripten calls "main" function automatically

I want to generate a WebAssembly from a C-program using Emscripten. I'm using the following flags for emcc: FLAGS = -O0 \ -s ALLOW_MEMORY_GROWTH=1 \ -s TOTAL_MEMORY=134217728 \ ...
niels_h's user avatar
  • 1,919
0 votes
0 answers
63 views

Multiple main functions in different levels of hierarchy - resolving package paths

I have the following project structure (omitting the init.py files) of my python3.x project: project test_package class_package test_class1.py test_class2.py ... utils --- ... main.py My ...
JudgeDredge's user avatar
0 votes
1 answer
124 views

Error: The 'Main' method cannot be marked 'Async'

VB.NET does not support Async Main. This code precompiles but fails a build: Friend Module SomeConsoleApp Friend Async Sub Main Await Task.Delay(1000) End Sub End Module The build error, of ...
InteXX's user avatar
  • 6,137
0 votes
1 answer
59 views

Error: Entrypoint is not a Dart file in android studio

I have a this Error: Entrypoint is not a Dart file in android studio. Click on File-> Project Structure -> Module then add root folder of your project. I have done this things but it not ...
Deepak's user avatar
  • 1,804
-1 votes
1 answer
202 views

Is "public static void main(String[] name)" the only way to make a runnable class?

The only clear commands of the main class for me are static, because you have to execute the method wihtout needing an object, void, because it has no return value and the String array name which you ...
Connor's user avatar
  • 1
0 votes
1 answer
99 views

Why does school teach void main() in C++ [closed]

My school always taught to write void main() in C and C++. This is after my high school I found out through this community that you don't write void main() in C++ and C. Does anyone have any idea why ...
Adityaaa's user avatar
1 vote
1 answer
214 views

Getting "multiple definition of `main'" error while working with multiple C++ files in CLion

Within my project, I made some files for different beginner programs to start coding in CLion. However, I am getting a "multiple definition of main'" error when I try to run my program. I ...
Mazen Ehab's user avatar
0 votes
0 answers
137 views

How do I ensure I can run a Python module directly via __main__.py and via the -m option?

I have a Python project (an application) with the following project structure (adapted from https://realpython.com/python-application-layouts/#installable-single-package): Helloworld/ ├── helloworld/ │...
dende's user avatar
  • 23
0 votes
0 answers
172 views

Error: Cannot resolve entry file: The `main` field defined in your `package.json` points to a non-existent path

I am getting this error: Error: Cannot resolve entry file: The main field defined in your package.json points to a non-existent path. After upgrading expo 6.0.1
Gary Powell's user avatar
0 votes
1 answer
60 views

How should I use Main and static for this block of code?

I have a question regarding these two blocks of code: The first one: class Solution { public int[] twoSum(int[] nums, int target) { int[] result= new int[2]; for (int i=0; i<nums.length; i++){ ...
Azi's user avatar
  • 15
2 votes
1 answer
100 views

Python's isinstance method result is unexpected for subclass instance

Defining two classes (a base "ClassA" and a subclass "ClassB" in two separate files), gives unexpected results when using Python's isinstance method. Output appears to be impacted ...
skuzmo's user avatar
  • 111
0 votes
0 answers
47 views

Easier way to run a main() method of a class not in Main.java

I'm working on the exercises in "Think Java" Chapter 15 "Conway's Game of Life". I'm a little confused by the way the provided code is set up. The program runs by typing "java ...
futurebird's user avatar
0 votes
1 answer
191 views

Svelte JS and <script> embedded into <main> works (?)

I'm starting to code with Svelte and I ran into two quirks about script inside main. Here a code number one: <main> <p> How are you? </p> <script> alert("Welcome ...
Rinaldo Rasa's user avatar

1
2 3 4 5
60