Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

security related issue

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


above is the code snnipet i am using in a class which is on the client side(applet). Now the problem is, i am not able to compile the class because i don't have any jar or the source file for this security classes like

PolicyEngine

etc. what is the work arround for this??

please give some solution ASAP

Thanks in advance.
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't have the jar file containing the PolicyEngine class or the source code for it then you can't use it in your code directly. You could use it indirectly using Reflection, but you would still need to reference an interface that PolicyEngine implements. Does such an interface exist and do you have the jar file/source code for it ?
[ August 11, 2008: Message edited by: Joanne Neal ]
 
Master Rancher
Posts: 3840
35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i am not able to compile the class


If you only want to compile (not execute) why not create a class with the correct(empty) methods etc to allow your program to compile.

A problem for executing it would be getting the correct values for: PermissionID.NETIO etc
[ August 11, 2008: Message edited by: Norm Radder ]
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ugh. Are you really writing code for the MS JVM? That has been deprecated 5 years ago or so; is anyone really still using that? Is there a particular reason you can't use a Java Plugin-based JVM from Sun?
 
ravin kacha
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah...
actually i am using the existing code and over that i am implementing my new classes. but i still need to compile this classes to make a jar and i was helpless when i didn't find the jars for this.

anyways i got jars from one of my source.
so thanks for all the suggestions.
 
Legend has it that if you rub the right tiny ad, a genie comes out.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic