Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360034 - eclipselink/utils/workbench/bin/workbench.sh does not run
Summary: eclipselink/utils/workbench/bin/workbench.sh does not run
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Lukas Jungmann CLA
QA Contact:
URL:
Whiteboard: workbench
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 16:09 EDT by mathew CLA
Modified: 2022-06-09 10:10 EDT (History)
3 users (show)

See Also:


Attachments
patch (869 bytes, patch)
2015-04-15 10:54 EDT, Lukas Jungmann CLA
lukas.jungmann: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mathew CLA 2011-10-05 16:09:01 EDT
Two problems:

#1:

$ ./workbench.sh   
.: 2: Can't open .../../../bin/setenv.sh

This appears to be a missing '/' on line 2:
. `dirname $0`../../../bin/setenv.sh
should be
. `dirname $0`/../../../bin/setenv.sh

#2:

$ ./workbench.sh
[: 15: /usr/lib/jvm/java-6-openjdk/jre/: unexpected operator

This appears to be because of an error in line 1 of the script. The shebang says
#!/bin/sh
but the script only works in bash. Changing the shebang to
#!/bin/bash
makes it work.

Kubuntu 10.10.
Comment 1 Lukas Jungmann CLA 2015-04-15 10:54:48 EDT
Created attachment 252416 [details]
patch

can reproduce only first issue, rest works for me
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:10:17 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink