(Answer) (Category) FAQ-O-Matic : (Category) Linux- and Solaris-specific : (Category) Installation :
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:
Remove /usr/ucb/bin from your PATH before running JBuilder.

Workaround #2:
Create a one-line shell script in jbuilder4/lib/ext/foo.config, and make that one line a shell comment like this:

  # foo workaround to fix a korn script problem

Save the file, and jbuilder should now launch without difficulty.

Workaround #3:
Delete the offending /usr/ucb/bin/ls binary.

2002-Jun-15 3:03pm gyles19@visi.com

[Append to This Answer]
2002-Jun-15 3:03pm
Previous: (Answer) I have downloaded the jb4fndlinux.tar.gz twice now and when I run "tar -xvf" on it, bash tells me: "tar: This does not look like a tar archive/ tar: Skipping to next header/ tar: 394 garbage bytes ignored at end of archive/ tar: Error exit delayed from previous errors"
Next: (Answer) Jbuilder 4 and Red Hat 7.1 - license dialog hangs
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=193
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

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
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]