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

 
 

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

Submitted by:  CarnĂ« Draug <carandraug>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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.5