Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-19-2009, 06:16 AM   #1
Registered: Jul 2004
Location: UAE
Distribution: RedHat
Posts: 93

Rep: Reputation: 15
Error 500 java+heap+space


I'm running an application which needs java on Fedora Core 6.When I access my application through browser , I get the Error 500 java+heap+space. I searched the error and found some solutions like

java -Xmx1950M -Xms1950M -jar start.jar

But I get error like this :

Failed to load Main-Class manifest attribute from start.jar

Can anyone tell me what I'm missing in this command?

Old 05-19-2009, 12:14 PM   #2
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Rep: Reputation: 40
Mmm this seems more like a java question rather than a problem in linux OS.

anyway, the first error you encounter is because due to the lack of memory while running java.

After you increase the memory size, the second error you hit is because There is no mainclass attribute in the manifest.The jar file is not meant to be execute as applications.

I assume/guess you try to run your java class files package as jar in this way with library in the class path as an example and your application:
java -classpath .:/home/vitalstrike82/struts.jar start.jar
If you are running using the java command asshown above, most likely you will not be able to run because we cannot run the jar file this way like an application or a class file.

You can read up more about manifest from:

Last edited by vitalstrike82; 05-19-2009 at 12:36 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
java heap organization Clemente Programming 4 08-10-2008 09:53 AM
Java Heap Space manolakis Programming 3 02-04-2008 11:15 PM
LXer: Find Java Heap Leaks with HeapAnalyzer LXer Syndicated Linux News 0 10-20-2007 07:41 AM
A heap of problem, starting at error 17 bear^ Linux - Newbie 45 05-13-2007 12:47 PM
How big can Java-heap be on a 64-bit Linux betbrain Linux - Enterprise 0 08-29-2005 04:58 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration