My question is this is there a way to put all the Java Imports in a jar file, so when you make a Java Program no need to import the files individually????
EDIT: I mean like
import java.awt.*;
import java.awt.event.*;
into a jar file where u don't need to type out the import java.awt.*; everytime
You can use netbeans to do that http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/
If you're thinking of something like a C/C++ global include file that allows a single import statement at the top of files -- then no.
However, your Java IDE should be capable of adding imports for you automatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With