Downloaded file junit-4.1.jar (you can do it by clicking the link).Ģ. One student reported not being able to create and use a JUnit tester he got the error message: package amework does not exist. Uninstall SDK4.7 and download JDK 5.0 and use its tools.jar. If your computer has jre5.0, then it cannot use SDK 4.7. It may mean that your computer has two different systems on it and is an inconsistent state. Please remove or make sure it appears in the correct subdirectory of the classpath. Third, here is documention on using DrJava on the web.ĭo you get a message that looks like this?īad class file: C:\Program Files\Java\jre1.5.0\lib\rt.jar(javax/swing/JFrame.class)Ĭlass file has wrong version 49.0, should be 48.0 Watch the ProgramLive lectures! They are short and informative. Second, information on using DrJava is in Appendix I of the course text and in Chapter 19 Chapter 19 of the accompanying CD ProgramLive. The demos given in class and in the demo sessions should help, if you take notes. If you are experiencing this problem, visit the following site and see whether downloading and ioinstalling JarFix will solve the problem:
The problem may be that some other application has "stolen" the right to be executed when the jar file is doubleclicked. If you are on a WIndows System, double-clicking the jar file may not do the right thing. You can then run DrJava as a normal application.
Warning: you may get a dialog saying something about a "JAR archive security check". You'll be sent to select a location (mirror) from which to download DrJava. On a Windows PC, click either on the jar file or on Stable Windows App. Use the Current Stable Release (runs with JDK1.5.0, see above). The page will show you several versions of DrJava. Or use the newer Beta version: drjava-beta-20100711-r5314.jarĪlternatively, download the latest version of DrJava from this web page (by clicking the link). This version supports Java 5, and Java 6, and we advise using it.
The easiest thing for you to do is to download this version of DrJava: drjava-stable-20090821-r5004.jar. to translate them into a "machine language" so they can be run by the Java Runtime Environment. The Java Development Kit allows you to "compile" Java programs -i.e. The Java Runtime Environment allows you to run Java programs, for example, Java programs that are contained in "jar files". This give you the Java Runtime Environment (JRE) AND the Java Development Kit (JDK). Several download options will be offered.
If you are using a PC running a version of Windows, chances are that you don't have the JDK yet, and you can download it here.
If you have a Macintosh with Mac OS X, you almost certainly have the JDK installed already, so you don't have to download it.
You will need the Java software development kit (JDK) from the Sun website.