| MATLAB Central > MATLAB Newsreader > Folders when calling JAVA classes in MATLAB |
|
|
|
Subject: Folders when calling JAVA classes in MATLAB From: Santiago Balestrini Date: 21 Apr, 2009 22:03:01 Message: 1 of 9 |
|
I'm calling some JAVA classes that allow me to run an agent-based simulation environment called NetLogo from MATLAB. |
|
Subject: Folders when calling JAVA classes in MATLAB From: Donn Shull Date: 22 Apr, 2009 00:07:01 Message: 2 of 9 |
|
"Santiago Balestrini" <sanbales@gmail.com> wrote in message <gslfql$3ip$1@fred.mathworks.com>... |
|
Subject: Folders when calling JAVA classes in MATLAB From: Santiago Balestrini Date: 23 Apr, 2009 20:50:18 Message: 3 of 9 |
|
DONN: MATLAB maintains the locations of java classes in the file classpath.txt. You can find it with which('classpath.txt'). In more recent versions of MATLAB there is also a dynamic classpath that you can manipulate with the javaclasspath function. |
|
Subject: Issue with MATLAB Startup Directory when calling JAVA classes From: Santiago Balestrini Date: 25 Apr, 2009 04:40:17 Message: 4 of 9 |
|
I've checked and the problem is that whatever I set the MATLAB startup directory, that is the default directory of the external JAVA classes that I call from MATLAB. I cannot change those JAVA classes, so I was wondering if anyone else had had this problem and knew of a way to deal with it. I've tried to use userpath to change the current directory, but that does not solve the problem. The only way I can get the JAVA classes to use a different directory, is to set it in the windows shortcut. This is clearly not an option since I want to have the flexibility to have the JAVA classes and their associated files in whatever folder they may be. |
|
Subject: Issue with MATLAB Startup Directory when calling JAVA classes From: PrakritiPriyanka Date: 25 Apr, 2009 14:00:55 Message: 5 of 9 |
|
On Apr 25, 9:40=A0am, "Santiago Balestrini" <sanba...@gmail.com> wrote: |
|
Subject: Issue with MATLAB Startup Directory when calling JAVA classes From: Santiago Balestrini Date: 25 Apr, 2009 17:15:03 Message: 6 of 9 |
|
> I want to run a JAVA class in matlab editor.... can anyone pls help me... |
|
Subject: Issue with MATLAB Startup Directory when calling JAVA classes From: matt dash Date: 25 Apr, 2009 18:04:02 Message: 7 of 9 |
|
"Santiago Balestrini" <sanbales@gmail.com> wrote in message <gsu47h$pnb$1@fred.mathworks.com>... |
|
Subject: Issue with MATLAB Startup Directory when calling JAVA classes From: Bhavesh Date: 8 Sep, 2010 00:42:06 Message: 8 of 9 |
|
"matt dash" <n.a@mail.com> wrote in message <gsvjai$q94$1@fred.mathworks.com>... |
|
Subject: Issue with MATLAB Startup Directory when calling JAVA classes From: Yair Altman Date: 8 Sep, 2010 07:30:13 Message: 9 of 9 |
|
"Bhavesh " <s.rk@hotmail.co.uk> wrote in message |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| default folder | Santiago Balestrini | 23 Apr, 2009 16:50:23 |
| netlogo | Santiago Balestrini | 23 Apr, 2009 16:50:23 |
| javaclasspath | Santiago Balestrini | 23 Apr, 2009 16:50:23 |
| default directory | Santiago Balestrini | 21 Apr, 2009 18:05:06 |
| java | Santiago Balestrini | 21 Apr, 2009 18:05:06 |
