Re: [MAS-discuss] Access Denied
Brought to you by:
jcochrane
From: Jim C. <jt...@di...> - 2004-07-17 20:51:19
|
Hi Mikael. > ... > I've installed the version 1.6.5 of MAS and I was able to run the server > (file mode) and the GUI client. > > After that i've modifed the environment variable of MAS to point on the > version 1.6.6q and I was able to run rhe server file. But when I've > launched the guiclient I've got the following error : > > C:\Program Files\mas1.6.6q\lib\classes>"C:\Program > ... > C:\Program Files\mas1.6.6q\lib\classes>cd C:\Program Files\mas1.6.6q\lib > C:\Program Files\mas1.6.6q\lib>cd classes > C:\Program Files\mas1.6.6q\lib\classes>java MA_Client localhost 18273 > Exception in thread "main" java.lang.NoClassDefFoundError: MA_Client > > The problem come from a syntax error in the script runmasgui.bat because > the class filename is not MA_Client but CL_Client. Actually, CL_Client is a command-line client written in Java. If you want to run the GUI you need to run MA_Client. But java is not finding the class file, which if I remember right is because the gui class files are now in the file mascharts.jar. You could try this: Start the server and then start up cmd.exe. Make sure you're in C:\Program Files\mas1.6.6q\lib\classes (assuming that is where the java *.class files were installed). Make sure there is a mascharts.jar file in that directory. (The name might be slightly different - you could search for *.jar files.) If it's not there, use the find file tool to find it and cd to that directory. Then run: java -cp .\mascharts.jar MA_Client localhost 18273 (assuming mascharts.jar is the right file name and 18273 is the port number the server is running on). If this works, it should not be hard to modify the batch file to do the same thing and get it working. > > After I've modified the batch file I was able to run MAS in command line. > > However in GUI mode there is always an access denied error. I think the > problem is that the client can't connect to the server. I will make some > other tests later. Since connecting to the server works in command-line mode, it should also work for the GUI, assuming the parameters are the same as when running in command-line mode, e.g., using localhost as the host name and the same port number. Hope this helps. Jim |