Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JBuilder 7 with JDK 1.4.2



Paul Furbacher <email@hidden> wrote:

>Just curious, did you actually try this? It sounds
>very clever, but in my hands, it doesn't work.

In what way doesn't it work?

I just tried it with a command-line app I have that prints property
name/value pairs. I used the -D option to predefine java.ext.dirs, and the
app tells me that it's exactly what I set it to.

Furthermore, the app itself is located in the directory that I changed
java.ext.dirs to reference, so if the predefining wasn't working, the main
class wouldn't even be found. In fact, if I set java.ext.dirs to a value
that lacks the app's JAR, that is exactly what happens. (A typo caused the
first occurance of this. Intention caused it again at will.)


One thing I tried didn't work: using ~ to refer to home. The shell only
expands ~ at the start of a token, not in the middle of it. For example,
if the new extensions dir is at ~/exts, this won't work:
java -Djava.ext.dirs=~/exts TheMainClass

but this will:
java -Djava.ext.dirs="$HOME"/exts TheMainClass

This is a shell artifact, and has nothing to do with java. The quoting is
there to eliminate problems with embedded spaces.

Also note that java.ext.dirs is a pathlist, so to specify more than one
directory, separate the elements with ":".

Finally, I didn't try this on 1.4.2, but it works on 1.4.1 and 1.3.1. If
it doesn't work on 1.4.2, that seems like a bug to me.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.