applet

How do I Link a .pdf document in the Applet table column

Hi All, I wanted to link a .pdf file to an Applet I am using the following code try { //if (column == docColId) { String doccolvalue = this.getTable().getValueAt(row, column).toString(); String lPathPrefix = "gopher://muceap10.muc.amadeus.net/User Step Folders/BPS_Files/Outlooksoft CPM/01 - Production Environment/01 - Docum...

WMIC command lind issues when run from Java

Currently I have an applet that runs some command line commands. The applet will not work on random computers. The commands that seem to be causing issue are WMIC commands. The applet is signed and works on some computers but simply hangs in others(even with the same OS and Browser version). I'v done a significant amount of testing and t...

Using ProGuard to obfuscate code

I chose ProGuard and here's the options I configured it with: Input: C:\wamp\www\mystikrpg\clientOff.jar Output: C:\wamp\www\mystikrpg\newOne.jar Shrinking Options: Shrink Keep: Applications Applets Also keep: Enumerations Database drivers Swing UI L&F Obfuscation Options: Obfuscate (duh! :P) Overload aggressively Use unique class ...

NoClassDefFoundError in Java Applet on invokeLater()

I have an applet I've built using NetBeans, called AKApplet. It runs fine in the IDE, but when I put it in a web page it throws the following error: Exception in thread "Thread-15" java.lang.NoClassDefFoundError: AKApplet$2 at AKApplet.run(AKApplet.java:675) The applet uses the run() method to load some data in the background whil...

Including a jar file in another jar file in netbeans

I have created an applet and made its jar file in Netbeans. i am using a jar file in an applet. I am calling the applet.jar in a jsp page. The applet works fine but the functionality it has to be achieved is through the another jar file which i was using in that applet. means how to include an external jar file in applet.jar so that it ...

java.lang.NoClassDefFoundError for java.awt.event.MouseAdapter in Applet

I'm not sure why I get a java.lang.NoClassDefFoundError runtime error on the following line: this.startBtn.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { startClicked(); } }); in an Applet. It compiles fine. How can the jre not find a core awt class? I use the same line in a differen...

Java applet security warning for application involving disk read

I have a java applet that is downloaded to a user's browser when they visit a webpage and allows them resumable file uploads to my server. Obviously, this requires the applet to access the user's hard disk, which I understand is outside the regular sandbox applets can run in. The user sees a security warning popup which asks for their pe...

jfileUpload control is not working with firefox

Recently I am working with jfileupload control which is a java applet application for file download from remote server. I found that its working fine IE, but not working in FF. I checked the Add on and found a java plugin enabled with my browser, but it still its not working. Anybody facing the same problem? Can you give me some solution...

Deployment in tomcat

i am getting a problem i have deployed a war file, when i run localy through tomcat it works fine but when i run on another system by giveing my system ip and then project folder e.g http:\192.168.0.145\DllTest it loads the applet but when i click on a button to load the functionality it is throwing an exception Exception in thread "...

eclipse: global applet parameters in eclipse run configurations

hello, i have many run configurations in eclipse to launch applets. i provide parameters to these applets via the parameters tab of the run configurations. here i would like to add some global variables like ${playerid} like it can be done in the parameters section of normal applications. so if i change the value of playerid in the stri...

Is it ever appropriate to have a main method in an applet?

I am trying to wrap my head around the rules of applet use. I realize that an applet does not have to have a main method (it can use init() instead) but every code sample my professor provides is an applet with a main method, like in the code below. My understanding was that it is not a good idea to have a main method in an applet beca...

Java Applet crashes router

Hi We have a couple of Java applets at work which works perfectly with all of our customers. But when one of my colleagues and me try to load the page from our home, our router crashes and all internet access stops. Only solution is to restart the router by ripping the power cord from the wall... Works without any problems when i'm on ...

Weird ClassNotFound error with applet

Error: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class com.Stuffez.UploadApplet.UploadApplet at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3013) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1444) at java.lang.Thread.run(Th...

Passing user credentials from session to an applet?

I have an authenticated user with an HTTP session. The user should be able to use an applet to connect with this authentication to a server. It will connect to server via a socket connection so looking up the session is not possible. How can the authentication be passed? ...

Java Secure FTP Applet

Does everyone know if there's an example of code of an application similar to these one? http://www.jscape.com/sftpapplet/sftp_applet_demo.html It's an applet that allows to upload huge files into an FTP Active server via HTTP using a Java Applet. ...

calling applet functions from JavaScript

This is probably really basic and Simple but my Gogle-foo is failing me. I have an applet embedded on the page via an Object tag. It has method public void foo(String bar) Now I want to call foo with baz, So I do getElemntById('myApplet').foo('baz') Which doesn't work, and I cant get info from Google-foo on what is the way to ...

Why signed applet couldn't write files to the client file system using firefox?

I have an applet (java) that writes some files to the client file system. In Chrome and IE work perfectly and firefox too, only if I run it with Administrator permissions . (righ click -> Run as administrator). This solution don't look proper for a enterprise application. By the way the applet is part of a big enterprise web applicatio...

Hello World, Java Applet, Problem

I am having trouble with a HelloWorld Applet. Here is my Java code: package webCrawler.applet2; import javax.swing.JApplet; import java.awt.Graphics; public class HappyFace extends JApplet { public void paint (Graphics canvas) { canvas.drawOval(100,50,200,200); canvas.fillOval(155,100,10,20); canvas....

Java Applet: Java Version, update

I am making a Java Applet right now. I have compiled with Java 1.5. When I run my applet in Firefox it does not run. When I open the console in the browser (right click on the applet -> view console) it tells me that I am only running Java 1.4.2. In my browser. I am wondering is it safe to develop my app for 1.5 and assume that...

hide one part of JSplitPane in Applet

Here is my situation, i want to implement a sidebar on the right side of a JFrame. The sidebar is hidden in default, appear if i click a button. In order to hide the sidebar, I set the divider location of the JSplitPane with a very large value, say 10000. It works properly in normal java application. Also, i set the setResizeWeight of ...