Travel Fans
Go Back   Computer Juice Computer Software General Software Chat

Register

 Default 

Java




Reply
 
Thread Tools
  #1  
Old 3rd Jan 2008, 17:50
Donor VIP
Posts: 1,884
 
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 Member
Posts: 693
 
well i wanna learn...
  #3  
Old 21st Jan 2008, 06:34
Donor VIP
Posts: 698
 
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 VIP
Posts: 1,285
 
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 VIP
Posts: 1,884
 
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 VIP
Posts: 1,285
 
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 VIP
Posts: 1,884
 
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 VIP
Posts: 1,285
 
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 VIP
Posts: 1,884
 
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 VIP
Posts: 1,884
 
wait you said javac thats to compile them there are already compiled
__________________
Im not a Geek!, Im Educated! - www.FossForums.com
Reply

Register

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



Translations Powered by Powered by Google
Arabic Bulgarian Chinese 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 Taiwanese Thai Turkish Ukrainian

Copyright ©2006 - 2010 Computer Juice.

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