bugGNU Octave - Bugs: bug #45683, javaclasspath.txt is read twice if...

 
 

bug #45683: javaclasspath.txt is read twice if home is current directory

Submitter:  CarnĂ« Draug <carandraug>
Submitted:  Mon 03 Aug 2015 07:05:02 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 03 Aug 2015 10:44:57 PM UTC, comment #1: 

Confirmed.

It's easy to check that the current directory is not either the home directory or the java installation directory before adding the contents of javaclasspath.txt.  I believe I fixed it in this cset (http://hg.savannah.gnu.org/hgweb/octave/rev/4262598620ae).

Rik <rik5>
Group administrator
Mon 03 Aug 2015 07:05:02 PM UTC, original submission:  

The static classpath is set by a javaclasspath.txt file in one of the following directories

1. [octave_config_info("fcnfiledir") "/java/"]
2. home directory
3. current working directory when the java machine starts (when any of the java related functions is called for the first time)

The end result is that entries on the static javaclasspath get duplicated if "3" is one of the two above.


carandraug@microna:~$ pwd
/home/carandraug
carandraug@microna:~$ cat javaclasspath.txt
/usr/share/java/ij.jar
/usr/local/share/java/bioformats_package.jar
carandraug@microna:~$ octave
octave-gui:1> javaclasspath
   STATIC JAVA PATH

      /usr/share/java/ij.jar
      /usr/local/share/java/bioformats_package.jar
      /usr/share/java/ij.jar
      /usr/local/share/java/bioformats_package.jar

   DYNAMIC JAVA PATH

      - empty -
octave-gui:2> exit

carandraug@microna:~$ cd playground/
carandraug@microna:~/playground$ octave
octave-gui:1> javaclasspath
   STATIC JAVA PATH

      /usr/share/java/ij.jar
      /usr/local/share/java/bioformats_package.jar

   DYNAMIC JAVA PATH

      - empty -


Carnë Draug <carandraug>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by carandraug (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-08-03 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code