![]() |
|
#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... |
|
#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 |
![]() |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Java 6 Update 14 | evilfantasy | Virus, Spyware & Security | 3 | 29th May 2009 13:01 |
| Getting rid of old Java | Bubba | General Software Chat | 7 | 15th Jan 2009 16:51 |
| Java or .NET | Munish426 | Web Design, Hosting & SEO | 7 | 1st Aug 2008 06:20 |
| Java Question | darksidechaos | Web Browsers & FTP Clients | 7 | 3rd Oct 2007 01:57 |
| Can anyone help me with java? | michal23 | General Software Chat | 2 | 9th Sep 2007 04:43 |
| Thread Tools | |
| |