i cant print it before the error. i dont think u understand that i am saying.
again there are no error in eciples. in eciples the applet works and run fine.
problem is when i try to load the...
Type: Posts; User: hwoarang69
i cant print it before the error. i dont think u understand that i am saying.
again there are no error in eciples. in eciples the applet works and run fine.
problem is when i try to load the...
i dont know what u saying here. i am execute the code that has the problem which is my Main.java. on line 204. and i am keep adding println() statment but they have some value in it. i dont...
i still getting the same error on web. but when i use eclipse there is no error or no null.
i printed the value in paint method in frond middle and end. still no null.
yes and printed the value right after the line 204
on line 204: i printed the value of 'this'
on line 204: i printed the value of 'g'
on line 204: i printed the value of 'background_class'
they all have some values
i dont understand why in eclipse it have no error in Main.class but on web it gives me error.
great now new error:
Java Plug-in 10.17.2.02
Using JRE version 1.7.0_17-b02 Java HotSpot(TM)...
ah now its give me this error: any idea? i have the new version
Main.java
line205: public void paint(Graphics g) {
line206: background_class.paint(g, this);
line207: ground_class.paint(g);
no erros
just download new version of java. and errors are gone. but animation isnt moving and cant see my player. is this bc of not having jar file?
i asked do i need to download new version of java?
i already now applet dont have main method.
i asked do i need to download new version of java?
i already now applet dont have main method.
i dont now how to put them in jar files. i was trying to put them in jar files in last post. but than u said something about Applets are not executed with the java command.
--- Update ---
so i...
....so let me try again
here is my folder. it has all my java class and images and sounds.
1904
in my java_game_2.php
i am using this tag. now if it was only one file than it works fine with...
i am confuse
i though i cant make applet into jar files?
wait so i cant make applet into jar files?
i got rid of class-path and now it give me different error:
error: Main method not found in class Main, please define the main method as:
public static void main(String[]args)
but...
does this look right?
Manifest.txt
Main-Class: Main
Class-Path: C:\Users\dave\My Software\workspace\2D GAME 0\src\test.jar
what is class-path? is that the jar file path?
Manifest.txt
main-class: Main
1st line is main-class: Main
2nd line is enter
3rd line is enter
C:\Users\dave\My Software\workspace\2D GAME 0\bin>jar tf test1.jar
META-INF/
META-INF/MANIFEST.MF
Background.class
Enemy.class
Enemy_1.class
Ground.class
image/
image/background/...
1903
here is a error on cmd
if i click on "classpath" radio button. and enter "Background.class" in class name than:
#Searching the classpath for Background
#user.dir is: C:\Users\dave\Desktop
#Using classpath:...
#Searching C:\Users\dave\My Software\workspace\2D GAME 0\bin\test1.jar for image/background/background.png
image/background/background.png >>>> class NOT found! <<<<
# Found 1 classes. 1 NOT...
#Searching C:\Users\dave\My Software\workspace\2D GAME 0\bin\test1.jar for Background
Background
# Found 1 classes.
it have all of my class. also it have a extra file name...
give me error on cmd:
also try with no space defaultpackage\Background.class
still same error no such file..