- summary: compiler not founn, althouh tools.jar set and path to bin --> compiler not found, although tools.jar set and path to bin
system : Windows 7, jdk1.7.0_01, , drjava-20100913-r5387
yet anoter one of those who can't compile. I looked up all tips in the internet but can't make it work:
I un-installed all Java on my PC. Then I installed a fresh JDK. This is in the folder
C:/Program Files/ Java/ jdk1.7.0_01 and contains of course the bin and lib directories.
I did set the path to the bin directory in the windows environment variables. I can check when I go into a command window and just type javac: Javac comes up with all sort of parameters to use so that seems to work.
I have installed the latest DRJVA stable version for windows and it says in the little compiler box : NONE. I have set under preference the path to the tools.jar in the lib directory. Actually I browsed in the dr java preference line and found the tools .jat there in the lib location.
I have not found any other tips in the internet who to make it work.
DRJAVA continues not to find the compiler.
By the way I have tried all this on 2 different PC's now, both under windows 7, one with 32 bit and one with 64 bit system. The problems is always there. I'm desperate. We are asked from the school to use DRJVA and I won't work.
By the way: just to make clear that the JDK is working: I created a little 'HelloWorld' program, compiled it with javac HelloWorld.java and ran it with java HellowWorld. So , all this works but DRJAVA won't work. What else can I check or do ?
We need to know a little bit more about your system to help you. Please start DrJava, click on the "Help" menu, and select the "About" menu item. In the dialog that opens, please click the "Copy System Properties" button. This will put some information into your clipboard. Please paste that information here in a new comment.
Thanks,
The DrJava Team
here the DRJAVA systems properteis. In addition I placed 2 files which show the java bin and lib directory.
System Properties:
DrJava Version drjava-20100913-r5387
DrJava Build Time 20100913-2126
drjava.debug.port = 49282
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = C:\Program Files\Java\jre7\bin
java.vm.version = 21.1-b02
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = ;
java.vm.name = Java HotSpot(TM) Client VM
file.encoding.pkg = sun.io
user.country = DE
user.script =
sun.java.launcher = SUN_STANDARD
sun.os.patch.level =
java.vm.specification.name = Java Virtual Machine Specification
user.dir = <anonymized user.home>
java.runtime.version = 1.7.0_01-b08
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = C:\Program Files\Java\jre7\lib\endorsed
os.arch = x86
java.io.tmpdir = C:\Users\HAUSME~1\AppData\Local\Temp\
line.separator = "\u000d\u000a"
java.vm.specification.vendor = Oracle Corporation
user.variant =
os.name = Windows 7
sun.jnu.encoding = Cp1252
java.library.path = C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\RSA SecurID Token Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_01\bin;.
sun.awt.enableExtraMouseButtons = true
java.specification.name = Java Platform API Specification
java.class.version = 51.0
sun.management.compiler = HotSpot Client Compiler
os.version = 6.1
user.home = <anonymized user.home>
user.timezone = Europe/Berlin
java.awt.printerjob = sun.awt.windows.WPrinterJob
file.encoding = Cp1252
java.specification.version = 1.7
java.class.path = <anonymized user.home>\drjava-stable-20100913-r5387.jar
user.name = <anonymized user.name>
java.vm.specification.version = 1.7
sun.java.command = <anonymized user.home>\drjava-stable-20100913-r5387.jar
java.home = C:\Program Files\Java\jre7
sun.arch.data.model = 32
user.language = de
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode, sharing
java.version = 1.7.0_01
java.ext.dirs = C:\Program Files\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path = C:\Program Files\Java\jre7\lib\resources.jar;C:\Program Files\Java\jre7\lib\rt.jar;C:\Program Files\Java\jre7\lib\sunrsasign.jar;C:\Program Files\Java\jre7\lib\jsse.jar;C:\Program Files\Java\jre7\lib\jce.jar;C:\Program Files\Java\jre7\lib\charsets.jar;C:\Program Files\Java\jre7\classes
java.vendor = Oracle Corporation
file.separator = \
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
java.rmi.server.hostname = 127.0.0.1
sun.desktop = windows
sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
DrJava configuration file
In resource bundle edu.rice.cs.drjava.config.options:
nothing
In shadowed configuration:
javac.location = C:\\Program Files\\Java\\jdk1.7.0_01\\lib\\tools.jar
key.delete.next = [shift DELETE]
key.delete.previous = [shift BACK_SPACE]
recent.files = [C:\\Users\\<anonymized user.name>\\javahelloworld.java]
window.height = 776
window.width = 1296
window.x = -8
window.y = -8
window.state = 6
last.dir = C:\\Users\\<anonymized user.name>
last.interactions.dir = C:\\Users\\<anonymized user.name>
tabbedpanes.state = 640 400 700 400
dialog.drjava.survey.enabled = false
new.version.notification = stable versions only
new.version.notification.last = 1322500431115
drjava.survey.notification.last = 1321786901663
drjava.survey.result.last = http://www.drjava.org/submit-usage.php?rev=5387&os.name=Windows%207&os.version=6.1&java.version=1.7.0_01&java.vendor=Oracle%20Corporation
file.ext.registration = always
Used memory: about 22,62 megabytes
Free memory: about 8,41 megabytes
Total memory: about 31,03 megabytes
Total memory can expand to: about 232 megabytes
Number of processors/cores: 1
Compiler Discovery Log:
From config: JDK library 7.0_1-OpenJDK at C:\Program Files\Java\jdk1.7.0_01\lib\tools.jar, boot classpath: null
makeFromRuntime: compilerAdapter=null
compiler=edu.rice.cs.drjava.model.compiler.NoCompilerAvailable
compilers found: 0
no compilers found, adding NoCompilerAvailable library
From runtime: invalid JDK library 7.0_1
Dir added: C:\Program Files\Java\jre7
Dir added: C:\Program Files\Java
Dir added: C:\Program Files
Dir added: C:\Program Files\Java
Dir added: C:\Program Files
Dir added: C:\Program Files\Java
Dir added: C:\Program Files
Dir not added: C:\Java
Dir added: <anonymized user.home>
Dir not added: C:\Java
Dir added: <anonymized user.home>
Dir not added: C:\System\Library\Frameworks\JavaVM.framework\Versions
Dir not added: C:\usr\java
Dir not added: C:\usr\j2se
Dir not added: C:\usr
Dir not added: C:\usr\local\java
Dir not added: C:\usr\local\j2se
Dir not added: C:\usr\local
Dir not added: C:\usr\lib\jvm
Dir not added: C:\usr\lib\jvm\java-6-sun
Dir not added: C:\usr\lib\jvm\java-1.5.0-sun
Dir not added: C:\usr\lib\jvm\java-6-openjdk
Dir not added: C:\home\javaplt\java\Linux-i686
File added: C:\Program Files\Java\jdk1.7.0_01\lib\tools.jar
File not added: C:\Program Files\Java\jdk1.7.0_01\Classes\classes.jar
File not added: C:\Program Files\Java\lib\tools.jar
File not added: C:\Program Files\Java\Classes\classes.jar
File not added: <anonymized user.home>\javahelloworld.java\lib\tools.jar
File not added: <anonymized user.home>\javahelloworld.java\Classes\classes.jar
File not added: <anonymized user.home>\jdk-7u1-nb-7_0_1-windows-ml.exe\lib\tools.jar
File not added: <anonymized user.home>\jdk-7u1-nb-7_0_1-windows-ml.exe\Classes\classes.jar
File not added: <anonymized user.home>\jdk-7u1-windows-i586.exe\lib\tools.jar
File not added: <anonymized user.home>\jdk-7u1-windows-i586.exe\Classes\classes.jar
File not added: C:\Program Files\JavaMint\langtools\dist\lib\classes.jar
File not added: C:\Program Files\JavaMint\langtools\dist\lib\tools.jar
File not added: C:\usr\local\soylatte\lib\classes.jar
File not added: C:\usr\local\soylatte\lib\tools.jar
File not added: C:\usr\local\JavaMint\langtools\dist\lib\classes.jar
File not added: C:\usr\local\JavaMint\langtools\dist\lib\tools.jar
MINT_HOME not set
File added: <anonymized user.home>\drjava-stable-20100913-r5387.jar
Result:
Found library: JDK library 7.0_1-OpenJDK at C:\Program Files\Java\jdk1.7.0_01\lib\tools.jar, boot classpath: null
From search: duplicate JDK library 7.0_1-OpenJDK at C:\Program Files\Java\jdk1.7.0_01\lib\tools.jar, boot classpath: null
The DrJava version that you are using, drjava-20100913-r5387, is too old. It does not support Java 7. Please download our latest weekly version from http://www.cs.rice.edu/~javaplt/drjavarice/weekly/
Please let us know if this helped you. Thank you for using DrJava!
Mathias, I still need you help: when I go to this link http://www.cs.rice.edu/~javaplt/drjavarice/weekly I can download a ZIP archive drjava-weekly-20111121-r5456 .jar
which contains 5500 files and folders. What should I do next? I can find a r5456.exe file.
So far I went to the homepage www.drjava.org and downloaded the latest stable windows version which is drjavaxxxxxr5387.exe and I just started that.
I don't know what to do with the 5500 files and the only readme file within the 5500 does'nt tell me anything
thnaks for yopur advise. Bert (opalaspapa)
Hi Bert,
The jar file should not be unpacked. A jar file, while it can be treated as a zip file, is a Java executable file. Please delete the ~5500 files you unpacked out of the jar file.
Please try right-clicking on the jar file, clicking on Open With, and then selecting something like "Java (TM) platform binary".
If you can't find a way to run the jar file, I'll build an exe file for you. Later today.
--Mathias
Here's the exe file, you can try that too:
http://www.cs.rice.edu/~javaplt/drjavarice/drjava-weekly-20111121-r5456.exe
Mathias, you made me happy. It worked even without the exe file you sent. Thanks for all the support during the last 2 days. I really appreciate your help and the speed of your responses.
Just as a remark: would'nt it be good if the official drjava.org page offers this latest version which works with the latest official java version ? I would imagine around the globe there must be many running into the same problem. Anyway, thanks a lot. In school, I definitely will shhre my new knowledge because my peers might look for a solution , too.
May I ask you , in which part of the world you are located ? I live in Cologne , Germany.
Bert
Log in to post a comment.