Hi Patrick,

Can you try this for me:

specify the security manager as:

java.rmi.RMISecurityManager

By changing the bat file as per below?

@rem /*
@rem Licensed to the Apache Software Foundation (ASF) under one
@rem or more contributor license agreements.  See the NOTICE file
@rem distributed with this work for additional information
@rem regarding copyright ownership. The ASF licenses this file
@rem to you under the Apache License, Version 2.0 (the
@rem "License"); you may not use this file except in compliance
@rem with the License. You may obtain a copy of the License at
@rem
@rem      http://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem */

@rem Batch file to run non-secure client

java -Djava.security.manager=java.rmi.RMISecurityManager ^
    -Djava.security.policy=config\client.policy ^
    -Djava.security.properties=config\dynamic-policy.security-properties ^
    -Djava.rmi.server.codebase=http://%computername%:8080/jsk-dl.jar ^
    -jar lib\client.jar ^
    config\client.config

Patrick Saunders wrote:
Hi,
I am trying yto get the hello example to work.  Any suggestions would be nice.

When I run the scripts\client.bat

I get the following error:

java -Djava.security.manager= -Djava.security.policy=config\client.policy -Djava.security.properties=config\dynamic-policy.security-properties -Djava.rmi.server.codebase=http://CTI-TITAN:8080/jsk-dl
.jar      -jar lib\client.jar      config\client.config
Exception in thread "main" java.lang.ExceptionInInitializerError
        at net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvid
er.java:180)
        at net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvid
er.java:137)
        at com.sun.jini.example.hello.Client.main(Client.java:77)
Caused by: java.security.AccessControlException: access denied (java.lang.Runtim
ePermission createSecurityManager)
        at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:374)
        at java.security.AccessController.checkPermission(AccessController.java:
546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.lang.SecurityManager.<init>(SecurityManager.java:282)
        at net.jini.security.Security$ClassContextAccess.<init>(Security.java:96
5)
        at net.jini.security.Security$ClassContextAccess.<init>(Security.java:96
5)
        at net.jini.security.Security$1.run(Security.java:167)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.jini.security.Security.<clinit>(Security.java:165)
        ... 3 more




  • Hello example Patrick Saunders
    • Re: Hello example Peter Firmstone

Reply via email to