Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

application blocked for security reason.

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,
While trying to self teach java I have stumbled upon a problem.

I have a simple GUI applet which I am trying to run. <br>
I am using java 8 version 66. At runtime I get an 'application blocked by Java security' when I try to preview it in a browser using Dreamweaver.<br>
The reason given is that my security settings have blocked a local application from running.<br>
When clicking on the more information link I get info about the java control panel. They instructed to add a url in the exception site list. <br>

When I want to add my dir in this case C:\dwtest\applet\www\html, it won't add to the exception site list. <br>

I have read the documentation for controling an untrusted app running in my browser on **https://www.java.com/en/download/help/jcp_security.xml** and **https://www.java.com/en/download/faq/exception_sitelist.xml**.
Here they are only discussing about adding an URL and nothing about a directory for where the html and .class files are stored.<br>
<br>

Is this really a security issue or am I overlooking something?<br>

I know applets are not used much but I am trying to grasp the concept of it. I think it would increase my over-all knowledge of Java.
Any help would be grealty apreciated.

This is what I know/think I am getting correct:

*1- my html code

<title>HTML Test Page</title>
</head>
<body>
SimpleGui4b will appear in a java enabled browser. <br>
<applet aligned="middle" vspace="0" hspace="0" height="300" width="400"
name="SimpleGui4b" code="SimpleGui4b.class" codebase="."> wordt niet geladen
</applet>
</body>
</html>]

*2- I have the html file and two .class files in the same dir which is
C:\dwtest\applet\www\html

*3- my class files are working fine as an application in java but not when I made it in to an applet.

*4-dreamweaver has access to C:\dwtest\applet\www\html

Thanks,


 
Saloon Keeper
Posts: 9565
79
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Khivo Boyrard wrote:When I want to add my dir in this case C:\dwtest\applet\www\html, it won't add to the exception site list.


I think you need something like: file://C/dwtest/applet/www/html
 
Marshal
Posts: 27372
88
Eclipse IDE Firefox Browser MySQL Database
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd suggest, since you're trying to learn Java on your own, that you should skip over applets and go on to the next topic. You could spend a couple of weeks learning about applet security but you wouldn't be learning much about Java. Applets are obsolete now so you would really be wasting your time.
 
Khivo Boyrard
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI, I tried and succeeded to add file://C/dwtest/applet/www/html and file:///C|/dwtest/applet/www/html/applet.html to the Exception site list, the lattter is the pathame in dreamweaver. Now I get a website content can't be displayed. Then the browser just crashed. In Mozilla it says plugin crashed.
I looked at https://docs.oracle.com/javase/tutorial/deployment/applet/deployingApplet.html. Here it is stated that an untrusted applet needs a security certificate. Why would I need a certificate when I can add a pathename in the Exception site list?
Understanding the basics of applets gives me more confidence when hopefuy trying new java stuff in thhe near future.
Thanks for the help ad advice guys.
 
Khivo Boyrard
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great website http://aspose.com/file-tools .Just ooked marked it. will surely give this a look when I get my applet working.

Keep the advice coming. I am very greatful to you all.
 
This looks like a job for .... legal tender! It says so right in this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic