Jump to content
JasperReports Library 7.0 is now available ×

How to run iReport-0.3.0


2004 IR Help

Recommended Posts

By: Syed Zuhdi Syed Salim - syzuhdi

How to run iReport-0.3.0

2004-05-26 20:49

I'm using Linux Redhat 9.0

I'm using j2sdk1.4.2_01

But...

I'm trying start iReport using this command

sh startup.sh

Then it show an error

: command not found

'tartup.sh: line 8: syntax error near unexpected token `do

'tartup.sh: line 8: `do

 

How to solve this problem ?

 

 

 

 

By: Giulio Toffoli - gt78

RE: How to run iReport-0.3.0

2004-05-27 01:34

 

The sh interpreter is bad.

chmod +x iReport.sh

./iReport.sh

 

In needed, modify iReport.sh to fit your paths.

 

Giulio

 

 

 

 

By: Syed Zuhdi Syed Salim - syzuhdi

RE: How to run iReport-0.3.0

2004-05-27 01:40

What do you mean by 'the sh interpreter is bad' ?

 

 

 

 

By: Giulio Toffoli - gt78

RE: How to run iReport-0.3.0

2004-05-27 15:43

 

it means that sh don't understand the instruction "do".

Are you using a bash?

 

 

 

 

By: Alin Vaida - alinv

RE: How to run iReport-0.3.0

2004-05-27 17:21

You need to convert CR/LF to LF in your startup.sh file.

 

HTH,

Alin

 

 

 

 

By: Syed Zuhdi Syed Salim - syzuhdi

RE: How to run iReport-0.3.0

2004-05-27 20:03

Alin,

I don't understand what are u saying. "You need to convert CR/LF to LF in your startup.sh file.

This my startup.sh

What should i do ???

 

#! /bin/sh

 

 

 

# add the libraries to the IREPORT_CLASSPATH.

 

# EXEDIR is the directory where this executable is.

 

EXEDIR=${0%/*}

 

DIRLIBS=${EXEDIR}/../lib/*.jar

 

for i in ${DIRLIBS}

 

do

 

if [ -z "$IREPORT_CLASSPATH" ] ; then

 

IREPORT_CLASSPATH=$i

 

else

 

IREPORT_CLASSPATH="$i":$IREPORT_CLASSPATH

 

fi

 

done

 

 

 

DIRLIBS=${EXEDIR}/../lib/*.zip

 

for i in ${DIRLIBS}

 

do

 

if [ -z "$IREPORT_CLASSPATH" ] ; then

 

IREPORT_CLASSPATH=$i

 

else

 

IREPORT_CLASSPATH="$i":$IREPORT_CLASSPATH

 

fi

 

done

 

 

 

IREPORT_CLASSPATH="${EXEDIR}/../classes":$IREPORT_CLASSPATH

 

 

 

java -classpath "$IREPORT_CLASSPATH:$CLASSPATH" it.businesslogic.ireport.gui.MainFrame "$@"

 

 

 

 

 

 

By: Alin Vaida - alinv

RE: How to run iReport-0.3.0

2004-05-28 01:46

You should run

 

#dos2unix startup.sh

 

or something like

 

#perl -pi -e 's/15$//' startup.sh

 

in order to convert the DOS/Windows line endings (CR/LF) to linux (LF).

 

Alin

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...