|
|
I've just installed JB4 Foundation on Solaris 2.6. I've applied all of the Solaris patches required by JDK 1.3. When I try to launch jbuilder, I get the following error: /opt/jbuilder4/bin/jbuilder[47]: ./*.config: not found. What is wrong? |
| This problem occurs when /usr/ucb/bin is earlier in your shell's path than either /usr/bin or /usr/xpg4/bin. /usr/ucb/bin/ls does not return the same error status as the other to versions of ls. If the ucb version is used by the script, the script will fail.
Basically, jbuilder is attempting to determine if config files exist in jbuilder4/lib/ext, so that it can then load them. The bug is that when there are no config files present, (a normal condition for JB Foundation, but not normal for a complete Enterprise installation) the function attempts to read the wildcard pattern as if it were the filename. IE it's trying to open and read filename "*.config", which naturally doesn't exist. The ls command sets an error code based on the status of the match. The problem is that the version in /usr/ucb/bin sets a different error code than all the other versions. The bug in the script is that it does not specify a specific version of ls, instead allowing the shell to find ls on the path. If the shell finds /usr/ucb/bin/ls, the script's test of the error code will be fooled because the error code isn't the expected value.
Workaround #1:
Workaround #2:
# foo workaround to fix a korn script problem Save the file, and jbuilder should now launch without difficulty.
Workaround #3: | |
| [Append to This Answer] | |
| 2002-Jun-15 3:03pm |
| ||||||||
|
Java Community
Java Tools |
Code Central JB OpenTools |
Community Recent Threads |
Borland Chat Chat FAQ |
||||||||||||||
|
Feature Matrices 3.0 | 3.5 | 4.0 5.0 | 6.0 | 7.0 |
Shop for JBuilder |
JBuilder Downloads and reg keys |
Report Piracy | ||||||||||||||
|
Online Manuals 4.0 | 5.0 | 6.0 7.0 |
Borland DevSupport's Bug/RFE Form Quality Central Client |
JB Patches & Updates |
JBuilder FAQs TIs | ||||||||||||||
|
JBuilder Newsgroups |
Tamaracka's News Archive |
Mr. Haki's JBuilder Machine |
JGuru's JBuilder FAQ |
||||||||||||||
|
Sun's Bug Parade |
|||||||||||||||||
|
|||||||||||||||||