How to increase java heap space in windows

How do I increase the java heap space in windows OS.
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
tfbsrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

and235100Commented:
0
tfbsrAuthor Commented:
Thanks but was able to get the answer without installing CIS
I request question to be closed.

Thanks for your help
0
and235100Commented:
Could you please note down your final resolution on the question?

Then - if you ask a new, 0-point question in the Community Support TA (http://www.experts-exchange.com/Community_Support/Community_Advisor/), containing a link to this question, with a request to close the question. A page editor will respond to the request by posting a new comment on the original question - informing participating experts that the Asker wants the question to be closed.

Recommendations of question resolution are allowed for up to 4 days (by participating experts) - and after that the question will be closed.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

tfbsrAuthor Commented:
My solution was
Eample: java -Xmx512M testjava.class
0
and235100Commented:
Great stuff - thank you.
0
Computer101Commented:
PAQed with points refunded (125)

Computer101
EE Admin
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.