function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to upload Java Appet

Hi, guys.

I'm trying using java applet app in s-control but I can't.
"Null pointer exception" occurs when excuting the java applet :(

My questions are below.
1. where do I upload the class files? to document folder?
2. Is source code correct to describe java applet?

<applet code="Sample.class" codebase="{!Scontrol.JavaCodebase}" archive="{!Scontrol.JavaCodebase}{!Scontrol.JavaArchive}"
height="315" height="300">

Does anybody know how to do it? Thank you very much in advnace!

BTW, does anybody use java applet for application?

Guess it's good b/c we can use java libraries (might be weight).

The eclipse plugin does not support the applet/activex file property of an scontrol.  To use that property you need to use the Setup in the application.

Once you have the file uploaded with your scontrol, you can use the appropriate merge fields to reference it via class or basepath or whatever embed properties need to be set.
I have not seen alot of applet implementations because of security and size issues.
Do you mean that attaching with the S-con(<applet>..)?
Now I do so but I can't make it.
If I use {!Scontrol.JavaArchive} or Sample.class directly.
load: Calss servlet.FileDownload?file=01N500000000ZxH Not Fond
java.lang.ClassNotFoundException: servlet.FileDownload?file=01N500000000ZxH
load: Calss Sample.class Not Fond
java.lang.ClassNotFoundException: servlet.FileDownload?file=01N500000000ZxH

How can the sfdc find out the archive?