Re: Making -Xbootclasspath stick (was: NoClassDefFoundError when trying to create a CAFString)
Re: Making -Xbootclasspath stick (was: NoClassDefFoundError when trying to create a CAFString)
- Subject: Re: Making -Xbootclasspath stick (was: NoClassDefFoundError when trying to create a CAFString)
- From: Bill Stewart <email@hidden>
- Date: Wed, 18 Jun 2003 22:30:37 -0700
I'd ask about this on the java-dev list...
Bill
On Wednesday, June 18, 2003, at 01:36 PM, Gary Affonso wrote:
On 6/18/03 1:10 PM, "Ilya Maykov" <email@hidden> wrote:
Ok, ignore my last message, I think i got it to work ... however, i
have one more question. Is there a way to set an environmental
variable
under OS X so that i don't have to type that -Xbootclasspath thing?
Thx
for any hints.
For development purposes, if you're using a Java IDE, you can probably
set
it's "execution" parameters somewhere and include the -Xbootclasspath
info
there. This will make it "just work" when you hit execute in your IDE.
Outside of an IDE, you can could create an ANT script that knows how
to run
the class. The ANT script should allow you to define the
-Xbootclasspath
before executing the class.
But those are mostly development-time solutions.
For a final shippable product: you could write a shell script called
something like "runmyapp" that sets all the stuff you need to set
before the
app runs (-Xbootclasspath included). This technique of wrapping a
program
(java or not) in a "prep it" shell script is pretty common.
Also an option is to bundle the java application up into a Mac-specific
"bundle". I don't know all the details on that, but I believe that
you can
setup the -Xbootclasspath definition as part of the bundle. You also
get to
setup a bunch of other Mac-specific stuff going this route (icons,
etc.)
I don't know of a way to globally change the "java" command under OS X
such
that all future invocations of "java ...." automatically have the
-Xbootclasspath added. There's might a way, maybe someone else here
can
provide the details.
- Gary
Server Side Software
5614 8th Ave NE
Seattle, WA 98105
Voice: (206) 525-4786
Fax: (413) 683-2973
Email: email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.