bugGNU Octave - Bugs: bug #48653, java classpath

 
 

bug #48653: java classpath

Submitted by:  Ernst Reissner <ernstreissner>
Submitted on:  Thu 28 Jul 2016 08:21:15 PM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.0.3Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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 File(s):
   
   
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
  • -unavailable- added by ernstreissner
  • -unavailable- added by ernstreissner (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 19 Aug 2016 08:53:53 AM UTCernstreissnerAttached File-=>Added patchBug48653.patch, #38271
    Thu 28 Jul 2016 08:43:35 PM UTCernstreissnerCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1