[Biojava-dev] Putting JVM options in a Manifest file??

Scooter Willis HWillis at scripps.edu
Thu Jan 6 16:47:34 UTC 2011


Mark

I have also looked for ways to do the same thing for setting a larger heap space and couldn't find anything. I think Sun wants you to follow the jnlp/web start route. The other problem I ran into last year(filed a bug) is that if you don't have a GUI then javaws won't start. I was trying to run on a centos server instance on amazon ec2 and couldn't run via javaws because no graphics. I tried setting to headless and all the other old tricks but no luck. Not sure if that is still the case. 

Let me know if you figure something out. 

Scooter

On Jan 5, 2011, at 11:02 PM, Mark Schreiber wrote:

> Hi -
> 
> Does anyone know if it is possible to put a JVM option into the Manifest of
> a Jar file?  Essentially, I want to hack the JAR file to set the proxy but I
> don't want to have to recompile the Main class. I also don't want to create
> various .bat .sh files for different operating systems.
> 
> I'm trying to replicate this behaivour (but without doing it from command
> line) for a self executing JAR ...
> 
> 
> java -Djava.net.useSystemProxies=true -jar someJar.jar
> 
> ie I want someJar.jar to find and use the configured system proxy
> _______________________________________________
> biojava-dev mailing list
> biojava-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-dev





More information about the biojava-dev mailing list