How to find sun/applet/AppletViewer class?
Hello, everyone,
I have successfully deployed Form Server Applications in several
ways as following:
1. Using Jinitiator 1.1.7.11 plug in to run Forms inside Web
browser in Windows 98 OS &IE4.0 SP1.
2. In Windows 98 OS DOS Command prompt line,using Appletviewer
to run remote NT
Server's Forms application with format: C:\>Appletview
http://appserver:9999/webhtml/example.html. The
form runs smoothly in a AppletViewer window.
3. In NT4.0 OS SP3, run form inside IE4.0 SP1 browser without
Jinitiator 1.1.7.11 plug in program, but I
must set CLASSPATH Env variable including
C:\ORANT\JDK\LIB\CLASSES.ZIP & C:\ORANT\FORMS60\JAVA, or else
the error message shows: class no found:sun/applet/appletviewer.
But I even encounter some problem:
1. In the above first way, jinit.exe(Jinitiator 1.1.7.11
version) can not run in my NT4.0 SP3 OS. So the
above first way of running Form can only succeed in my Windows98
OS. Has anybody installed jinit.exe
successfully in NT4.0 SP3?
2. In the above third way, I try to run Form inside my IE4.0 SP1
in Windows98 OS. I tried to set the
CLASSPATH correctly as above describled, but I failed. I always
got the above mentioned error message. I
don't know why in windows98 the appletviewer class can not be
found but in NT it can.
Anyone can help me out? Thanks in advance.
Robby
null
but problem is:
the class name is a string "JFrame", which is
how to solve the problem?It is simply not possible.
If you have javax.swing.JFrame, you can use Class.forName(). But then you've already got the package.
Beyond that, if you've ever decompiled code, you'd have seen that import statements don't exist in bytecode and all class references are by their full names. There is no facility in java to get the list of loaded classes, or to search for a class this way
Similar Messages
-
Sun.applet.AppletViewer vs. appletviewer
What's the difference between sun.applet.AppletViewer and just plain appletviewer. I recently had a problem with sun.applet.AppletViewer and I just wondered what the difference between the two is. I've looked around on the forum and conducted a search on the java.sun.com website. I can't really find any documentation on sun.applet.AppletViewer.
Thanks,
LisaI presume that they are the same? i.e. sun.applet.AppletViewer is the class that is used when you run appletviewer
How come you're using sun.applet.AppletViewer anyway if there's no docs for it? :) -
How to find java-applets developers?
Hello everybody,
do you know where is possible to find java-applets on Gemplus GemCombiXpresso R4 cards developers?
I. T. Co. need them for one-project work
thanks for helpDear friend,
I would be interested to know more about this project and offer my competence. You can reach me by e-mail from my contact details.
Thanks
Dmitri -
How to 'deploy' an Applet when class files are on client machine?
Hi all,
I've searched through these forums and I can't find where my specific question has been asked before, so please accept my apologies for any duplication.
I am trying to develop an applet for use on an intranet. (The specific requirement is that the applet must operate a scanner, and upload the scanned images to the database - we want it to be an applet so that it seamlessly integrates with the rest of the web application from the user's POV).
Therefore the applet needs to run outside of the sandbox, but I don't want to go to all the hassle of getting a certificate from Verisign and signing the applet - that doesn't seem like it should be necessary, since there is no problem getting access to the client PC to install the class files by hand!
I have read on this tutorial page that applets "that are loaded from the local file system (from a directory in the user's CLASSPATH) have none of the restrictions that applets loaded over the network do," so I don't think I am barking up the wrong tree:
http://java.sun.com/docs/books/tutorial/deployment/applet/security.html
That is exactly what I want to do! But whenever I try to run the applet, I get a no class definition found exception. However, if I run the applet as a standalone application (using its static main method) then the JRE has no trouble locating the class file - so I know that my CLASSPATH environment variable is set ok.
Therefore I think the problem must be in my JNLP file. This is what mine looks like at present:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/JGNS008" href="http://localhost:8080/JGNS008/scanner-applet.jnlp">
<information>
<title>Scanner Applet Prototype</title>
<vendor>Fooware</vendor>
</information>
<resources>
<!-- Application Resources -->
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
<jar href="ScannerApplet.jar" main="false" />
</resources>
<applet-desc
name="Scanner Applet Prototype"
main-class="uk.co.fooware.ScannerApplet"
width="72"
height="20">
</applet-desc>
<update check="background"/>
</jnlp>How do I rewrite this so that it doesn't try to download the class files from the network?
Many thanks,
Richard.richardwild wrote:
..I am trying to develop an applet for use on an intranet. (The specific requirement is that the applet must operate a scanner, and upload the scanned images to the database - we want it to be an applet so that it seamlessly integrates with the rest of the web application from the user's POV).
Therefore the applet needs to run outside of the sandbox, but I don't want to go to all the hassle of getting a certificate from Verisign and signing the applet - that doesn't seem like it should be necessary,.. Code can be digitally signed without a 'verified' certificate from Versign.
..since there is no problem getting access to the client PC to install the class files by hand!
I have read on this tutorial page that applets "that are loaded from the local file system (from a directory in the user's CLASSPATH) have none of the restrictions that applets loaded over the network do," so I don't think I am barking up the wrong tree:
http://java.sun.com/docs/books/tutorial/deployment/applet/security.html
Huh. I had never heard of that, but since I do not have access to my end user's classpath it is not that important to me.
BTW - I am guessing they mean the path indicated by [http://pscode.org/prop/all.html?prop=java.class.path].
And putting classes into JRE folders seems very hackish to me.
That is exactly what I want to do! But whenever I try to run the applet, I get a no class definition found exception. However, if I run the applet as a standalone application (using its static main method) then the JRE has no trouble locating the class file - so I know that my CLASSPATH environment variable is set ok.Huh?
Therefore I think the problem must be in my JNLP file. Huh?!? Why not deploy the applet using a standard applet element? The only way to configure an applet using a JNLP is ..
a) If the applet is intended to be free floating.
b) If the applet is intended to be embedded in a plug-in2 architecture JRE. Why impose that restriction, when it seems unnecessary and unproductive?
Note that the second option is very new, and I would not expect all the things mentioned in the document you linked, to apply equally to JNLP embedded applets. If you want this applet embedded, I suggest you drop the entire JNLP approach and use a standard applet element. -
How to find out if a class is abstract?
Hi,
I'm loading some classes via ClassLoader. Some of them could be interfaces or abstract classes. I'm only interested in classes which I can instantiate. With myClass.isInterface() I can check if the class is an interface, but how can I find out if it is an abstract class? I'm missing the method Class.isAbstract().
FrankSystem.out.println( Modifier.isAbstract(Foo.class.getModifiers()) );
-
How to find out the batch class link of the batch record in the MSC3N
Hi,
I would like to know how to pull out the class type and the characteristic value for a batch which is found in MSC3N.
For example, the following is MSC3N screen showing material (INM000000001724945) and batch (A000001117) tie to batch class “XXXXXXXX”.
Hence, I would like to know:
How to pull out the class type and the characteristic value for a batch record which is found in MSC3N? What are the table? The table show in the F1 key is not a table.
There are two batch classes setup in the system “XXXXXXX” and “YYYYYYY”, my question is why system decides to use the batch class “XXXXXXX”? Where is the system setup to determine this?
Thanks
TuffHi
The table MCH1 keeps the information about Material, Batch and Internal object no.: Batch classification (CUOBJ_BM).
The field CUOBJ_BM in MCHA represent the 'Key of object to be classified' (AUSP-OBJEK). The first 18 characters of AUSP-OBJEK.
In CABN (Characteristic) the field ATINN and ATNAM is important. The link between CABN and AUSP is through ATINN. -
How to find out the callers class?
Is it possible to find out whats the callers class from within a method without having the caller to pass a reference to itslef?
AkoThere are many posts on the subject. Two things.
1) Yes it's possible by getting a stacktrace.
2) No one should ever want to implement this. It perverts the idea of the language. -
How to find the main java class file
I need to write a Java program which MUST know one of these:
1) the full path to the main java class (the class with "main" method)
or
2) access to the main class as byte array.
If i know (1) then I have no problems reading the main class into byte array, but the main target is still (2).
Another option is if the main file is in JAR, which again leads to problems, because I cannot access the file in normal way, but I still need access to the exact byte stream.
Any help is highly appreciated! Thanks!
<<< Ivan Davidov >>>You could try somthing like this in your main-method:
InputStream is = getClass().getResourceAsStream(<"myModifiedPackageName/MyClass.class">);I don't know if this works though.
Have a look at the API doc for this method.
-Puce -
How to find one pipeline service's corresponding ABAP class ?
Hello guru,
I am in t-code: SXMB_ADM, then go to "Display Pipeline Definition", for example, I choose "SAP_CENTRAL" and try to investigate the pipeline steps in "SAP_CENTRAL" pipeline, and I find these pipeline steps:
Receiver Identification is for "Receiver Determination" step, and its' pipeline service" PLSRV_RECEIVER_DETERMINATION", but when I find this Class in SE24, I find nothing with name "PLSRV_RECEIVER_DETERMINATION".
Please tell me how to find the corresponding ABAP class of a pipeline service.
Thanks in advance.Chen,
Are u looking for this class -CL_XMS_PLSRV_IE_ADAPTER ? Go to SE80 choose class Interface give SRV and click the down arrow icon, it will give u some list of classes. I don't know if it's useful or not, just do a seach..
raj. -
How to start an applet offline with JNLP?
I want my applet to work offline. It uses Java3d and that is why it needs JNLP. I have made sure that it doesn't make any network connections. I have also put the JNLP file that it uses, java3d-latest.jnlp in the same directory as the applet. It finds this jnlp file, but it doesn't find the applet-launcher class. I get "java.lang.ClassNotFoundException: org.jdesktop.applet.util.JNLPAppletLauncher". I try to solve this by putting the applet-launcher.jar in the same directory as the applet, but it still doesn't find the applet-launcher class. What can I do to make the applet start offline?
I need it to work offline, because I am going to make a screensaver from the applet. This is the applet code in the page:
<applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
width=100%
height=100%
archive="astrals.jar,
applet-launcher.jar,
http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dutils.jar,
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
http://download.java.net/media/java3d/webstart/release/vecmath/latest/vecmath.jar">
<param name="codebase_lookup" value="true">
<param name="subapplet.classname" value="OrchideaOptM">
<param name="subapplet.displayname" value="OrchideaOptM">
<param name="jnlpNumExtensions" value="1">
<!--<param name="jnlpExtension1" value="http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp">-->
<param name="jnlpExtension1" value="file:/C:/java/3dflower/build/classes/java3d-latest.jnlp">
<param name="progressbar" value="true">
<param name="noddraw.check" value="true">
<shortcut online="false">
</applet>
You can view my 3d applets here, they work online:
http://astral.mobile-visuals.com/3d_visuals.phpI think you can do that you have to use a combination of javascript and html. use the Onclick event handler to call a java script function let say startApplet and in this function open a new window and write the <html><applet code= width= height=> </applet> </html> in that window and you will be able to start your applet that way.
-
Is there anyway I can find all the methods that are available to
in a class with the help of java code. For example: the Math class. Is there a
programming technique to find all the methods available in the
math class or any class.
Thanx
-RedsHi raja17 :
try this example and you'll understand how to find all method of class :
//this code print all the return type and the names of a class :
Class l_class = Class.forName("javax.swing.JFrame");
java.lang.reflect.Method[] l_method = l_class.getMethods();
for (int i =0; i< l_method.length ; i++) {
System.out.println(l_method.getReturnType() +" "+ l_method[i].getName()); -
How to find out what are the functions supported by string class
Hi,
Can any one let me know how to find what are all the functions supported by the string class in standard(STL) library on solaris.
Regards,
Vignesh1. Any C++ textbook that covers the Standard Library will tell you about the standard string class. A good tutorial and reference for the entire Standard Library is "The C++ Standard Library" by Nicolai Josuttis, published by Addison Wesley.
2. WIth Sun C++, the command
man -s3C++ basic_string
provides documentation for the default libCstd version of the Standard Library.
3. You could look at the <string> header itself. I don't recommend that approach. -
How to find the class name of the BO
HI
How to find out a class for a business object.
For example for the Business Object FORMABSENC i want to find out the class name.
iam not able to find out from se24 or swo1.
Or please suggest me how can i use the method createbapistructure of this businessobject.
Regards
vijayaHello Vijay
When you double-click on "method" AbsenceForm.CreateBapiStructure (transaction SWO1) and switch to tab ABAP you see (on ERP 6.0) that the field Name is empty meaning this BO "method" has not yet been implemented.
Other methods are implemented by modules of function group SWXA. Checking package SWX you will see that there are no suitable classes around for this object.
Final remark: Methods of business objects has just a semantic meaning and has nothing to do with object orientation (i.e. classes).
Regards
Uwe -
How to find classtype and class for a material.
Hi,
How to find classtype and class for a material.
which table contains this data.
Thanks
KiranHi Kiran,
Check below sample code. Use this BAPI which will give all info about the class for the material.
DATA: l_objectkey_imp TYPE bapi1003_key-object
VALUE IS INITIAL.
CONSTANTS: lc_objecttable_imp TYPE bapi1003_key-objecttable
VALUE 'MARA',
lc_classtype_imp TYPE bapi1003_key-classtype
VALUE '001',
lc_freight_class TYPE bapi1003_alloc_list-classnum
VALUE 'FREIGHT_CLASS',
lc_e TYPE bapiret2-type VALUE 'E',
lc_p(1) TYPE c VALUE 'P',
lc_m(1) TYPE c VALUE 'M'.
SORT i_deliverydata BY vbeln posnr matnr.
CLEAR wa_deliverydata.
LOOP AT i_deliverydata INTO wa_deliverydata.
REFRESH: i_alloclist[],
i_return[].
CLEAR: l_objectkey_imp.
l_objectkey_imp = wa_deliverydata-matnr.
*Get classes and characteristics
CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'
EXPORTING
objectkey_imp = l_objectkey_imp
objecttable_imp = lc_objecttable_imp
classtype_imp = lc_classtype_imp
* READ_VALUATIONS =
keydate = sy-datum
language = sy-langu
TABLES
alloclist = i_alloclist
* ALLOCVALUESCHAR =
* ALLOCVALUESCURR =
* ALLOCVALUESNUM =
return = i_return
Thanks,
Vinod. -
How to find out which class/method is calling System.gc
Hi
I am seeing frequent FULL GC and not able to locate which particular class/method is calling the System.gc(). I have disabled it using -XX:DisableExplicitGC and performance issues have been resolved. Also, I noticed that it does not happen periodically, so it is not RMI GC. How to find out who exactly is doing this? Does any of of the profilers like Optimizeit/Jprobe help find out this.
ThanksHi
I am seeing frequent FULL GC This is because you are creating and destroying objects VERY frequently. Try to look at your design and see where you can reuse objects (i.e. object pooling) if possible, that is if this is adversely affecting performance.
and not able to locate
which particular class/method is calling the
System.gc(). Classes don't call GC. The VM handles that automagically.
I have disabled it using
-XX:DisableExplicitGC and performance issues have
been resolved. Also, I noticed that it does not
happen periodically, so it is not RMI GC. How to find
out who exactly is doing this? Does any of of the
profilers like Optimizeit/Jprobe help find out this.OptimizeIt will tell you everything you need to know. However, NetBeans offers a free profiler now!
Maybe you are looking for
-
Officejet Pro 8600 Plus - Windows 8.1 upgrade, Printer Assistant no longer available
Hi, have recently upgraded my operating system from windows 8 to windows 8.1. Once this upgrade completed, my printer assistant could no longer find the printer. I un-installed the program, and re-installed the full driver version off the HP website,
-
My ipad wont turn on while being charged
Hi Today While using my ipad 4 it died while under 10%. so when i tried to charge it turned on for a second and died again. I Have tried pressing the home and sleep button together for 10 seconds but it still does the same thing. (I use a Thrid party
-
Not your average authorization problem
Long time isnce my last post But thats irrelivant, My problem: I have ONE (1) account on itunes and have had a maximum of three computers in my house. Now see Ive donwloaded on each computer atleaset once so i have purchased music on each one. I have
-
The Java RunTime Environment Issue
Hi All, I was trying to clone my existing 11.1.0.7 home to the new one. in process of registering the home , I discovered following issues. OS :- HPUX Itanium $ ./runInstaller -silent -attachHome -invPtrLoc /var/opt/oracle/oraInst.epmdev.loc \ ORACLE
-
I'm having trouble with the album artwork when I'm in iPod mode on my iPhone. The individual files are all tagged properly, and in cover flow they show properly, but when I am playing music it almost always shows the wrong cover artwork. What's up wi