Mustafa
Mustafa

Reputation: 10413

Netbeans, Distributed Jar file, Increasing Heap Size

I am building an application with NetBeans and I need to increase the heap-size. I am modifying running parameters from Netbeans but I have no idea to modify the heap-size in the .jar file. How can I achieve this?

I mean how to include it embedded to the jar file, not by using another runner script (.bat for windows or .sh for linux)

Upvotes: 2

Views: 396

Answers (1)

Agemen
Agemen

Reputation: 1535

You can modify it when you launch you software from the jar. Use the -Xmx option on Linux, for instance.

Upvotes: 2

Related Questions