WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: who can help me fix netbeans issue  (Read 2411 times)

Offline freyone

  • WikiUser
  • *
  • Posts: 24
who can help me fix netbeans issue
« on: June 16, 2016, 06:30:09 PM »
i have installed netbeans successfully in my tinycore,but running netbeans,always report
./netbeans: line 183: syntax error: unexpected "then"


183: if grep -v -- "-J-Xmx" >/dev/null <<EOF ; then             
184: ${netbeans_default_options}                                       
185: EOF                                                                   
186:         heap_size                                   
187:         netbeans_default_options="-J-Xmx${max_heap_size}m ${netbeans_default_options}"
188: fi

who can tell me where is script erro?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10064
Re: who can help me fix netbeans issue
« Reply #1 on: June 17, 2016, 01:56:47 AM »
Probably a bash-specific construct. Change the first line to #!/bin/bash and install bash if you haven't.
The only barriers that can stop you are the ones you create yourself.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: who can help me fix netbeans issue
« Reply #2 on: June 17, 2016, 05:52:29 AM »
Your ";then" is inside your here document.
Put the "then" on a line after the "EOF".

Offline freyone

  • WikiUser
  • *
  • Posts: 24
Re: who can help me fix netbeans issue
« Reply #3 on: June 19, 2016, 06:39:34 PM »
Probably a bash-specific construct. Change the first line to #!/bin/bash and install bash if you haven't.
thanks.
It is ok。