![]() |
|
#1
|
||||||||||||
|
||||||||||||
|
hey im currently doing java programming and was just wondering if anyone else is into java
__________________
i cant seem to get my subclasses to work in a package
My System: Cewy's wonder macine
|
|
#2
|
||||||||||||
|
||||||||||||
|
well i wanna learn...
__________________
My System: #
|
|
#3
|
||||||||||||
|
||||||||||||
|
me to me to Teach me Javi Master
__________________
__________________
"Dream as if you'll live forever, Live as if you'll die today"
My System: Puter
|
|
#4
|
|||
|
|||
|
Ok, what is wrong with the subclasses then?
Yes, I did Java for 6 years!
__________________
I think I am a signature, therefore I exist! I believe a higher being has me as a signature... |
|
#5
|
|||
|
|||
|
well when i try create a subclass under the correct package i get a no class defound error ill go into detail later
|
|
#6
|
|||
|
|||
|
If you mean at runtime, it could just be that you have not included the current directory "." in CLASSPATH.
__________________
I think I am a signature, therefore I exist! I believe a higher being has me as a signature... |
|
#7
|
|||
|
|||
|
right can you do me a favour
make 2 little pieces of code that bassically assign the value of 2 to 2 different integers package com.google.stuff; integer int1 = 2; integer int2 = 2; system.out.println(int1 + int2); and then extend that subclass so that integer 2 is now 3 and get it to display the new answer? this is just a rough piece of code so isn't syntax correct but i have spent weeks trying to get this to work so could you please make the 2 classes and post the code so that i can try with your code and see whats going wrong much appreetiated |
|
#8
|
|||
|
|||
|
javac com\google\stuff\Test2.java
then java com.google.stuff.Test2 5
__________________
I think I am a signature, therefore I exist! I believe a higher being has me as a signature... |
|
#9
|
|||
|
|||
|
its ok ill compile them in jcreator then run them in cmd
|
|
#10
|
|||
|
|||
|
wait you said javac thats to compile them there are already compiled
|