Running an ActiveX component wrapped as a Java Applet. How to do it?
I have a legacy ActiveX/ocx plugin that the client wants to be run as a Java Applet. They think that will make things J2EE compliant.
How would you wrap that? are there libraries to help?
Thanks in advance
thanks for trying to help since I wasn't able to find the appropriate category given the new change (discussions.apple.com/thread/6421739)
Similar Messages
-
In a java applet , how to call other jar file?
i have i programm, this programm is a java application,
also, i already put these program into jar file, and then if i double this jar file , its work!
but , now i need to run this program in web browser,
i thing that i will write a simple applet with a button
after i click this jButton, how the java applet call and run the java file?
please help me.. it is because this is my project! thx..........
[email protected]I have a solution write one batch file in that you specify class path and java home.
then give
java -jar Test.jar
then call this batch file from program using Java runtime
Runtime.exec method...
Hope will this work -
Backspace in JAVA Applet - How to fix
I am running RedHat 7.2 and everything on my keyboard works normally.
However, when I start the Crossword Puzzle applet (in the Games section) in Yahoo, the Backspace key does not function the same way as it does everywhere else. In particular, I have to use the Ctrl-H keys to perform a move left + character delete.
Is this a problem isolated to this applet (Crossword Puzzle) or is there a general place to look to set the keyboard keys when a Java applet is running?
Thanks in advance for any help.
DonaldI have tried most of the browsers in both RedHat 7.2 and Mandrake 8.2, and with both Gnome and KDE desktops. Some of the browsers would not run the applet.
I have the problem with Netscape 6.22, with Java plugin 1.3.1_02-b02
This browser is the latest version. I am not sure about the Java plugin.
Regards,
Donald -
Java applet - how to do this?
I am translating a Midlet project to JApplet project. Microedition, UDPDatagramConnection, not available and lots more. How can tune this for JavaSE?
// code..........
package sip;
import javax.swing.JApplet;
import javax.microedition.io.*;
//import javax.microedition.midlet.*;
//import javax.microedition.lcdui.*;
import java.io.*;
import net.*;
import iax.audio.*;
//import iax.audio.gsm.*;
//import rtp.*;
public class InviteMIDlet extends JApplet implements CommandListener, SIPProviderListener {
// Vaiables to assign
private Display display;
public Form form;
private TextField To;
private Command sendCmd;
private Command exitCmd;
private Command hangupCmd;
public int sdpPort = 0;
private UDPDatagramConnection rtpCon = null;
private boolean incall = false;
// Sip Digest parameters
private String UserName = "";
private String passwd = "123";
private String SipServerIP = "212.";
private int SipServerPort = 5060;
// Sip parameters
private SIPProvider provider;
private String MediaIP = null;
private int MediaPort = 0;
// Thread assign
private UDPSend udpSend;
private UDPReceive udpReceive;
private AudioCapture audioCapture;
private AudioPlayer audioPlayer;
// End of Thread assign
// Main midlet parameters
public InviteMIDlet() {
form = new Form("SIP Dialer");
try {
display = Display.getDisplay(this);
To = new TextField("To:", "0012127773456", 40, TextField.LAYOUT_LEFT);
form.append(To);
sendCmd = new Command("Call", Command.ITEM, 1);
form.addCommand(sendCmd);
hangupCmd = new Command("Hangup", Command.ITEM, 2);
form.addCommand(hangupCmd);
exitCmd = new Command("Exit", Command.EXIT, 3);
form.addCommand(exitCmd);
form.setCommandListener(this);
rtpCon = (*UDPDatagramConnection*) Connector.open("datagram://:");
sdpPort = rtpCon.getLocalPort();
provider = new SIPProvider(UserName,passwd,SipServerIP, SipServerPort, 1225);
provider.start();
provider.addSIPProviderListener(this);
} catch (Exception ex1) {
ex1.printStackTrace();
}shamuntoha wrote:
UDPDatagramConnection is available under MIDP/Midlet. But after migration to j2se, it shows microedition does not exist. What is that mean?.. None of the J2ME (or JME - I forget what they're calling it this instant) classes are available in J2SE ((J)Applets, (J)Frames etc.).
Usually there is a J2SE equivalent. The JavaDocs for J2SE are available for download, or for web browsing at [http://java.sun.com/javase/6/docs/api/index.html]. I say usually since I can find no letter for letter equivalent of UDPDatagramConnection in the J2SE. There are a variety of classes that mention Datagram. Perhaps if you start there, you will figure how to do what J2ME does.
..i want to switch the same code, concept, in to j2se.
rtpCon = (UDPDatagramConnection) Connector.open("datagram://:");
sdpPort = rtpCon.getLocalPort();BTW - the advice to use code tags still stands. Most people will not so much as glance at code that is not formatted. After all, which is easier to read, this..
rtpCon = (UDPDatagramConnection) Connector.open("datagram://:");
sdpPort = rtpCon.getLocalPort();
..or this?
rtpCon = (UDPDatagramConnection) Connector.open("datagram://:");
sdpPort = rtpCon.getLocalPort(); -
Can anyone help with the java applet issue
Hello everyone,
This is my first thread in this forum,
I need a little help with the form developer...
I have oracle 9i db , 9i form developer
I don't want to run the form i created as a java applet
HOW IS THAT DONE i.e NOT IN THE INTERNET EXPLORER?????????
***IF ITS POSSIBLEHello,
I don't want to run the form i created as a java applet
No chance, because the Web Forms client is an applet and cannot be anything else.
Francois -
Safari 6.0.4 - java applet keeps running when not in use?
Mac OS X 10.7.5
Safari 6.0.4
all the latest updates (software) as of 4/27/13
Oracle's Java r 21 also installed (latest)
website: http://javatester.org/version.html
NOTE: I have seen this on more than 1 computer that the 1st time running the Java applet (after clicking on the plugin missing placeholder, the app appears to begin loading, but 'hangs' as far as UI is concerned, although it is using CPU and accessing the disk the whole time.
Refreshing the page then allows you to see the Oracle java version displayed in the pink box
However, what I notice is that if you enter a new URL and go there, blowing away the Java applet page, guess what's still running in the background (via Activity Monitor) "Java Applet - javatester.org", occupying memory and using some small CPU.
this seems like ridiculously bad behavior in general. Has anyone else seen similar issues? is this related to an outstanding memory leak (bigger problem) in Safari? Any way to get java to behave if you aren't possibly using an applet?
could it be lazy cleanup/garbage collection in Safari? meaning it might vanish from the process list at some indeterminate point in the future? closing the tab it was running on (before a new URL was loaded) outright doesn't seem to kill it.I have not used Onyx recently, although i use a number of other utils, and reset safari periodically.
It seems that it may be a delayed garbage collection issue. If I leave it for a bit and then come back it seems that the process is disappearing. If I can isolate anything more reliably I'll post again, but for now I'm going to stop worrying about it.
It was lingering long enough I thought maybe was a leak, but i guess I'm just not patient enough...
Also, I haven't reliably reproduced the high CPU cycle / hung applet condition on the 1st load. that may be something that shouldn't be going on (regarding the new security around java probably) but low pain point once I reload the page and tell safari to let the app run all the time.
so just to recap
- looks like the applet persistence in the process table is a delayed disposal issue that eventually gets done
- hanging applet on 1st load post security patch may be something, but hitting cmd-R is a lot more satisfying than devoting a lot of time to tracking that down right now
thanks for your suggestion -
Where can I set the window dimensions for the "Java Applet window"?
Hi,
When I run a form on the web, the Java Applet is loaded and the form appear in the window. But "base window" have gived dimensions indifferent what dimensions has the window of the form which I run.
So, where can I set the dimensions of the "core window" which is behind the MDI window of the application?
Thanks in advance,
EugenEugen,
in formsweb.cfg you will find parameters "width" and "height". You can set absolute values in pixels or "relative" in percent.
width=800
height=600
or
width=100%
height=100%
Gerald Krieger -
Hi,
What technology shoud we use to replace all the Java Applets in our MII applications ¡? . The reason is that java applets slows them down , sometimes the application screen ( GUI ) seems like not responding & when the end user is proactive changes his computer java version to the latest which does create other kind of problems to the MII applications .
Furthermore, we want our MII applications running on plataforms which do not support java applets ( ipads for example ) . I guess that our next move is to use AJAX, JQUERY & XSLT technologies instead of java applets, but still we would like to make sure that there is no another way .
Thanks in advance ,
Note : We are running a MII 12.2.3 build 167 sp 5 with a 7.11 CW NW versionHi Fernando
The best UI technology providing rich UI is HTML5 currently which is supported on all devices and browsers (IE9 is minimum) but with varying degrees of support with Chrome the best but others are not too far behind.
The easiest way to replace the Applets and use HTML5 rendering is to upgrade to MII 14.0 SP4 and use the SAP UI5 based i5Charts, i5Grid.
If you cannot upgrade to MII 14.0 or higher (15.0 has some cool features as well) you may do this on your own where you may use one of several HTML5 based charting libraries like D3, High Charts etc but the work will be more for you as MII 12.2 does not have JSON support (available with MII 14.0 again) and you will have to work with XML or write custom code to convert XML to JSON.
So my suggestion would be upgrade and use i5 Charts as these look much better, are faster and provide almost the same support as the applets. Also these charts would be developed in the future in MII but the applets would remain mostly in maintenance mode. This means new features would, most probably, be only added to the HTML5 charts in MII.
Best Regards
Partha -
Are you happy with Java Applets?
Are you happy with deploying your Forms to the Web as Java Applets? What kind of issues did you run into? Did you go the Java Applet deployment route for the lack of an easier/faster option? Wouldn't you prefer to deploy your forms as standard JSP pages? I really appreciate your feedback.
AliAli,
I wished things were as easy as black and white. It depends on what kind of application your are building. Is it busineess to business, business to customer, an Internet application or a heavily used internal application with high transaction volumes.
There are a lot of application types that I, as a Forms Product Manager, wouldn't encourage you to use Forms for. Keeping in mind the memory footprint onthe server, the JInitiator plug in and the download time, self service applications that are of short term use definitively are not what Forms is made for.
On the other side, JSP still requires a back end because its an interface technology and according to the MVC paradigm the view shouldn't have business logic in it. So you can use EJBs or Oracle's Business Components for Java to build the backbone of your application. In either way you are stepping out of the JSP case.
There is a reason for all different interface types to exist: Use Java Applet for what they are good for and the Forms design and intended usage really goes in line with that. Please have a look at this Whitepaper for a good insight in the subject of Forms and J2EE technologies
http://otn.oracle.com/products/forms/pdf/formsj2ee_business.pdf
Frank -
JAVA Applets from Adobe Flash/MS Silverlight?
SAP has recently announced that it will no longer support
invocation of JAVA applets directly from its "WebDynproABAP" or
"WebDynproJava" applications. (Until recently, SAP supported an
"iframe" UI element that could be used to run JAVA applets from
within WebDynpro applications - soon this will be only doable in
frames within SAP's portal via "client-side eventing".)
However, SAP will be supporting invocation of Adobe Flash and
MS Silverlight from within its WebDynpro Applications.
So here's my question.
From an SAP WebDynpro application, I want to pass parameters
to the JAVA applet "JMol" and have it run in a separate frame.
Since I will no longer be able to call this applet directly from
the SAP WebDynpro application, I'm wondering if I could pass
parameters to Adobe Flash or MS Silverlight and have Flash or
Silverlight invoke the applet for me with the correct parameters.
(I would still only want two frames - the one that the SAP app is
running in and the one that the JAVA applet winds up running in.)
Relevant links for this question are:
https://forums.sdn.sap.com/thread.jspa?threadID=939821&tstart=0
and its follow-up here:
https://forums.sdn.sap.com/thread.jspa?threadID=972132&tstart=0
Thanks for any time anyone can afford to spend considering
this question, and for any answer(s) anyone can provide.
David HalitskyThis link:
http://www.adobe.com/devnet/flash/articles/external_interface.html
says that javascript can be called from Flash
So is it as simple as invoking the Java applet from the
javascript ? -
How can I use HyperLink In Java Applet..
I am new In Java Programming And i Want to create a Hyperlink OR URL in java Applet, How can be It possible?
well u can use a hyperlink as a url by using url from java.net.url class
define ur url .... u can check the API fo r that
and by using wht u mean .. u want to browse in applet with that url or wht
if u want to do browing in applet than u will also have to do parsing of all HTML tags
hope it will help u -
How to retrieve data from php to a java applet?
hi! wer having this project on printing jar files and reports..where these reports are generated from php. data will be passed as objects to the java applet. how r we suppose to do this? can someone pls explain it to me further and clearly? many thanx.. :) God bless!
What? Is the php page going to send Java objects?
-
XL Reporter Run-time Error '429' ActiveX component can't create object
Hi Everyone,
When trying to install XL Reporter on a Windows 2003 Server SP2 machine getting the following Error:
XL Reporter
Run-time error '429':
ActiveX component can't create object.
Did anyone get this error? Please advise of any steps we can try to resolve.
Kind Regards,
KafilDear Friend,
I had described the problem to our technical support team, and they replied as follows u2013
They solved the Script related error by several stages.
They checked the machine for any mal-ware existence by the tool provided by Microsoft (MS Mal-ware remover).
Then they tried by installing the following patches from Microsoft u2013
http://support.microsoft.com/kb/949140
Windows Script 5.7 for Windows XP
http://www.microsoft.com/downloads/details.aspx?familyid=887fce82-e3f5-4289-a5e3-6cbb818623aa&displaylang=en
Windows Script 5.6 for Windows Server 2003
http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en
Windows Script 5.6 for Windows XP and Windows 2000
The internal matter to this problem was about the following DLL and its version u2013
C:\WINDOWS\system32
vbscript.dll
5.5.0.8820
Desired
5.6.0.8820
Check, if the information helps you. -
Run-time error '429': ActiveX component can't create object
HI,
I am having the following error in my Excel VBA Run-time error '429': ActiveX component can't create object when running the following code:
Dim objDistiller As New ACRODISTXLib.PdfDistiller6
objDistiller.FileToPDF2 filePath & ".PS", filePath & ".PDF", "T:\Templates\PDFSettings\Standard.joboptions", 1
This code has been working for years on all our systems, but due to recent security issues our administrator changed all user accounts to not have local administrator rights and now when we run this code we get the above error message.
I have had a look at DComcnfg.exe to try and get it to work by setting the default property permissions to allow access by Everyone but I am still getting the error.
Any help would be greatly appreciated.
Regards.
Shane Chapman.Hi Shane,
Here is another way to create PDF with Macro using another API than Distiller. This API is faster too.
Probably this post is not of interest anymore but here is how I have done it:
1. Download PDFCreator: http://sourceforge.net/projects/pdfcreator/
2. Use the following Macro:
Option Explicit
Sub printPDFmacro()
'Author : Ken Puls (www.excelguru.ca)
'Macro Purpose: Print to PDF file using PDFCreator
' (Download from http://sourceforge.net/projects/pdfcreator/)
' Designed for early bind, set reference to PDFCreator
Dim pdfjob As PDFCreator.clsPDFCreator
Dim sPDFName As String
Dim sPDFPath As String
'/// Change the output file name here! ///
sPDFName = "Facture-" & nclient2 & " le " & Format(Date, "yyyy-mm-dd") & ".pdf"
sPDFPath = "E:\Partenaire Scolaire\Comptabilite\Factures"
PDFFileName2 = sPDFPath & "\" & sPDFName
Set pdfjob = New PDFCreator.clsPDFCreator
With pdfjob
If .cStart("/NoProcessingAtStartup") = False Then
MsgBox "Can't initialize PDFCreator.", vbCritical + _
vbOKOnly, "PrtPDFCreator"
Exit Sub
End If
.cOption("UseAutosave") = 1
.cOption("UseAutosaveDirectory") = 1
.cOption("AutosaveDirectory") = sPDFPath
.cOption("AutosaveFilename") = sPDFName
.cOption("AutosaveFormat") = 0 ' 0 = PDF
.cClearCache
End With
'Print the document to PDF
ActiveSheet.PrintOut copies:=1, ActivePrinter:="PDFCreator"
'Wait until the print job has entered the print queue
Do Until pdfjob.cCountOfPrintjobs = 1
DoEvents
Loop
pdfjob.cPrinterStop = False
'Wait until PDF creator is finished then release the objects
Do Until pdfjob.cCountOfPrintjobs = 0
DoEvents
Loop
pdfjob.cClose
Set pdfjob = Nothing
end sub
Have any questions, just have to poke me.
Michael -
Problem distributing javabean ActiveX component
I have tried using javareg and using Sun's ActiveX Bridge to register my javabean (called NovaBean) as an ActiveX component for use by a VB project. Both javareg and the bridge work on my machine, but when I try to install the app on someone else's machine, I get:
Run-time error '372': Failed to load control 'NovaBean' from NovaBean.tlb. Your version of NovaBean.tlb may be outdated.
Actually I couldn't get the Sun bridge version of the control to run on their machine at all, they had jre v. 1.2 instead of my 1.3.1. I edited the .reg file to point to 1.2 instead of 1.3.1 but that didn't help. The control wouldn't even show up in design time, it crashed vb. With javareg, the control at least worked in design time, but died at runtime with the installed project with the error above.
Could this be related to my needing to include a .jar file as a library reference? Do I have to put the jar library on their computer as well?
After experimenting, these steps could be wrong:
I had to jar the component with the libary jar file to get it to work with the bridge:
jar -cvfm NovaBean.jar NovaBean.txt NovaBean.class mylib.jar
I also had to run the packager with:
bin\java.exe -cp lib\jaws.jar;lib\rt.jar;lib\ext\mylib.jar sun.beans.ole.Packager
I didn't specify this library with javareg anywhere. Any ideas?
Thanks,
JenRun-time error '372': Failed to load control
'NovaBean' from NovaBean.tlb. Your version of
NovaBean.tlb may be outdated.usually i see errors like this if i have recompiled and re-jared and not
repackaged. then the tlb is out of date with method signatures of the
classes in the jar. this doesn't sound like your problem but it might be
so i'll mention it.
Actually I couldn't get the Sun bridge version of the
control to run on their machine at all, they had jre
v. 1.2 instead of my 1.3.1. I edited the .reg file to
point to 1.2 instead of 1.3.1 but that didn't help.yikes... methinks this is the problem here. is your bean 1.2 compatible?
as a next step try installing the bean/control on a machine that has
1.3.1 and see if that helps. i wonder if you are having some versioning
problem either in the packager or in the classes themselves.
The control wouldn't even show up in design time, it
crashed vb. With javareg, the control at least
worked in design time, but died at runtime with the
installed project with the error above.that seems odd. i cannot help you with javareg though as i have never
used it.
Could this be related to my needing to include a .jar
file as a library reference? Do I have to put the jar
library on their computer as well?are you referring to NovaBean.jar or mylib.jar NovaBean for sure you
need it on the client. the other one too.
when you do this
jar -cvfm NovaBean.jar NovaBean.txt NovaBean.class
mylib.jar
you are adding the jar file itself not it's contents to the NovaBean.jar
which may not be what you are intending.
if you want it all one jar you should extract the files from mylib and
re-jar it all together.
well there are my ideas. hope this helps a bit...
actually one more thing you may have alreasy seen this but
http://www.reallyusefulcomputing.com/java/faq.php#five
Maybe you are looking for
-
Can I add a lossless file to my itunes library?
Can i add a lossless music file to my itunes library? Usually what i do is drag the file or folder into music/itunes/itunes media/automatically add to itunes and it works fine, everything shows in my library and plays perfectly. But with this lossles
-
How to display the data in XML files into JSP using Jdeveloper.
Hi All, I have two XML files one XML file has the view names and the other has the table names of a particular views, how to display the data in JSP using JDeveloper where when i click a particular view the list of tables of that particular view from
-
Reports-3.0 - Printing in compressmode & related doubts
Dear Friends, I am working as an Oracle-Developer/2000 Programmer in Oman. As I am new to this Software, having some problems and very much expecting your valuable suggestions/solutions from your side. Please Help me!. Problem 1: Printing Compress Mo
-
Imovie will not load correctly
Hi imovie 11 was playing well until a few days ago. Now, when it loads, only the tabs load. The screen remains as my desktop. I can go to a tab, such as edit, and create a new movie clip, and then I will see imovie appear out of the top right corner
-
Try to open a possible corrupted PPT file
Does Microsoft have any tool to repair a corrupted PPT file? Do I have to use the 3rd party recover tool to fix the problem? I tried to insert a slide from PPT file but did not find that option available when I attempted to open the corrupted PPT fi