Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360034

Summary: eclipselink/utils/workbench/bin/workbench.sh does not run
Product: z_Archived Reporter: mathew <meta>
Component: EclipselinkAssignee: Lukas Jungmann <lukas.jungmann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.utils-inbox, lukas.jungmann, martin.grebac
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: workbench
Attachments:
Description Flags
patch lukas.jungmann: review?

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