LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error 500 java+heap+space (https://www.linuxquestions.org/questions/linux-software-2/error-500-java-heap-space-727005/)

jomy 05-19-2009 06:16 AM

Error 500 java+heap+space
 
Hi,

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?

Jomy

vitalstrike82 05-19-2009 12:14 PM

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:
Quote:

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: http://java.sun.com/docs/books/tutor...festindex.html

:)


All times are GMT -5. The time now is 05:10 AM.