Help....Simple Applets Not Working..
I have been trying to get this simple HelloWorld applet to execute with no luck. I have confirmed that my Java Plug-In is setup with the IE Browser and JRE C:\Java\j2sdk1.4.1_1. I also enabled the Java console and JIT compiler for virtual machine enabled in the IE Browser.
When I select the HTML template, I get an "Loading Java Applet Failed" error message. When I type java HelloWorld, "Exception in thread "main" java.lang.NoSuchMethodError: main" error even if change "paint" to "main". When I type appletviewer HelloWorld.class, nothing happens.
I have been going through some of the tutorials and getting the same results. The tutorials have suggested that I install the Java Plug-In, which I have.
Can someone tell me what I am doing wrong? Thanks....
I have the following setup:
HelloWorld.bat
SET PATH=.;C:\Java\j2sdk1.4.1_01\bin;
SET CLASSPATH=.;C:\Java\j2sdk1.4.1_01\bin;C:\Program Files\ora91\jdbc\lib\classes12.zip
javac HelloWorld.java
HelloWorld.java
import java.applet.Applet;
import java.awt.Graphics;
public class HelloWorld extends Applet {
public void paint (java.awt.Graphics g) {
g.drawString("Hello, world!", 100, 25);
HelloWorld.html
<html>
<body>
<applet code="HelloWrold.class" height=50 width=400></applet>
</body>
</html
This problem has been correct...Please ignore...
Thanks,
cbs
Similar Messages
-
Help - Simple mask not working in Flash CS4
Hi everyone,
Thanks for taking a minute to read my post.
I am creating a very simple mask using motion tweening. I created some text on a layer and made it a masked layer. Then I created a mask layer which consists of a circle that will span across the text. When I play the movie the circle does not show up at all in the frames the mask layer spans (it's purple on a black background) and the circle does not move across the text like I told it to with the motion tweening. I don't know why it's not working. For some reason the circle isn't showing on the stage at all and it's not moving across the text. I don't know if I have it set up wrong on the timeline or what. Here's the steps I followed to create the mask:
1.insert a new layer in which I named it mask and click frame 1 on this layer
2. select the oval tools on the tools panel and set the stroke to none
3. set the fill color to purple
4. draw a circle and click the selection tool and drag a marquee around the circle to select it.
5. click insert on the menu bar, click motion tween then click ok in dialog box about converting it to a symbol to be tweened
6. click the last frame in the mask layer and drag the circle to the end of the line of text
7.click mask on the timeline to select the mask layer, click modify on the menu bar, point to timeline then click layer properties
8. verify the show check box is selected in the name section, click the lock check box to select it, click the mask option button in he type section, then click ok.
9. play the movie in which the circle object covers the text on the masked layer as it moves across the stage
Thanks for your help!
ashmic19Update 8-2-10: In play mode the text was still visible when it shouldn't be but once I tested the movie the mask worked correctly with the text. So problem solved
-ashmic19
Thanks for all who viewed this. I finally figured out why it wasn't working. I had the mask layer locked. But now the circle is moving across the text but the text is viewable when it shouldn't be until the circle moves across it. How come it's doing this?
ashmic19
Message was edited by: ashmic19
Message was edited by: ashmic19 -
Please help, simple query not working
Have the following script that I would like to run at multiple sites and create table columns if necessary:
DECLARE
table_name VARCHAR2 (30) := 'SITE_STATISTICS';
column_name VARCHAR2 (30) := 'SITE_MONTH';
column_data_type VARCHAR2 (30) := 'DATE';
column_count INTEGER;
dynamic_sql VARCHAR2 (4000);
BEGIN
SELECT COUNT (1)
INTO column_count
FROM SYS.USER_TAB_COLUMNS utc
WHERE utc.table_name = table_name AND utc.column_name = column_name AND utc.data_type = column_data_type;
SYS.DBMS_OUTPUT.ENABLE (4000);
IF column_count = 0 THEN
dynamic_sql :=
ALTER TABLE SITE_STATISTICS ADD (SITE_MONTH DATE);
EXECUTE IMMEDIATE dynamic_sql;
ELSE
DBMS_OUTPUT.put_line ('Not running Dynamic Sql, found ' || column_count || ' corresponding rows in sys.user_tab_columns');
END IF;
END;
EXIT;
At a given site I do not have the given column, and running the select from sys.user_tab_columns manually returns 0 rows. However, when I run this script it outputs the following:
Not running Dynamic Sql, found 128 corresponding rows in sys.user_tab_columns
What's going on!?Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> create table abc (c1 number(10));
Table created.
SQL> DECLARE
2 table_name1 VARCHAR2 ( 30 ) := 'ABC';
3 column_name1 VARCHAR2 ( 30 ) := 'SITE_MONTH';
4 column_data_type1 VARCHAR2 ( 30 ) := 'DATE';
5 column_count INTEGER;
6 dynamic_sql VARCHAR2 ( 4000 );
7 BEGIN
8 SELECT COUNT ( 1 )
9 INTO column_count
10 FROM SYS.user_tab_columns utc
11 WHERE utc.table_name = table_name1
12 AND utc.column_name = column_name1
13 AND utc.data_type = column_data_type1;
14
15 SYS.DBMS_OUTPUT.ENABLE ( 4000 );
16
17 IF column_count = 0 THEN
18
19 dynamic_sql :='ALTER TABLE ABC ADD (SITE_MONTH DATE,SHIP_CONTANK INTEGER,SHIP_CONRAIL INTEGER)';
20
21 EXECUTE IMMEDIATE dynamic_sql;
22 ELSE
23 DBMS_OUTPUT.put_line ( 'Not running Dynamic Sql, found '
24 || column_count
25 || ' corresponding rows in sys.user_tab_columns'
26 );
27 END IF;
28 END;
29 /
PL/SQL procedure successfully completed.
SQL> desc abc
Name Null? Type
C1 NUMBER(10)
SITE_MONTH DATE
SHIP_CONTANK NUMBER(38)
SHIP_CONRAIL NUMBER(38) -
Installing Java 7 from Oracle just made Applets not work, how to fix
Mac 10.7.4. I tried installing Java 7 from Oracle, but all it did was remove half the prefs from Java and make Applets not work. How do I revert/reinstall Java?
Here you go!
Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
I am employed by HP -
Help viewer does not work after update to 10.4.4
Since updating to 10.4.4 my Help viewer does not work, and all of the troubleshooting fixes suggested in other threads have not had any success in resolving this. I've noted that when I go to Users>Library>Documentation>Help there is no mac.help file - can someone tell me if that means that I've lost the file altogether and need to reinstall it? I get to the first screen of the viewer, but the links from there don't work. Thanks for any help that you can provide!
Thanks for your suggestion. I downloaded OnyX and ran the cleaning function. After restarting, I opened Help and once again the first screen appeared fine. But again most of the links did not work, though those under the "What's New" heading did work. I might add that I had previously tried a variety of suggestions posted in another thread, which included deleting from the caches folder in Home>Library several files such as com.apple.helpui and help.plist in the Preferences folder. (As noted in my previous post this evening, I also created another user but that also did not have any effect.) Any other ideas? Thanks
-
Help button is not working in Infoview
Hi All ,
I am working on BO XI R2 environment and help button is not working properly in my infoview.
I can get help files from Admin console but the same is not true with infoview.I got two different server installations, one of them its working fine but not for the other.
I checked for help files in IIS and they are there , even I verified web.config file as well for infoview and it also seems to be correct.
Please advice what could be the reason.
Thanks,
Vivek.CLOSED
-
F4 help key does not work in ESS on ITS in Portal
Hello All,
F4 help key is not working in all iviews in ESS in Portal.When i try to press it nothing happens and no pop up appears,kindly please suggest wt might be the cause of this error? Iam tired struggling with this issue and not able to trace out reason for the same.My Email Id is [email protected] .Plz revert at earliest.
regards,
SaumyaHi,
This kind of problem is known when webgui is being started from an IAC, e.g. HRWPC_FC_EXEC
You have to set parameter ~webgui_popups 1 in the service file of this IAC.
BR,
Disha.
Pls reward points for helpful answers. -
Java applet not working savevid keepvid
Hi all,
I'm sure I'm not the only one who has been confounded by Java applets not working in certain download web services; in my case, keepvid.com and savevid.com to download copies of youtube videos. It has been a huge headache and even debilitating in my case. I teach film and video to middle schoolers, and we often use youtube as a resource for our class projects.
I found a solution today, I think, and wanted to share it:
I installed the browser called "Torch" and it seems to work fine, so far.thanx 4 replying
using the browser to view Applet is not recomended that is because if u change the the source-code and recompile the applet then run it using the broswer it will run the old-version
Also i've found the solution here
http://www.cs.utah.edu/classes/cs1021/notes/lecture03/eclipse_help.html -
In P6 P6 Help link is not working
Hi,
My P6 help link is not working in help menu.
P6 Library and Support link are working.
As suggested in another discussion i tried to update link in Admin>Application setting and restarted weblogic, But system is still taking some other link than i defined in application setting.
Can anybody help?Hi,
We worked on this issue ,
Solution:
In the P6 EPPM Admin application in the corresponding configuration, In P6 Help url we have modified the url from http://hostname:8203/p6help/help to http://hostname:8203/p6help/ and we restarted the P6 server in weblogic console.
Then everything fine now,
Regards
Kumar -
PLz help 7key is not working suddenli in my N-73
PLz help 7key is not working suddenli in my N-73 and the 7 is simply displaying on the screen help plz....
BirlaOk.
It sounds as if something is keeping the key pressed, and that can be down to 2 reasons.
The phone has got wet and the internal key is corroded and fused, making a constant connection
or
Dust or dirt in under that key and are having the same affect
Either one of these reasons will need to be fixed at a Nokia Care Point as it will involve taking the phone apart.
You can find the nearest NCP to you at the Store Locator
Use the drop down list on the right to find your country.
If it is either of these faults, the NCP will probably charge you as it wont be a warranty fault, but a customer created fault.
Hope this helps.
My posts are my opinion and in no way the direct views of Nokia.
If my posts are helpful, please give me some KUDOS using the green star on the left. -
Help front camera not working on my sons iPod touch 5g
Help front camera not working on my sons iPod touch 5g
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
- Make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
Simple pass not working windows 10
simple pass not working, does not recognise windows password at start to gain access to system, no flashing light, driversin software only go to windows 8.1.How do I reset the lot or reinstall simple pass?
I have an HP Elitebook 8760W. I cannot get Simplepass or Windows Hello to recognize my Validity VFM-471 fingerprint reader. I'm not sure I have the right driver installed for the Validity hardware. Could someone please point me to a link for the proper Win 8.1 driver? I'm trying to make this work on Windows Pro 64 Bit. I have tried everything to make this work. Both Simplepass and Window Hello recognize the fingerprint read while I'm setting it up, but when rebooting and trying to log in with the fingerprint function - it doesn't act like it is even working. I've tried all of the suggestions on the instructions to no avail. The Laptop works just fine without the fingerprint scanner, and I guess I can live without it, but I've been used to using it on Windows 7 for so long, I'd like to have it working agian. Any suggestions or hellp would be greatly appreciated. Thanks in advance.
-
My Help Viewer is not working for mac help
My Help viewer is not working for mac help. Everytime i choose mac help the window opens then closes. But when i open another help like safari help it opens and works fine. If i switch it back to mac help the window just closes and the application quits.
If you know how to fix please telll!noname212,
Using "Search Discussions" with the term "Help Viewer" you will lead you to numerous posts which refer to Troubleshooting Help Viewer by Dr. Smoke.
Good Luck
;~) -
I JUST UPDATED MY ITUNES TO ITUNES10.5 ON MY LAPTOP(WIN7)
THE HELP FEATURE DOES NOT WORK.
I ALSO UPDATED MY IPAD2 3G WIFI 64GIG TO IOS5 AND NOW NONE OF MY PURCHASED APPS WORK??????????I have seen this before. You need to update the apps in your app store, and once they are updated, they will work again.
-
Applet not working - Please Help!
Hi everybody,
I'm trying to make this calculator program work as an applet AND as an application. I tried using:
public class calcg extends JApplet implements ActionListener{ in many different ways, but it didn't work. Can sombody help me make it work?
Below is the source code for my calculator program.
Thanks in advance,
-Maria
ps-You can also e-mail me at [email protected]
// calculator
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
public class calcg extends JFrame implements ActionListener
private JButton one, two, three, four, five, six, seven,
eight, nine, zero, dec, eq, plus, minus, mult, div, clear;
private JLabel output, spacer;
private Container container;
private String operation;
private double num1, num2, answer;
private boolean clear_flag = false;
//set up GUI
public calcg()
//Create Title
super("Calculator");
JPanel container = new JPanel();
container.setLayout( new FlowLayout( FlowLayout.CENTER
output = new JLabel("");
output.setBorder(new MatteBorder(2,2,2,2,Color.gray));
output.setPreferredSize(new Dimension(1,26));
getContentPane().setBackground(Color.white);
getContentPane().add( "North",output );
getContentPane().add( "Center",container );
//set up spacer
spacer = new JLabel( "
container.add( spacer );
//set up clear
clear = new JButton( "CE" );
clear.addActionListener(this);
container.add( clear );
//set up seven and register its event handler
seven = new JButton( "7" );
seven.addActionListener(this);
container.add( seven );
//set up eight
eight = new JButton( "8" );
eight.addActionListener(this);
container.add( eight );
//set up nine
nine = new JButton( "9" );
nine.addActionListener(this);
container.add( nine );
//set up div
div = new JButton( "/" );
div.addActionListener(this);
container.add( div );
//set up four
four = new JButton( "4" );
four.addActionListener(this);
container.add( four );
//set up five
five = new JButton( "5" );
five.addActionListener(this);
container.add( five );
//set up six
six = new JButton( "6" );
six.addActionListener(this);
container.add( six );
//set up mult
mult = new JButton( "*" );
mult.addActionListener(this);
container.add( mult );
//set up one
one = new JButton( "1" );
one.addActionListener(this);
container.add( one );
//set up two
two = new JButton( "2" );
two.addActionListener(this);
container.add( two );
//set up three
three = new JButton( "3" );
three.addActionListener(this);
container.add( three );
//set up minus
minus = new JButton( "-" );
minus.addActionListener(this);
container.add( minus );
//set up zero
zero = new JButton( "0" );
zero.addActionListener(this);
container.add( zero );
//set up dec
dec = new JButton( "." );
dec.addActionListener(this);
container.add( dec );
//set up eq
eq = new JButton( "=" );
eq.addActionListener(this);
container.add( eq );
//set up plus
plus = new JButton( "+" );
plus.addActionListener(this);
container.add( plus );
//Set size and make visible
setSize( 190, 225 );
setVisible( true );
setResizable( false );
public void actionPerformed(ActionEvent ae)
JButton but = ( JButton )ae.getSource();
//Handle what button was pushed
//Action for dec button
if( but.getText() == "." )
//if dec is pressed, first check to make shure there
is not already a decimal
String temp = output.getText();
if( temp.indexOf( '.' ) == -1 )
output.setText( output.getText() + but.getText() );
//Action for clear button
else if( but.getText() == "CE" )
output.setText( "" );
operation = "";
num1 = 0.0;
num2 = 0.0;
//Action for plus button
else if( but.getText() == "+" )
operation = "+";
num1 = Double.parseDouble( output.getText() );
clear_flag = true;
//output.setText( "" );
//Action for minus button
else if( but.getText() == "-" )
operation = "-";
num1 = Double.parseDouble( output.getText() );
clear_flag = true;
//output.setText( "" );
//Action for mult button
else if( but.getText() == "*" )
operation = "*";
num1 = Double.parseDouble( output.getText() );
clear_flag = true;
//output.setText( "" );
//Action for div button
else if( but.getText() == "/" )
operation = "/";
num1 = Double.parseDouble( output.getText() );
clear_flag = true;
//output.setText( "" );
//Action for eq button
else if( but.getText() == "=" )
num2 = Double.parseDouble( output.getText() );
//handle addition
if( operation == "+" )
answer = num1 + num2;
else if( operation == "-" )
answer = num1 - num2;
else if( operation == "*" )
answer = num1 * num2;
else if( operation == "/" )
answer = num1 / num2;
//display answer in output field
output.setText( String.valueOf( answer ) );
clear_flag = true;
operation = "";
//Default action should only be used for numbers
else
if( clear_flag == true )
output.setText( "" );
clear_flag = false;
output.setText( output.getText() + but.getText() );
//execute application
public static void main( String args[] )
calcg application = new calcg();
application.setDefaultCloseOperation(
JFrame.EXIT_ON_CLOSE );
}Ok I think I know what you problem is.
First move the main method above the calcg method ok. Just to make it easy.
Then you did something like
public static void main( String args[] )
calcg application = new calcg();
>> application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); }}
the arrows indicate your error. You need to put the setDefaultCloseOperation inside the calcg method then you would put this:
public static void main(String[] args)
calcg application = new calcg();
application.calcg();
see you call the application to run the calcg method which will start your program.
Maybe you are looking for
-
Log Reader Agent error "could not execute sp_replcmds' and causes stack dump
Publisher/Subscriber db: SQL 2008 R2, 2000 compatability mode Distributor database is on separate server. (note: There is another database on this instance that is running replication without error, it is not in compatibility mode) After snapshot a
-
Installing BiApps for the 1st time
Hi All, I'm brand new related the BI Apps question, but reading its documentation "Installation Guide for Oracle Business Intelligence Applications" at page 15 it's mentioned that BI Apps has prerequisites such as OBIEE and ODI. However, i'll
-
I'm trying to download sheet music and need to run sibelius scorch add-on in 32 bit model. I have a mac running lion and the latest safari. I have downloaded FireFox 6 and run it in 32 bit but still I can't see the music score to print. Can anyone he
-
Hi there, I am doing some work on OTL and have a requirement where timesheets submitted by a manager are auto approved and timesheets which are submitted by a timekeeper are also auto approved. Obviously this can be achieved through workflow customiz
-
Imovie 09 upgrade, now filmstrip is all gray, won't load events
After upgrading from imovie 08 to 09, the filmstrip in the top box is all grayed out except for when I move the cursor over it, then it just shows the video for that particular 5 second block. The rest remains gray. And when I try to load the events