Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can bootclasspath be specified in manifest for jar file?  RSS feed

 
Herbert Kornfeld
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Herbert Kornfeld
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much Maulin.
I was really starting to spin my wheels on this one!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!