| | |
Shared class in java.
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jun 2008
Posts: 46
Reputation:
Solved Threads: 1
I have many projects in a software. Although some files and classes are shared within these projects, there are classes used by most of these projects. How do i creat classes that can be shaed among different projects . Is there anything in java that can function the same as 'modules' in vb.net?
Thanks a lot.
Thanks a lot.
Create a seperate Project with some classes and then you can import these classes like you import any other class:
The only difference is that you will be importing your classes with their packages.
You can take the .class files (in their folder/package) or create a jar file with the classes. Then add that to the classpath of the project you want them to be used.
Java Syntax (Toggle Plain Text)
import java.util.*
The only difference is that you will be importing your classes with their packages.
You can take the .class files (in their folder/package) or create a jar file with the classes. Then add that to the classpath of the project you want them to be used.
Check out my New Bike at my Public Profile at the "About Me" tab
![]() |
Similar Threads
- java assignment problem- need pro helps. (Java)
- Need help with Array sorting using Java Servlet (Java)
- Why there is no "local static variable" in JAVA is any alternate available for that (Java)
- Java script errors with IE & Mozilla (Web Browsers)
- java database connectivityl (Java)
- IE shuts down and leaves message on desktop (Viruses, Spyware and other Nasties)
- Hijackthis report, I just don't know (Viruses, Spyware and other Nasties)
- 62.214.197.166 wants to send email through java (Viruses, Spyware and other Nasties)
- JAVA OPENSTR.A & Trojan.ByteVerify (Viruses, Spyware and other Nasties)
Other Threads in the Java Forum
- Previous Thread: Java Help
- Next Thread: hey everybody,m an it student from india,n I'm in great trouble.Pls help!
Views: 367 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for Java
911 addressbook android api append apple applet application arguments array arrays automation binary bluetooth character chat class classes client code component csv database detection draw eclipse error event exception file fractal ftp game givemetehcodez graphics gui helpwithhomework html ide image input integer j2me japplet java javaarraylist javaprojects jmf jni jpanel julia linux list loop map method methods mobile netbeans newbie number object objects oracle oriented os panel print problem program programming project projects recursion replaydirector reporting researchinmotion return robot scanner score screen se server set size sms socket sort sql stream string swing test threads time transfer tree ubuntu windows






