appletviewer

Can a Java Applet Access Local File System

﹥>﹥吖頭↗ 提交于 2021-01-29 10:40:31
问题 I am creating a java applet, that gets information out of a JAR file on my local file system, and creates a jpanel to display in the applet. I am getting the applet to load correctly on the appletViewer in Eclipse, but it will not load whenever i launch the Html file i created. The html file is points to the class files, also to the external jars. Any Suggestions? Thanks 回答1: Yes, if the applet is signed with the jarsigner tool. 回答2: Unless explicitly granted, an applet may not access the

java.security.AccessControlException in Applet

女生的网名这么多〃 提交于 2020-01-15 10:17:13
问题 Inside my Applet, it needs to download the csv file from other site to run. When i run applet with appletviewer, it gave me this exception : java.security.AccessControlException: access denied (java.net.SocketPermision www.xxxsitexxx.com:80 connect, resolve .... My applet's signed : jarsigner -verify myfile.jar >> the result : jar verified. I tried to add : grant { permission java.security.AllPermission; }; into Tomcat's folder : ..conf/catalina.policy But it didn't work. Google suggests me

Can't read AppletViewer properties file - Applet

二次信任 提交于 2020-01-12 03:59:04
问题 I created a Java applet program and compiled it. As a result of the compilation, it generated a class file. But, it showed the following warning message while running the applet with the command prompt using the appletviewer command. D:\Applets\Applets>appletviewer FirstApplet.java Warning: Can't read AppletViewer properties file: C:eswaran_s.VMSPL\.hotjava\properties Using defaults. When I run this command once again, it does not show the warning message, but the applet is not running. How

Java Applet: Increase stack size

大憨熊 提交于 2019-12-24 07:06:03
问题 I was writing a small Java Applet in Eclipse to test a recursive algorithm. Since there are quite a lot recursive calls I needed to increase the stack size: -Xss10m This worked. Then I wanted to test the applet outside of Eclipse with appletviewer. So I wrote the needed html-file MyStuff.html: <html> <applet code="MyStuff.class" ARCHIVE=myjar.jar height=512 width=512> <PARAM name="java_arguments" value="-Xss10m"> </applet> </html> In order to start the applet I compile MyStuff.java: javac -cp

Java Applet: no antialiased font in browser (but in AppletViewer)

空扰寡人 提交于 2019-12-14 03:42:51
问题 In the AppletViewer, my Applet looks like this: In the browser, my Applet looks like this: As you can see, the font is not antialiased. Also the background color is different. And all the text is cutted on the right side. What could that be? You can also try it yourself here. From here I tried to use this code: System.setProperty("awt.useSystemAAFontSettings","on"); System.setProperty("swing.aatext", "true"); But that results only in this exception: java.security.AccessControlException:

Java Heap Space: Applets

ⅰ亾dé卋堺 提交于 2019-12-11 07:25:05
问题 I had to write a program to work for a 3000*3000 matrix. It was working only up to 600*600. So I ran my program by increasing heap size by java -Xms64m -Xmx1024m <class_name> Because initially the OutOfMemoryError was occurring. That solved the problem. Now this same program is used to plot values in Applets. So I made a package and imported it. But then the same error was coming as you can't run an applet. You can only type javac class_name.java and appletviewer class_name.java . So there

Running Oracle Forms 11g outside browser

浪尽此生 提交于 2019-12-08 00:06:59
问题 We have an Oracle Forms 11g application which can be started via browser. This leaves an empty browser window, since Forms opens its own window. However, if you close the empty browser window, the Forms window also get closed. I like the fact that this kind of installation is a server installation and I can easily update it. But I would prefer an icon (a shourtcut) on the desktop which just opens the Forms application without the browser window. I hoped to resolve this with the AppletViewer

Running Oracle Forms 11g outside browser

百般思念 提交于 2019-12-06 09:52:44
We have an Oracle Forms 11g application which can be started via browser. This leaves an empty browser window, since Forms opens its own window. However, if you close the empty browser window, the Forms window also get closed. I like the fact that this kind of installation is a server installation and I can easily update it. But I would prefer an icon (a shourtcut) on the desktop which just opens the Forms application without the browser window. I hoped to resolve this with the AppletViewer from the Java SDK. However, when I start it with the URL of the start page I receive: Warning: <embed>

Can't read AppletViewer properties file - Applet

与世无争的帅哥 提交于 2019-12-03 04:21:20
I created a Java applet program and compiled it. As a result of the compilation, it generated a class file. But, it showed the following warning message while running the applet with the command prompt using the appletviewer command. D:\Applets\Applets>appletviewer FirstApplet.java Warning: Can't read AppletViewer properties file: C:eswaran_s.VMSPL\.hotjava\properties Using defaults. When I run this command once again, it does not show the warning message, but the applet is not running. How can I solve this issue? My solution to this problem was to simply (in Eclipse) go to Run-> Run

How can I use SwingExplorer to navigate Applet content?

半城伤御伤魂 提交于 2019-12-02 23:49:10
问题 There is SwingExplorer tool from this site http://www.swingexplorer.com/ that used to navigate swing content but how do I apply it to Applet?,especially if I want to integrate it to eclipse-plugin how do I configure the running configuration? I guess that you need to supply the parameter of the applet that you want to run to AppletViwer and let the SwingExplorer navigate the AppletViewer(which in turn run your applet class) but i don't know how to pass such parameter to AppletViwer,Can anyone