I'm stuck! Following the Java Tutorial
I'm confused :=Q
I am following the Java tutorial and am trying to do the ClickMe applet. The html file was saved as text in notepad. I downloaded the ClickMe and Spot source files. They compiled without errors along with the html file. I double checked my DIR and saw that I had the class files. When I went to run the applet, the little window appeared without any spot and said something about Clickme class in the heading border and then in the box it said applet not initialized. So, I went through the forum and looked for anything similar and I saw that someone said to compile like:C:\jdk1.3.1_01 javac ClickMe.java Spot.java
So, I tried that, and I still have class files, but now I don't have the applet box showing anymore and I don't get any errors. I was successful when I did the Hello World applet, so I know it's not a class path problem or text prob. I was using typing appletviewer ClickMe.html
I'm getting so hungup on trying to get the applets to work I am losing track of how and why they are supposed to work. It is so discouraging especially when there doesn't seem to be anyone in particular to ask.
Does anyone have anything encouraging to offer?
I am using JDK 1.3 on WinXP (Java has been totally enabled without using the plug in) It has worked successfully.
Thanks in advance once again for your help.
Karen
I'm learning with the tutorial also ;)
Makes about 3 months I'm doing so, and from my experience, it is much more fun to create Programs than Applets.. I always work with Swing and it is a pain to use it inside Applets (but Swing is really great to create GUIs..) Learning how to build Jar and how to use Swing helps you building up Jar files that run like EXEs ;) That gives good results!
Similar Messages
-
I have tried uninstalling and installing itunes several times following the outlined tutorial. During part of the installation i get a message that recommends me get in contact help/support and concludes with HRESULT:0x800736B3 ...................any ideas?
The links on this Support page may be of help: http://www.apple.com/support/itunes/install/
-
Does The Java Programming Language, Third Edition include the contents of The Java Tutorial, Third Edition: A Short Course on the Basics ?
Contact the Documentation Team
-
Question about scope in the enum example in the Java Tutorial
Hi,
On page http://java.sun.com/docs/books/tutorial/java/javaOO/enum.html of the Java tutorial the enumeration MONDAY is not prefixed with the enum name when it is used in the function tellItLikeItIs.
public class EnumTest {
Day day;
public EnumTest(Day day) {
this.day = day;
public void tellItLikeItIs() {
switch (day) {
case MONDAY: System.out.println("Mondays are bad.");
break;
case FRIDAY: System.out.println("Fridays are better.");
break;How does the compiler know that MONDAY is the same as Day.MONDAY? Is it because of
switch(day)Then later in the main MONDAY must be prefixed with Day. I removed Day. and it did not compile. Why is Day. necessary in main but not in tellItLikeItIs?
public static void main(String[] args) {
EnumTest firstDay = new EnumTest(Day.MONDAY);
firstDay.tellItLikeItIs();Thank you.swtich is a special case.
The label for each 'case' of a switch
will infer based on the type of switch value
switch(d) {
case MONDAY:
case TUESDAY:
will automatically refer to the MONDAY and TUESDAY
corresponding to d's type. -
Need help understanding a line of code from the Java Tutorial
Here is the code I have seen in the Reflection Tutorial:
import java.lang.reflect.*;
class SampleInvoke {
public static void main(String[] args) {
String firstWord = "Hello ";
String secondWord = "everybody.";
String bothWords = append(firstWord, secondWord);
System.out.println(bothWords);
public static String append(String firstWord, String secondWord) {
String result = null;
Class c = String.class;
Class[] parameterTypes = new Class[] {String.class};
Method concatMethod;
Object[] arguments = new Object[] {secondWord};
try {
concatMethod = c.getMethod("concat", parameterTypes);
result = (String) concatMethod.invoke(firstWord, arguments);
} catch (NoSuchMethodException e) {
System.out.println(e);
} catch (IllegalAccessException e) {
System.out.println(e);
} catch (InvocationTargetException e) {
System.out.println(e);
return result;
}There are 2 lines I do not understand (but once I understand one, I'll understand the other).
Here they are:
Class[] parameterTypes = new Class[] {String.class};
Object[] arguments = new Object[] {secondWord};Any explanation will be greatly appreciated :)There are 2 lines I do not understand (but once I
understand one, I'll understand the other).
Here they are:
Class[] parameterTypes = new Class[]
{String.class};
Object[] arguments = new Object[]
{secondWord};
the first line simply creates an array of objects, the objects are of type Class. It then places the object referenced in the brackets into the array. -
http://java.sun.com/docs/books/tutorial/getStarted/index.html
the applet can not run.I can't get it to run either, on IE nor on Mozilla Firebird (and yes, both are Java 2-capable and I know how to set both up and they both do run Java applets).
This is the error that I get:java.lang.NoClassDefFoundError: ParseException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source) -
Why the java tutorial is no longer available for dowbload ?
thanks
sabre150 wrote:
java_2006 wrote:
thanksInteresting. I'm wondering what the verb 'to dowbload' means.Interesting. I'm wondering what the verb 'to dowbload' means.
Sorry. I meant 'download' -
Couldn't understand "Collections" with the Java Tutorial of sun..
I've been reading the tutorials since a long time to learn without having to ask too many questions ;)
Although, I couldn't understand the way "collections" are useful, and how they can be used!
If anyone can throw in an example, and explain it! It'll be very helpful to me!
Thanks!http://www.phrantic.com/scoop/tocint.htm
The richard baldwin tutorials are very good, especially his series on Collections. -
Java tutorial - helps, problem is i don't understand the API
I don't understand the JAVA Tutorials or the API
Take two steps back.
Buy a book on basic Java Programming. You need to understand the concepts behind programming before you should start reading the API.
But kudos for at least trying to read the API.
Now look at the column on the left, and follow the link called [url http://developer.java.sun.com/developer/onlineTraining/] Tutorials
and then the link titled [url http://java.sun.com/docs/books/tutorial/index.html]The Java Tutorial (Java Series).
And finally read through the sections starting with [url http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html]Your First Cup of Java.
Then once you have been through all of that, come back and ask for clarification
on any specific points that you have trouble understanding.
Finally (Because the Finally always gets executed) Try taking a class in java programming.
regards -
Dear Friends
I am stuck in CONFIGURATION PHASE of EHP5 Upgrade.
The ABAP phase has been completed but stuck in the Java processing INPUT_ADM_USER_PWD
"unable to execute the SDT request Java_EE operation configure on
hostname dbserver1 instance 02 Modules execution failed.
Execution of the unit PREPARE failed. Connection to the Upgrade Tool was closed."
TROUBLE TICKET LOG
Trouble Ticket Report
Installation of enhancement package 1 for SAP NetWeaver 7.0
SID................: $(/J2EE/StandardSystem/SAPSystemName)
Hostname...........: $(/J2EE/SAPGlobalHost)
Install directory..: $(/J2EE/StandardSystem/SAPSIDDirectory)
Upgrade directory..: $(/JUMP/DIR/MAIN)
Database...........: $(/J2EE/DBSystem/DBInfoName)
Operating System...: $(/J2EE/StandardSystem/ServiceInstance/BCCentralServicesInstanceHost/OpSysType)
JDK version........: $(/SystemProperties/JavaVersion) $(/SystemProperties/JavaVendor)
SAPJup version.....: $(/MAIN_VERSION)
Source release.....: $(/ER_CODE)
Target release.....: $(/J2EE/ShadowSystem/Version)
Start release SP...: $(/J2EE/StandardSystem/SPLevel)
Target release SP..: $(/J2EE/ShadowSystem/SPLevel)
Current usages.....: $(/J2EE/StandardSystem/Usages/StrCurrentUsages)
ABAP stack present.: $(/J2EE/StandardSystem/BCSystemPresent)
The execution of ended in error.
Could not perform operation on secure store. See previous messages.
Could not perform operation on secure store. See previous messages.
Class com.sap.security.core.server.secstorefs.SecStoreFS method createStoreWithEncryption has thrown the exception com.sap.security.core.server.secstorefs.FileIOException
com.sap.security.core.server.secstorefs.FileIOException: I/O error on file "e:\usr\sap\PRD\SYS\global\security\data\JUpgrade.key".
java.io.FileNotFoundException: e:\usr\sap\PRD\SYS\global\security\data\JUpgrade.key (The system cannot find the path specified)
More information can be found in the log file .
Use the information provided to trouble-shoot the problem. There might be an OSS note providing a solution to this problem. Search for OSS notes with the following search terms:
com.sap.sdt.util.secstore.SecureStoreException
Could not perform operation on secure store. See previous messages.
INPUT_ADM_USER_PWD
INIT
PREPARE
NetWeaver Enhancement Package Installation
SAPJup
Java Enhancement Package Installation
Regards
Anwer Waseem
Edited by: Anwer Waseem on Nov 9, 2011 11:48 PMTROUBLE TICKET LOG
Trouble Ticket Report
Installation of enhancement package 1 for SAP NetWeaver 7.0
The execution of ended in error.
Could not perform operation on secure store. See previous messages.
Could not perform operation on secure store. See previous messages.
Class com.sap.security.core.server.secstorefs.SecStoreFS method createStoreWithEncryption has thrown the exception com.sap.security.core.server.secstorefs.FileIOException
com.sap.security.core.server.secstorefs.FileIOException: I/O error on file "e:\usr\sap\PRD\SYS\global\security\data\JUpgrade.key".
java.io.FileNotFoundException: e:\usr\sap\PRD\SYS\global\security\data\JUpgrade.key (The system cannot find the path specified)*
its locating on drive e:\ which is wrong directory, the global directory are avaiable on drive S:\; this is the reasons that processing are ending with error.
Please advise how to resolve ASAP.
More information can be found in the log file .
Use the information provided to trouble-shoot the problem. There might be an OSS note providing a solution to this problem. Search for OSS notes with the following search terms:
com.sap.sdt.util.secstore.SecureStoreException
Could not perform operation on secure store. See previous messages.
CHECK_PREPARE_UNIT
Regards
Anwer Waseem -
RE: SEARCH Task 4 & 5 in the Toolbox Tutorial 11.5.10
Hi,
I'm following the Toolbox Tutorial 11.5.10 but I’m using my own workspace and project, thus different data.
I get the following error:
Message was edited by:
user552030I just forgot the output form the OC4J server
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
C:\p5455514_11i_G.....................\jdevhome\jdev\system9.0.3.5.1453\oc4j-config\server.xml
[waiting for the server to complete its initialization...]
Ready message received from Oc4jNotifier.
Embedded OC4J startup time: 5812 ms.
Auto-deploying OA Framework web application deployment descriptor (New server version detected)...
Oracle9iAS (9.0.3.1.0) Containers for J2EE initialized
TIME: runregion: initialization [0 ms]
Tutalii: C:\p5455514_11i_GENERIC\jdevbin\jdev\appslibrt\iasjoc.zip archive
ICX DIAGNOSTIC: FND_TOP = C:\p5455514_11i_GENERIC\jdevhome\jdev\dbc_files\
ICX DIAGNOSTIC: application_id = 665
ICX DIAGNOSTIC: responsibility_id = 20667
ICX DIAGNOSTIC: security_group_id = 0
ICX DIAGNOSTIC: mEncryptedSessionID = s1UTz4qgCHm8bekP7kN2a8Qx:S
ICX DIAGNOSTIC: mSessionID = 2045438067
ICX DIAGNOSTIC: mTransactionID = 1554489126
TIME: runregion: session and transaction creation [2000 ms]
java.lang.IllegalArgumentException: Unknown signal: ALRM
at sun.misc.Signal.<init>(Signal.java:126)
at oracle.apps.fnd.framework.AppsDiagnosticsHandler.install(AppsDiagnosticsHandler.java:44)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.initializeSignalHandler(OAApplicationModuleImpl.java:473)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.<clinit>(OAApplicationModuleImpl.java:463)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:37)
at oracle.jbo.common.JBOClass.forName(JBOClass.java:141)
at oracle.jbo.common.JBOClass.findCustomClass(JBOClass.java:153)
at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:828)
at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:771)
at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:517)
at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:456)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:313)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:269)
at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:649)
at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:232)
at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:359)
at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.createStaticAKApplicationModule(OAJSPApplicationRegistry.java:369)
at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.getStaticAKApplicationModuleSync(OAJSPApplicationRegistry.java:344)
at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.getStaticAKApplicationModule(OAJSPApplicationRegistry.java:333)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:855)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534) -
Hey there ! i have a question , i am following the JavaEE Tutorial 9.1 (sep.2007), and i am wondering if the examples in this book (Duke's Bookstore, Duke's Bank, CoffeeBreak) can be deployed using BEA Weblogic Server 9.2 or newer (even maybe imported into their BEA Workshop instead of NetBeans?)...and if this can be done,do you have any ideas on how...or what is the best approach?
Thank you in advance !neodude wrote:
Hey there ! i have a question , i am following the JavaEE Tutorial 9.1 (sep.2007), and i am wondering if the examples in this book (Duke's Bookstore, Duke's Bank, CoffeeBreak) can be deployed using BEA Weblogic Server 9.2 or newer (even maybe imported into their BEA Workshop instead of NetBeans?)...and if this can be done,do you have any ideas on how...or what is the best approach?
If it can't be done, the Java EE spec is a lie. You should be able to deploy any Java EE app on a compliant app server.
The trick is writing the code so it doesn't depend on which app server you're using and adding the app-specific configuration that you need.
You should be able to add in a weblogic-application.xml and be good to go.
Best advice? Try it.
% -
Java Tutorial Enum Types Example
The Java Tutorial example Planet (http://docs.oracle.com/javase/tutorial/java/javaOO/enum.html), includes the following expression as the denominator of a ratio: EARTH.surfaceGravity(). Could someone please explain how this works. It appears to send the previously defined EARTH constant to the surfaceGravity method with the result being returned to the place where the expression is located. However, normally it is the thing to the right of the dot operator that is sent somewhere and the result is returned to the thing to the left of the dot. Cheers.
It appears to send the previously defined EARTH constant to the surfaceGravity methodNo. It calls the surfaceGravity() method on the EARTH item, which is a final variable, not a constant.
normally it is the thing to the right of the dot operator that is sent somewhere and the result is returned to the thing to the left of the dot.Complete nonsense.
1. The thing to the left of the dot is evaluated
2. The thing to the right of the dot is invoked with the value of the thing to the left of the dot as the value of 'this'
3. The thing to the left of the dot is also used to identify the class containing the method if it's a class name. In this case it isn't, it is a variable.
4. The result of the thing to the right of the dot is returned to as an operand to the containing expression. -
How can I get the java 2D java2D tutorials�H
How can I get the java 2D java2D tutorials which I dont need lookup it online?
The download link for all the Java tutorial is here:
http://java.sun.com/docs/books/tutorial/ -
"The java class is not found:" post clone
Hi.
I've just cloned an 11.5.10.2 environment from one AIX5.2 server running 9.2.0.7 to another server at the same AIX and RDBMS level.
After running the clone steps, the application was automatically started and I was able to access it via Self Service, forms, run concurrent requests etc - in short, I had a working system.
Now, however, when I try to stop or start the application using adstrtal.sh/adstpall.sh, I hit the following:
"The java class is not found: oracle/apps/ad/autoconfig/ServiceControl
Check logfile /data/testcomn/admin/log/TEST_ireaix2/05011011.log for details"
On the command line, when I call the line the script is trying to execute:
/usr/java14/bin/java -classpath "${CLASSPATH}:${JAVA_TOP}:${FND_TOP}/java/3rdparty/stdalone/xmlparserv2.zip" oracle.apps.ad.autoconfig.ServiceControl -e /oracle/testappl/admin/TEST_ireaix2.xml -u apps/<PASS> -m 2 -l yadda –debug
I'm able to bypass this particular error and some of the application processes do start but not all of them and obviously I still have an underlying Java/environment issue.
Any suggestions gratefully received.
Rgds,
JesCheck logfile /data/testcomn/admin/log/TEST_ireaix2/05011011.log for details"What does the log file say?
Maybe you are looking for
-
New to the forums, Need a liitle HELP!
I have a IPHONE 3G S 32gig. After reading all the Battery issues. Can you tell me if I have a problem or not. I use phone to Check mail, Play a few games, Check weather ect... Talk on phone about an 45-60 min a day. I let my phone go to zero percent
-
Data Recovery from 80 GB MBA Harddrive
Hi all, a few days ago I used my MBA as usual and suddently Mail kept saying that there was some problem and then the whole computer was very slow all of a sudden. So I rebooted it. Bad idea. It would not boot anymore. The harddrive made some clickin
-
My LR4 beta problems. File is a NEF, overexposed image for testing. I did try this on several files and different OS (well, still Windows 7 32 bit, but not the same machine). Exposure set to -5, Whites set to 0. Now Whites is set just to -1. The jump
-
My computer goes to sleep whenever it wants to...and I can't wake it up, it wakes up on its on, it actually just shutoff while Im writing about it shutting off if anyone knows how to fix this let me know PowerBook Mac OS X (10.4.4)
-
Changing date on a solaris system.
Hi guys, one easy question. I need to change the time/date on several solaris servers running oracle 9. My question is if I need to stop the databases after doing the change or not. Is it going to affect in any way the normal working of the oracle sy