Crosswords1 min ago
error :- javac: file not found: micky.java Usage: javac <options> <source files>
2 Answers
I have written this program...
/*
appletviewer
<applet code="micky" width=1024 height=1000 >
</applet>
*/
import java.awt.*;
import java.applet.Applet;
public class micky extends Applet
{
Font f;
public void init()
{
f = new Font( "COMIC SANS MS", Font.ITALIC, 20);
System.out.println(" MICKY MOUSE ");
}
public void start()
{
}
public void stop()
{
}
public void paint(Graphics g)
{
g.setColor(Color.black);
g.fillOval(60,50,50,50);
g.fillOval(170,50,50,50);
g.fillOval(90,70,100,90);
g.setColor(new Color(255,218,185));
g.fillOval(110,80,60,80);
g.fillArc(90,70,100,90,180,180);
g.fillOval(90,110,30,8);
g.fillOval(160,110,30,8);
g.setColor(Color.black);
int x[]={130,150,140,130};
int y[]={80,80,90,80};
int n=4;
g.fillPolygon(x,y,n);
g.setColor(Color.white);
g.fillArc(120,95,18,40,0,180);
g.fillArc(140,95,18,40,0,180);
g.setColor(Color.black);
g.fillRoundRect(130,115,20,10,50,50)…
g.fillOval(125,100,10,15);
g.fillOval(145,100,10,15);
g.drawArc(115,120,50,20,190,170);
g.drawArc(113,127,15,20,95,85);
g.drawArc(153,127,15,20,85,-85);
g.fillArc(130,130,30,20,180,200);
g.setColor(Color.red);
g.fillArc(138,145,15,10,10,165);
}
public void destroy()
{
}
}
.
but the error like "javac: file not found: micky.java Usage: javac <options> <source files>" comes...
.
all programs are running perfectly, but which uses applet can't be compiled.
.
I have re-installed java , bt it still not working.
.
Please help me.
/*
appletviewer
<applet code="micky" width=1024 height=1000 >
</applet>
*/
import java.awt.*;
import java.applet.Applet;
public class micky extends Applet
{
Font f;
public void init()
{
f = new Font( "COMIC SANS MS", Font.ITALIC, 20);
System.out.println(" MICKY MOUSE ");
}
public void start()
{
}
public void stop()
{
}
public void paint(Graphics g)
{
g.setColor(Color.black);
g.fillOval(60,50,50,50);
g.fillOval(170,50,50,50);
g.fillOval(90,70,100,90);
g.setColor(new Color(255,218,185));
g.fillOval(110,80,60,80);
g.fillArc(90,70,100,90,180,180);
g.fillOval(90,110,30,8);
g.fillOval(160,110,30,8);
g.setColor(Color.black);
int x[]={130,150,140,130};
int y[]={80,80,90,80};
int n=4;
g.fillPolygon(x,y,n);
g.setColor(Color.white);
g.fillArc(120,95,18,40,0,180);
g.fillArc(140,95,18,40,0,180);
g.setColor(Color.black);
g.fillRoundRect(130,115,20,10,50,50)…
g.fillOval(125,100,10,15);
g.fillOval(145,100,10,15);
g.drawArc(115,120,50,20,190,170);
g.drawArc(113,127,15,20,95,85);
g.drawArc(153,127,15,20,85,-85);
g.fillArc(130,130,30,20,180,200);
g.setColor(Color.red);
g.fillArc(138,145,15,10,10,165);
}
public void destroy()
{
}
}
.
but the error like "javac: file not found: micky.java Usage: javac <options> <source files>" comes...
.
all programs are running perfectly, but which uses applet can't be compiled.
.
I have re-installed java , bt it still not working.
.
Please help me.
Answers
Best Answer
No best answer has yet been selected by rashah91. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.Related Questions
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.