java sdk1.3.1 help please..

hans007

Lifer
Feb 1, 2000
20,212
18
81
i made this program for school, and well it works find and all.


its called Puzzle.java


i type javac Puzzle.java
and it should just make

Puzzle.class but it makes


Puzzle$1.class through Puzzle$8.class and Puzzle.class

and it seems like it needs them all. this really sucks since my ftp wont let me upload files with a $ in them

can anyone help me fix it.
 

thenewnoise

Senior member
Mar 27, 2001
494
0
0
its suppoed to do that because you are declairing things inside the main file. im tired right now and i cant think of the actual answer, but its suppoed to do that.
 

hans007

Lifer
Feb 1, 2000
20,212
18
81
ya i know my ftp sucks. i wanted to put them online so people could play it. oh well i guess icould re do the functions in some kludged up way. screw it.


i knew about anonymous inner classes, i didnt know they did that though
 

ThisIsMatt

Banned
Aug 4, 2000
11,820
1
0


<< ya i know my ftp sucks. i wanted to put them online so people could play it. oh well i guess icould re do the functions in some kludged up way. screw it.


i knew about anonymous inner classes, i didnt know they did that though
>>

Is this you UCLA ftp? And they're teaching Java? But you can't upload files with $ in them? Hmmmm...

No one can play it online anyways, they still have to download it and run it with the JDK at this point, so you might as well zip it or JAR it...unless you make it into an applet.
 

hans007

Lifer
Feb 1, 2000
20,212
18
81
nah i have a .html file so that it can play since i wrote it as an applet . crap it doesnt even work in IE locally. gay