This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Can bootclasspath be specified in manifest for jar file?
Herbert Kornfeld
Ranch Hand
Joined: Apr 16, 2003
Posts: 32
posted
0
Does anyone know how or even if it is possible to specify the bootclasspath in the manifest file in order to package everything into a jar file(so the app can be run just be double clicking on the jar). I.E. classpath is: Class-Path: some.jar - Right now I am using an application that uses corba - and it requires the bootclasspath to be set - currently in my IDE it works by adding this to the vm parameters: -Xbootclasspath:c:\folder\some.jar;C:\JBuilder8\jdk1.4\jre\lib\rt.jar But, of course, now I want to bring it out of my IDE and have it run self-contained. Many Thanks
Herbert Kornfeld
Ranch Hand
Joined: Apr 16, 2003
Posts: 32
posted
0
Actually, I just need to append to this question - now I am not so much concerned with the bootclasspath but how to specify properties - what are typically done with -D 's in the command line i.e., within the manifest: -Dpropertyname=value
Herbert Kornfeld
Ranch Hand
Joined: Apr 16, 2003
Posts: 32
posted
0
Me Again, After more research I don't think I am going to be able to specify the properties in the manifest thus in the jar. But what I am now wondering is if I can specify the properties in a jnlp file to be used with WebStart. Thanks
Maulin Vasavada
Ranch Hand
Joined: Nov 04, 2001
Posts: 1865
posted
0
hi Herbert, u can with Java WebStart. use - <application-desc main-class="your_class"> <argument>property1=value1</argument> <argument>property2=value2</argument> <argument>property3=value3</argument> </application-desc> OR u could just put a little XML in one <application> tag and interpret it the way u like.. regards maulin