Ticket #447 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

jomdoc gets java path wrong

Reported by: kohlhase Owned by: vzholudev
Priority: major Milestone: Release v0.1.4
Component: [SI] Shell Script Version: bleeding edge
Keywords: Cc: clange
Blocked By: Blocking:
Due to close: YYYY/MM/DD Include in GanttChart: no
Dependencies: Due to assign: YYYY/MM/DD

Description

on MacOS, I have problems using bleeding-edge/jomdoc it gets the java path wrong and gives me the error

Unable to locate an executable at "/usr/bin/bin/java" (-1)

I looked at the script jomdoc and cannot even change it to use /usr/bin/java Something funny is going on here.

Change History

follow-up: ↓ 4   Changed 3 years ago by kohlhase

OK, I partially solved the problem: if I comment out the line with

JAVA_HOME=/usr/bin

then things work for me. My system JAVA_HOME (Mac OS) is

/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

  Changed 3 years ago by nmueller

  • status changed from new to assigned

  Changed 3 years ago by nmueller

First on a Mac I figured out that Java preferences should only be set by Applications/Utilities/Java/Java Preferences. Second, I no longer have any Java related environment variable set in, for example, .bashrc. Third, I guess a kind of Java path variable should be a prerequisite to run JOMDoc rather than to point to some explicit path.

My 2ct.

in reply to: ↑ 1   Changed 3 years ago by kohlhase

Replying to kohlhase:

OK, I partially solved the problem: if I comment out the line with

oh, I forgot to say that I have to leave JAVA_HOME alone and call java with a full path /usr/bin/java in the last line.

  Changed 2 years ago by nmueller

  • owner changed from nmueller to vzholudev
  • status changed from assigned to new

  Changed 2 years ago by vzholudev

@Michael, is this still an issue for you?

  Changed 2 years ago by kohlhase

  • status changed from new to closed
  • resolution set to fixed

no, this seems to work, closing the issue.

  Changed 2 years ago by kohlhase

  • status changed from closed to reopened
  • resolution fixed deleted
  • component changed from System Implementation to [SI] Shell Script

I was wrong after the last update (which probably flushed my local modifications to jomdoc) I get an error again:

../../../jomdoc/jomdoc render mathtalk.omdoc -t -x ../../../jomdoc/xsl/omdoc2pmml-copymobj.xsl --xsl-param css=../../../jomdoc/css/omdoc/omdoc-default.css -o mathtalk.xhtml
Unable to locate an executable at "/usr/bin/bin/java" (-1)
make: *** [mathtalk.xhtml] Error 2
Macintosh-76:en kohlhase$ which java
/usr/bin/java

so I have to reopen this.

  Changed 2 years ago by vzholudev

I know Dimitar was updating scripts yesterday, it might have caused the problem

  Changed 2 years ago by vzholudev

  • version set to bleeding edge
  • milestone set to Release v0.1.4

  Changed 2 years ago by dmisev

  • status changed from reopened to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.