Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8100081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:38:51+00:00 2026-06-05T22:38:51+00:00

I have an application created with Processing.org and am trying to run it on

  • 0

I have an application created with Processing.org and am trying to run it on Linux. Shortly into the app I get a Heap Size error. I am trying to run the app from the command shell with the line java -Xmx512m myAppNameHere but when I do this, I get a message that says “Exception in thread “main” java.lang.NoClassDefFoundError: myAppNameHere/exec”
Then it says
“Could no find the main class: myAppNameHere. Program will exit”

So… is there a special way to call the app when running this command? I tried myApp.java, myApp.exe, myApp.pde… Any ideas would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:38:52+00:00Added an answer on June 5, 2026 at 10:38 pm

    Are you saying it runs but crashes with a heap size error, so you’ve changed the command line by adding in -Xmx512M and now you are getting a NoClassDefError?

    You have probably not added your Xmx option into the command line correctly, ie you have set the command line specifically to java -Xmx512M appName, without setting the classpath and whatever other million command line switches are required to make the app run.

    Short answer is you haven’t told java where to find the app class files so it cant run them. Add -cp someJar.jar (or the directory if you have class files lying around) to your command line

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a .Net application to run on an App Server that gets
I have created application where i just need to access data form assets folder.
I have an MVC application created from the Internet template to use forms authentication,
I have an application installer created with Inno Setup that deploys multiple binaries and
I have a Windows 8 Metro application created from the Grid Application template. I
I currently have a (non commercial) application created in MS Visual C# 4.5, using
I have created an application in windows form. Once I submit the application, the
I have created Windows Application. In this, I have multiple tables in dataset, now
I have created an application that connect on a web-server and reads an xml
I have created an application in facebook,all is working fine except the publish to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.