In the jar file you could just add this to your manifest.mft
Main-Class : A
The jar file would then be executable and would call the correct main.
On how to do this in Netbeans you can look at this: Producing executable jar in NetBeans
Related Posts:
- Can’t find mysqladmin on Mac OSX 10.6.8
- Integer range when using 64bit jdk
- How to get rid of Checkstyle message ‘File does not end with a newline.’
- InvocationTargetException when running a javafx program
- Netbeans installation doesn’t find JDK
- Can’t create project on Netbeans 8.2
- JDK was not found on the computer for NetBeans 6.5
- Sending mail error, javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
- Netbeans – class does not have a main method
- Why is Netbeans suggesting I “Flip operands of the binary operators” in my Java code
- Popup Message boxes
- Write a program that reads an unspecified number of integers, determines pos, neg, total, average
- Netbeans – Error: Could not find or load main class
- Exception in thread “main” java.net.BindException: Address already in use – Error in Netbeans only
- How do I autoindent in Netbeans?
- Issue installing Netbeans in Windows 10: Java SE Development Kit (JDK) was not found on this computer
- No Main class found in NetBeans
- Loading a remote WP website to Netbeans
- How does the Java ‘for each’ loop work?
- How does the Java ‘for each’ loop work?
- What does “Could not find or load main class” mean?
- How do I create a file and write to it?
- When to use LinkedList over ArrayList in Java?
- Can’t start Eclipse – Java was started but returned exit code=13
- How to convert a char to a String?
- How do you create a dictionary in Java? [closed]
- How do I declare and initialize an array in Java?
- Convert list to array in Java [duplicate]
- How to solve could not create the virtual machine error of Java Virtual Machine Launcher?
- How do I generate random integers within a specific range in Java?
- “Exception in thread “main” java.lang.IndexOutOfBoundsException: Index: 0, Size: 0″ with ArrayList?
- Raising a number to a power in Java
- Explanation of ClassCastException in Java
- Running JAR file on Windows 10
- String variable interpolation Java [duplicate]
- How to parse this string in Java?
- How to match “any character” in regular expression?
- Double array initialization in Java
- I want to declare an empty array in java and then I want do update it but the code is not working
- Could not reserve enough space for object heap
- Eclipse: Java was started but returned error code=13
- Why java unknown: import org.apache.commons.codec.binary.Base64;?
- Extracting .jar file with command line
- Java; String replace (using regular expressions)?
- Unable to create requested service [org.hibernate .engine.jdbc.env.spi.JdbcEnvironment]-MySQL
- Why do I get “Exception; must be caught or declared to be thrown” when I try to compile my Java code?
- Check jdk/JRE is installed and get path for jvm.dll
- What is Java String interning?
- Integrate Ant builder into Eclipse: Error “Variable references empty selection”
- Convert a byte array to integer in Java and vice versa
- Spring Maven clean error – The requested profile “pom.xml” could not be activated because it does not exist
- Java Class File Editor
- Error Importing SSL certificate : Not an X.509 Certificate
- How do I draw a triangle?
- warning: [options] bootstrap class path not set in conjunction with -source 1.5
- Creating a maze solving algorithm in Java
- IDEA: javac: source release 1.7 requires target release 1.7
- Java equivalent of cin (C++)
- Java: Difference between the setPreferredSize() and setSize() methods in components
- use java-ffmpeg wrapper, or simply use java runtime to execute ffmpeg?
- Can we write our own iterator in Java?
- local variables referenced from a lambda expression must be final or effectively final
- java.lang.IllegalMonitorStateException: object not locked by thread before wait()?
- WebServlet cannot be resolved to a type
- How do I print out the value of this boolean? (Java)
- How to add an object to an ArrayList in Java
- Getting warning “NDK is missing a ‘platforms” directory.’ with no NDK
- Getting the array length of a 2D array in Java
- Java String to SHA1
- What’s the difference between SoftReference and WeakReference in Java?
- How do I call one constructor from another in Java?
- Does Java have something like C#’s ref and out keywords?
- How to upload a file and JSON data in Postman?
- Exception in thread “main” java.net.NoRouteToHostException: No route to host
- What is the difference between i++ & ++i in a for loop?
- when to throw FileNotFoundException
- How to use ArrayUtils for array of objects, it doesn’t delete the content of an array
- The ResourceConfig instance does not contain any root resource classes
- Which exception to throw for invalid input which is valid from client perspective
- Detecting a long press with Android
- How to increase the size of an array in Java?
- Cannot invoke toString() on the primitive type int
- Creating a Calendar using javafx
- A tool for calculating the big-O time complexity of Java code? [closed]
- How to print binary tree diagram in Java?
- Must qualify the allocation with an enclosing instance of type GeoLocation
- Unknown version of Tomcat was specified in Eclipse
- How to compare character ignoring case in primitive types
- Read next word in java
- Convert float to double without losing precision
- Exception in thread “AWT-EventQueue-0” java.lang.OutOfMemoryError: Java heap space
- How do the post increment (i++) and pre increment (++i) operators work in Java?
- Manually throw an exception
- Spring boot: Unable to start embedded Tomcat servlet container
- How does paintComponent work?
- Java GC (Allocation Failure)
- toring and Retrieving ArrayList values from hashmap
- Could not find or load main class with a Jar File
- “uses unchecked or unsafe operations” [duplicate]
- Using the Pythagorean theorem with Java