question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compilation: "Error: Could not find or load main class format" when "as3mxml.asconfigc.jvmargs" is not specified

See original GitHub issue

Hi 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:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Adoliocommented, Jul 20, 2022

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!

1reaction
joshtynjalacommented, Jul 20, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found