Java Glossary : SmartJ

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : S words : SmartJ.

SmartJ
Current version is 0.6. Crystalline Solutions' (Jonathan Revusky's) tool for launching class files as if they were EXE files under Windows and NT. SmartJ automatically finds a JVM to run on and automatically set up a CLASSPATH. It is much less picky about the input it accepts than java.exe.

It forgives most errors with current directory, classpath, package naming and extensions. Think of it as training wheels.

SmartJ allows you to switch between JDK 1.1 and 1.2 without messing with any environment variables. It's just SmartJ -1 Myclass or SmartJ -2 Myclass . Also, by default, it tells you what JVM you're using and what the CLASSPATH is, which may help you avoid confusion about what JVM and/or build you are currently testing.

SmartJ makes the CLASSPATH mess much more manageable. In fact, SmartJ pretty much eliminates the need for a CLASSPATH environment variable, since it transparently sets up a valid CLASSPATH every time you launch a java class. After installing SmartJ, .class files can be launched by a double-click in the Windows explorer, whether they are set up on the CLASSPATH or not!

SmartJC is a replacement for Javac that has the extra feature that you can also give it one or more directories as an argument. It recompiles all out-of-date source files in a directory and its subdirectories. Before invoking the compiler, it looks at all the source files and, based on the package they are in, it sets up a valid CLASSPATH. So again, you don't need a CLASSPATH set up. In fact, SmartJC in many cases will eliminate the need to use any complicated make or build tools.

If smartj picks up the wrong jvm, use regedit to make sure that HKEY_LOCAL_MACHINE\Software\JavaSoft entries are pointing to your desired jvm.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 4170.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/smartj.html J:\mindprod\jgloss\smartj.html