jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-636

JAVA_HOME with Backslash at end results in Error JAVA_HOME not set

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows XP Groovy 1.0-beta-6

Description

On my system I have JAVA_HOME set to "C:\JDK\"
This results in an error message when starting GROOVY:
"JAVA_HOME not set"

When I change JAVA_HOME to "C:\JDK" everything works fine.

This can be a litte disturbing for new users and should be easy to fix, I guess.

Greetings,
Malte

Issue Links

is duplicated by

Bug - A problem which impairs or prevents the functions of the product. GROOVY-2718 CLONE -JAVA_HOME with Backslash at end results in Error JAVA_HOME not set

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Guillaume Laforge added a comment - 02/Nov/07 6:28 AM

If it's still a problem, please reopen.

Show
Guillaume Laforge added a comment - 02/Nov/07 6:28 AM If it's still a problem, please reopen.
Hide
Permalink
David Trattnig added a comment - 01/Apr/08 3:33 AM

I think it's still a problem and important, because in other cases/tools it's not obligatory to define the path without a trailing backslash. e.g. Even the GRAILS_HOME is checked for a trailing backslash.

I've done a modification of the file %GRAILS_HOME%\bin\startGrails.bat at section ":have_JAVA_HOME" I've added following:

:have_JAVA_HOME

@rem Remove trailing slash from JAVA_HOME:
if "%JAVA_HOME:~-1%"=="\" SET JAVA_HOME=%JAVA_HOME:~0,-1%

If needed I can also create a patch for Grails 1.0.2

Show
David Trattnig added a comment - 01/Apr/08 3:33 AM I think it's still a problem and important, because in other cases/tools it's not obligatory to define the path without a trailing backslash. e.g. Even the GRAILS_HOME is checked for a trailing backslash. I've done a modification of the file %GRAILS_HOME%\bin\startGrails.bat at section ":have_JAVA_HOME" I've added following: :have_JAVA_HOME @rem Remove trailing slash from JAVA_HOME: if "%JAVA_HOME:~-1%"=="\" SET JAVA_HOME=%JAVA_HOME:~0,-1% If needed I can also create a patch for Grails 1.0.2

People

  • Assignee:
    Guillaume Laforge
    Reporter:
    Malte Finsterwalder
Vote (0)
Watch (2)

Dates

  • Created:
    21/Sep/04 6:07 AM
    Updated:
    06/Apr/08 8:22 AM
    Resolved:
    02/Nov/07 6:28 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.