![]() |
|
#1
|
|||
|
|||
Help with classeshi,
I have a programme which has 3 classes. i have all 3 in different class files. how can i use the other two classes from the one which contains my main method? thank u in advance!! |
|
#2
|
||||
|
||||
Re: Help with classesIf the classpath is properly set, then those other classes should be visible to the class with main().
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
|||
|
|||
Re: Help with classesbut when i try to compile, the class with main it gives me an error!
|
|
#4
|
||||
|
||||
Re: Help with classesHow are you compiling? [gcj, eclipse, or some other tool?]
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#5
|
|||
|
|||
Re: Help with classescompiling with gcj. should i import the classes to the main method? if so what is the way. the test classes for all 3 compiles fine. but i cannot put them together!
|
|
#6
|
||||
|
||||
Re: Help with classesQuote:
Code:
HTH __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#7
|
|||
|
|||
Re: Help with classesthanks a lot!!!!!! it worked at last!!
|
|
#8
|
||||
|
||||
Re: Help with classesNote too, that you can also compile by simply using the javac [java compile] command:
Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
2nd Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Plz anyone help to fix the linking errors: | dathatreya | MS Visual C++ / MFC Forum | 0 | 03-Apr-2008 00:19 |
| Trouble with Classes Within Classes | jdbrine | CPP / C++ Forum | 2 | 29-Jun-2006 15:26 |
| Classes initiation | kdsXchris | CPP / C++ Forum | 3 | 05-Jun-2006 03:07 |
| Re: Derived FLTK Classes | cable_guy_67 | FLTK Forum | 0 | 26-Jun-2005 20:07 |
| Assistance with classes... | Bravebird | CPP / C++ Forum | 7 | 27-Apr-2005 13:17 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The