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.
The moose likes Other JSE/JEE APIs and the fly likes Can bootclasspath be specified in manifest for jar file? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Can bootclasspath be specified in manifest for jar file? " Watch "Can bootclasspath be specified in manifest for jar file? " New topic
Author

Can bootclasspath be specified in manifest for jar file?

Herbert Kornfeld
Ranch Hand

Joined: Apr 16, 2003
Posts: 32
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
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
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
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


1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
Herbert Kornfeld
Ranch Hand

Joined: Apr 16, 2003
Posts: 32
Thanks very much Maulin.
I was really starting to spin my wheels on this one!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Can bootclasspath be specified in manifest for jar file?
 
Similar Threads
JAR FILE
How to use manifest.mf ?
self executable jar
Can a EJB module reference a WEB module?
Can't compile ejb java source files using JBoss 5 libraries (javax.ejb does not exist)