Compilation: "Error: Could not find or load main class format" when "as3mxml.asconfigc.jvmargs" is not specified
See original GitHub issueHi Josh,
I recently noticed that several of my small projects weren’t compiling anymore with the following error:
Error: Could not find or load main class format
After few investigations I noticed that this is occurring only when the property "as3mxml.asconfigc.jvmargs"
is missing in the settings.json
. I’m using it that way in larger projects: "as3mxml.asconfigc.jvmargs": "-Xms512M -Xmx1G"
The verbose mode doesn’t tell me more in the console. I’m using ActionScript & MXML
v1.13.0
and as I remember this wasn’t the case few weeks ago.
Best, Aurélien
Used java
version:
java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Java Guide: How to Fix "Could not find or load main class"
The Java “Could not find or load main class” error is thrown when the JVM fails to find or load the main class...
Read more >Java – “Could Not Find or Load Main Class” Error | Baeldung
Explore the reasons for the error "Could not find or load main ... To run a .class file generated by Java compiler, we...
Read more >java - What does "Could not find or load main class" mean?
When you get the message "Could not find or load main class ...", that means that the first step has failed. The java...
Read more >Java error: could not find or load main class - Fixed - YouTube
JAVA Course : http://bit.ly/JAVA-MASTERY Fixed - Java error : could not find or load main, caused by java.lang.
Read more >How to Resolve could not find or load main class Error in Java?
Whenever we write a Java program and compile it - we need to execute that compiled class file and while executing, if JVM...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh Josh, you’re right! I’m so sorry for the time you spent on this 😲
I honestly don’t know how I ended up with this weird user config…
Thanks a lot & sorry again!
Your Starling-Template project compiles for me without error. I do not see
--jvmargs="format"
in my output.This suggests to me that you may have accidentally set
as3mxml.asconfigc.jvmargs
in your global VSCode settings. Alternatively, if this project is part of a workspace,as3mxml.asconfigc.jvmargs
could be set in the .code-workspace file.