lesser-equity

Magazine
Go Back   Computer Juice > Computer Software > General Software Chat


Register


Reply
 
Thread Tools
  #1  
Old 3rd Jan 2008, 17:50
Donor Group
 
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
__________________
Im not a Geek!, Im Educated! - www.FossForums.com
__________________

My System: Cewy's wonder macine

Processor(s):
intel core 2 quad q6600 @ 3.2Ghz
Motherboard:
asus p5q deluxe
RAM Memory:
4 gig ocz 1066mhz sli
Graphics Card(s):
nvidia evga 8800 ultra ko
Sound Card:
onboard
Hard Drive(s):
750 gig seagate, 32meg cache
Optical Drive(s):
3 asus dvd writers, lightscribe
Case / PSU:
lian-li armoursuite pc-p60
Cooling:
tuniq tower
Network / Internet:
dual gigabit lan ports
Monitor(s):
24" dell 2408wfp
Operating System(s):
winfail vista 64 | ubuntu/arch linux
  #2  
Old 3rd Jan 2008, 19:24
Banned Group
 
well i wanna learn...
__________________

My System: #

Processor(s):
intel p4
Motherboard:
ecs 915pla2
RAM Memory:
1gb
Graphics Card(s):
ati radeon x1050
Sound Card:
diamond xtreme 7.1
Hard Drive(s):
160gb
Optical Drive(s):
dvd-rom combo drive dvd+/-rw
Case / PSU:
antech/x-power585
Cooling:
air
Network / Internet:
wireless
Monitor(s):
philips 109b6 19" CRT
Operating System(s):
windows xp
  #3  
Old 21st Jan 2008, 06:34
Donor Group
 
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

Processor(s):
Intel Quad Core Q6600
Motherboard:
Abit IN9
RAM Memory:
2x 1GB Patriot
Graphics Card(s):
XFX 8800GTS 320MB
Sound Card:
Hard Drive(s):
750GB Internal, 400GB External
Optical Drive(s):
LG 20x DVD re-writer
Case / PSU:
Enermax Infiniti 650W
Cooling:
Zalman HSF
Network / Internet:
Monitor(s):
LG 19" LCD
Operating System(s):
Windows XP Media Centre 2005
  #4  
Old 21st Jan 2008, 07:08
Donor Group
 
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  
Old 21st Jan 2008, 08:57
Donor Group
 
well when i try create a subclass under the correct package i get a no class defound error ill go into detail later
__________________
Im not a Geek!, Im Educated! - www.FossForums.com
  #6  
Old 21st Jan 2008, 12:38
Donor Group
 
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  
Old 21st Jan 2008, 12:43
Donor Group
 
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
__________________
Im not a Geek!, Im Educated! - www.FossForums.com
  #8  
Old 21st Jan 2008, 13:47
Donor Group
 
javac com\google\stuff\Test2.java

then

java com.google.stuff.Test2
5
Attached Files
File Type: zip com.zip (1.7 KB, 5 views)
__________________
I think I am a signature, therefore I exist!
I believe a higher being has me as a signature...

  #9  
Old 21st Jan 2008, 13:50
Donor Group
 
its ok ill compile them in jcreator then run them in cmd
__________________
Im not a Geek!, Im Educated! - www.FossForums.com
  #10  
Old 21st Jan 2008, 13:50
Donor Group
 
wait you said javac thats to compile them there are already compiled
__________________
Im not a Geek!, Im Educated! - www.FossForums.com
Reply

Register
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright ©2006 - 2009 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2009 Jelsoft Enterprises Ltd. SEO by vBSEO ©2009, Crawlability, Inc.