Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Can bootclasspath be specified in manifest for jar file?

 
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
 
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!
 
It's weird that we cook bacon and bake cookies. Eat this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic