Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: javaaddpath clears workspace variables

$
0
0
This is a summary of the workarounds.

(1) To just get rid of the issue, edit the following file to add the classpath there. (Remember to replace the MATLAB version in the path.)

"C:\Program Files\MATLAB\R2011a\toolbox\local\classpath.txt"

(2) If unfortunately this happens in a large code base and that debugging is not possible (due to the side effect that "clear java", "clear all" also clears all breakpoints), then do this in a command line:

dbstop in clear

This will give a warning, which is okay. This command line allows a troubleshooter to identify the lines of culprits by executing the offending package code.

Thanks,
Ryan Wong

"Dan Gresh" wrote in message <fofg6m$gta$1@fred.mathworks.com>...
> Hi,
>
> On both matlab 2007a and 2007b with Java JARs of source
> 1.5.0_07, when I use javaaddpath it will sometimes clear all
> my workspace variables. Sometimes it does not clear any
> variables; sometimes it clears all.
>
> This is a significant issue because not all users can add
> the .jars to their static path. Is there any way to stop
> this from happening?
>
> Thanks,
> Dan

Viewing all articles
Browse latest Browse all 19628

Trending Articles