Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

What's the difference settings for different user in one computer?

Thread view: 
fl - 03 Apr 2006 20:05 GMT
Hi,
Excuse me for posting the question here because I got no answer in
matlab's user group. Java is embeded in Matlab. Previously it works for
me in my computer. I don't know the reason it doesn't work anymore when
I import a class. The system message says the class is syntax error,
although it works if I use other's user account. I have reinstalled
Matlab, it remains the same problem.
I want to know what is the difference between my and the other's
account. That is, which file defines the distinct behavior between
different users?

Thank you very much.
Remon van Vliet - 03 Apr 2006 20:16 GMT
Have you installed a JRE on your own account?

> Hi,
> Excuse me for posting the question here because I got no answer in
[quoted text clipped - 8 lines]
>
> Thank you very much.
Oliver Wong - 03 Apr 2006 20:45 GMT
> Hi,
> Excuse me for posting the question here because I got no answer in
[quoted text clipped - 6 lines]
> account. That is, which file defines the distinct behavior between
> different users?

   Please post the exact error message, not your paraphrasing of the error
message.

   - Oliver
James Westby - 03 Apr 2006 22:37 GMT
> Hi,
> Excuse me for posting the question here because I got no answer in
[quoted text clipped - 8 lines]
>
> Thank you very much.

What's the exact error message?

Is Matlab's classpath pointing at the class you think it is?

James
fl - 04 Apr 2006 01:58 GMT
Sorry for the incomplete message. The wrong feedback of Matlab is:
>> bertool
??? Error: File: bertool.m Line: 11 Column: 8
Arguments to IMPORT must either end with ".*"
or else specify a fully qualified class name:
"com.mathworks.toolbox.comm.BERTool" fails this test.

>> version -java

ans =

Java 1.5.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed
mode

Java 1.5.0 comes with Matlab. Before the problem appeared, I did not
install new Java version. I only suspect my daughter played with
Microsoft Frontpage using my account.
I have tried import all the class in the same Jar compressed file. Only
bertool cannot be imported. All others can be loaded!
>From control panel, I cannot see any difference with Java setting with
other user account. The parameter of application Java runtime:
System:
1.6.0-beta        Active
Utilizer:
1.4.2_03          Active
1.6.0-beta        Active

Thank you very much.
Chris Uppal - 04 Apr 2006 09:47 GMT
> > > bertool
> ??? Error: File: bertool.m Line: 11 Column: 8
> Arguments to IMPORT must either end with ".*"
>  or else specify a fully qualified class name:
> "com.mathworks.toolbox.comm.BERTool" fails this test.

Is BERTool something that comes with Matlab, or is it one of your own classes ?

Does BERTool.class exist in one of the directories or jar files reported by
Matlab's javaclasspath function ?

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f4867.html

Is there a difference between your own classpath.txt and that of the other user
?

It might also be worth looking for differences in %CLASSPATH% between yourself
and the other user.

   -- chris
fl - 04 Apr 2006 19:21 GMT
> > > > bertool
> > ??? Error: File: bertool.m Line: 11 Column: 8
[quoted text clipped - 16 lines]
>
>     -- chris

Sorry, bertool comes with Matlab.

The most curious thing is that all the class in the same .jar can be
imported except bertool. The javapath would affect the class access to
the whole path, not a single class.

Before the problem, I did not creat the classpath command. That is,
there is only the default java classpath file. It is really strange.

Thank you.
Chris Uppal - 05 Apr 2006 12:32 GMT
> The most curious thing is that all the class in the same .jar can be
> imported except bertool. The javapath would affect the class access to
> the whole path, not a single class.

That is odd.  The only things I can think of:

   Is there more than one version of the JAR on your machine ?
   Is the bertool.m file the same for yourself and the other user ?

Another possibility (remote -- I hope), it may be that something is wrong with
the environment such that the Matlab/Java combination is actually /finding/ the
class OK, but is unable to /load/ it (something fails in the class
initialisation perhaps), and that the error message is misleading.
Unfortunately, I don't have Matlab (or the bertool classfiles) so it's
impossible to diagnose from here.  I can only suggest that you double-check the
environments of both users (type "set" in a Dos window), and that you check
(again) the output from Matlab's
   javaclasspath
function -- /any/ difference might be relevant.

   -- chris


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.