bugGNU Octave - Bugs: bug #48653, java classpath

 
 

bug #48653: java classpath

Submitter:  Ernst Reissner <ernstreissner>
Submitted:  Thu 28 Jul 2016 08:21:15 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 4.0.3 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 19 Aug 2016 08:53:53 AM UTC, comment #1: 

Did not have time to tackle this one,
but did a little improvement adding a function java_dir
which is useful to find the directory with configure files.

In that directory is also the file java.opts
and the file octave.jar which is also interesting.

(file #38271)

Ernst Reissner <ernstreissner>
Thu 28 Jul 2016 08:21:15 PM UTC, original submission:  

The documentation of section 'Making Java classes available'
is misleading.
In fact, a file @file{javaclasspath.txt} is searched for in all locations given.
The classpath starts with a pointer to octave.jar
and appends the entries given by files named @file{javaclasspath.txt}
in all three locations in the given ordering.

It is not true that if found in one location, all subsequent files are ignored as the text suggests.

The reason for the true behavior is,
that
octave.jar overwrite
settings in the current working directory overwrites
user specific settings overwrite
installation specific settings

all forming the static classpath
and static classpath overwrites dynamic one.

In my opinion, this section should be the first one
in section Java Integration.

I suggest to allow empty lines in @file{javaclasspath.txt}
for better grouping

and to add a builtin function displaying the octave_java home directory
called initial_java_dir in ov-java.cc
This makes it simpler to find the directory
for @file{javaclasspath.txt} and also for @file{java.opts}


Ernst Reissner <ernstreissner>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #38271:  patchBug48653.patch added by ernstreissner (3KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ernstreissner
  • -email is unavailable- added by ernstreissner (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
    2016-08-19 ernstreissner Attached File- Added patchBug48653.patch, #38271
    2016-07-28 ernstreissner Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code