Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Plz Help me  RSS feed

 
Bk Jacky
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run a applet and for the security purpose i am putting my class file in the WEB-INF directory.But the codebase tag is not able to access the directories inside the web-inf directory.If i am putting the class file with JSP or HTML file's directory then all the class files become transparent to all internet user.
Plz give me solution to access the directory which is inside the web-inf directory or give me some other solution to run applet with full security(no transparency of code).


Bhupinder
SCJP 1.4
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to put the class files in an accessible location - the applet is implemented by the class files, and the applet has to run in the client's browser, hence, the class files have to be accessible. You have to place the class files for your applet (or a JAR file containing your classes) somewhere they can be accessed through a URL.

If i am putting the class file with JSP or HTML file's directory then all the class files become transparent to all internet user.
Plz give me solution to access the directory which is inside the web-inf directory or give me some other solution to run applet with full security(no transparency of code).


*class* files are not the same as *source*.

If you're worried about decompilation, use a Obfuscator.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few ways to make it harder to decompile applet code are mentioned in the Applet FAQ.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And, please read this.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!