• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to grant permission  RSS feed

 
Kadiem Haider
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to run this code



but im getting this error



i tried using this but no use


 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37496
547
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kadiem: Welcome to CodeRanch!

A few clarifying questions:
  • How is your program running - applet? in an application server? command line?
  • Can you run this program at the command line?
  •  
    Ron McLeod
    Bartender
    Posts: 1603
    232
    Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Also posted CodeProject
     
    Kadiem Haider
    Greenhorn
    Posts: 4
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    ok so if run this class alone as a java application in eclipse

    it run's without any problem, but the problem is when i try to run this code remotely like here:


    i get this message:

     
    Tim Moores
    Saloon Keeper
    Posts: 4034
    94
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    What does it mean to "run this code remotely"? What is Chatter, and what does it do?
     
    Kadiem Haider
    Greenhorn
    Posts: 4
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Chatter is the the main class:



    the problem happens when the is and the keyboard wrote the string the part that comes after



    causes me this issue :



     
    Jeanne Boyarsky
    author & internet detective
    Marshal
    Posts: 37496
    547
    Eclipse IDE Java VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I'm still not sure what remotely means. Where does Chatter run?

    Also, in your example you had "C:\\mail.jar" but in the code you have ""C:\\Users\\hp\\Desktop\\Bot\\Scripts\\javamail-1.4.7\\Email.jar"
     
    Kadiem Haider
    Greenhorn
    Posts: 4
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    i changed it to "C:\\Users\\hp\\Desktop\\Bot\\Scripts\\javamail-1.4.7\\Email.jar"

    anyway forget about remotely word, the problem is in this part



    it gives me this error

     
    Norm Radder
    Rancher
    Posts: 2240
    28
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    What is the command line that you use to execute the java program?  Can you add parameters to the commandline?
    For example your own policy file:
    java -Djava.security.manager -Djava.security.policy=mypolicy.policy -jar RSBot.jar

    Sample policy file contents:
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!