OS is Windows X as wel as Windows 7 using drjava-beta-20160913-225446.
I have used both Windows 7 and Windows X with Google Chrome Version 79.0.3945.117 (Official Build) (64-bit) on Windows 7 and Google Chrome Version 79.0.3945.130 (Official Build) (64-bit) on Windows 10.
On both computers I compiled the pgm and on both systems I received the same error. Also I have various others modules created with good results untill now.
Thanks
Chris Pretorius
I attached the pgm that failed to run
Below the copy pasted inform from DrJava's about box on Windows 7
DrJava Version : drjava-20160913-225446
DrJava Build Time: 20160913-225446
DrJava Configuration File: C:\Users\Chrispy.drjava
Used memory: about 133.75 megabytes
Free memory: about 253.25 megabytes
Total memory: about 387 megabytes
Total memory can expand to: about 7.10 gigabytes
Copyright (c) 2001-2016, JavaPLT group at Rice University (javaplt@rice.edu)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the names of DrJava, the JavaPLT group, Rice University, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This software is Open Source Initiative approved Open Source Software.
Open Source Initative Approved is a trademark of the Open Source Initiative.
Copy System Properties
awt.toolkit sun.awt.windows.WToolkit
drjava.debug.port 49976
file.encoding Cp1252
file.encoding.pkg sun.io
file.separator \
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path C:\Users\Chrispy\Downloads\drjava-beta-20160913-225446.exe
java.class.version 52.0
java.endorsed.dirs C:\Program Files\Java\jre1.8.0_231\lib\endorsed
java.ext.dirs C:\Program Files\Java\jre1.8.0_231\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home C:\Program Files\Java\jre1.8.0_231
java.io.tmpdir C:\Users\Chrispy\AppData\Local\Temp\
java.library.path C:\Program Files\Java\jre1.8.0_231\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Java\jre1.8.0_231\bin;.
java.rmi.server.hostname 127.0.0.1
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.8.0_231-b11
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.8
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.8.0_231
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.8
java.vm.vendor Oracle Corporation
java.vm.version 25.231-b11
line.separator
os.arch amd64
os.name Windows 7
os.version 6.1
path.separator ;
sun.arch.data.model 64
sun.awt.enableExtraMouseButtons true
sun.boot.class.path C:\Program Files\Java\jre1.8.0_231\lib\resources.jar;C:\Program Files\Java\jre1.8.0_231\lib\rt.jar;C:\Program Files\Java\jre1.8.0_231\lib\sunrsasign.jar;C:\Program Files\Java\jre1.8.0_231\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_231\lib\jce.jar;C:\Program Files\Java\jre1.8.0_231\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_231\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_231\classes
sun.boot.library.path C:\Program Files\Java\jre1.8.0_231\bin
sun.cpu.endian little
sun.cpu.isalist amd64
sun.desktop windows
sun.io.unicode.encoding UnicodeLittle
sun.java.command C:\Users\Chrispy\Downloads\drjava-beta-20160913-225446.exe
sun.java.launcher SUN_STANDARD
sun.jnu.encoding Cp1252
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level Service Pack 1
user.country US
user.dir C:\Users\Chrispy\Downloads
user.home C:\Users\Chrispy
user.language en
user.name Chrispy
user.script
user.timezone America/New_York
user.variant
In the original ticket I supplied info on the older version drjava-beta-20160913-225446 which was out of date and failed to worked.
The correct or current version that I used is as follows:
DrJava Version : drjava-20190813-220051
DrJava Build Time: 20190813-220051
DrJava Configuration File: C:\Users\Chrispy.drjava
Used memory: about 27.58 megabytes
Free memory: about 20.42 megabytes
Total memory: about 48 megabytes
Total memory can expand to: about 7.99 gigabytes
Copyright (c) 2001-2019, JavaPLT group at Rice University (javaplt@rice.edu)
All rights reserved.
I'm sorry for this mistake
Thanks
Chris Pretorius
In the original ticket I supplied info on the older version drjava-beta-20160913-225446 which was out of date and failed to worked.
The correct or current version that I used is as follows:DrJava Version : drjava-20190813-220051
DrJava Build Time: 20190813-220051
DrJava Configuration File: C:\Users\Chrispy.drjava
Used memory: about 27.58 megabytes
Free memory: about 20.42 megabytes
Total memory: about 48 megabytes
Total memory can expand to: about 7.99 gigabytes
Copyright (c) 2001-2019, JavaPLT group at Rice University (javaplt@rice.edu)
All rights reserved.
I'm sorry for this mistake
ThanksChris Pretorius
[support-requests:#360] Current document is out of sync with the Interactions Pane and should be recompiled!
Status: open
Group: v1.0 (example)
Labels: Current document is out of sync with the Interactions Pane and should be recompiled!
Created: Sat Jan 18, 2020 12:39 AM UTC by Chris Pretorius
Last Updated: Sat Jan 18, 2020 12:39 AM UTC
Owner: nobody
Attachments:
OS is Windows X as wel as Windows 7 using drjava-beta-20160913-225446.
I have used both Windows 7 and Windows X with Google Chrome Version 79.0.3945.117 (Official Build) (64-bit) on Windows 7 and Google Chrome Version 79.0.3945.130 (Official Build) (64-bit) on Windows 10.
On both computers I compiled the pgm and on both systems I received the same error. Also I have various others modules created with good results untill now.
Thanks
Chris Pretorius
I attached the pgm that failed to run
Below the copy pasted inform from DrJava's about box on Windows 7
DrJava Version : drjava-20160913-225446
DrJava Build Time: 20160913-225446
DrJava Configuration File: C:\Users\Chrispy.drjava
Used memory: about 133.75 megabytes
Free memory: about 253.25 megabytes
Total memory: about 387 megabytes
Total memory can expand to: about 7.10 gigabytes
Copyright (c) 2001-2016, JavaPLT group at Rice University (javaplt@rice.edu)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the names of DrJava, the JavaPLT group, Rice University, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This software is Open Source Initiative approved Open Source Software.
Open Source Initative Approved is a trademark of the Open Source Initiative.
Copy System Properties
awt.toolkit sun.awt.windows.WToolkit
drjava.debug.port 49976
file.encoding Cp1252
file.encoding.pkg sun.io
file.separator \
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path C:\Users\Chrispy\Downloads\drjava-beta-20160913-225446.exe
java.class.version 52.0
java.endorsed.dirs C:\Program Files\Java\jre1.8.0_231\lib\endorsed
java.ext.dirs C:\Program Files\Java\jre1.8.0_231\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home C:\Program Files\Java\jre1.8.0_231
java.io.tmpdir C:\Users\Chrispy\AppData\Local\Temp\
java.library.path C:\Program Files\Java\jre1.8.0_231\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Java\jre1.8.0_231\bin;.
java.rmi.server.hostname 127.0.0.1
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.8.0_231-b11
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.8
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.8.0_231
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.8
java.vm.vendor Oracle Corporation
java.vm.version 25.231-b11
line.separator
os.arch amd64
os.name Windows 7
os.version 6.1
path.separator ;
sun.arch.data.model 64
sun.awt.enableExtraMouseButtons true
sun.boot.class.path C:\Program Files\Java\jre1.8.0_231\lib\resources.jar;C:\Program Files\Java\jre1.8.0_231\lib\rt.jar;C:\Program Files\Java\jre1.8.0_231\lib\sunrsasign.jar;C:\Program Files\Java\jre1.8.0_231\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_231\lib\jce.jar;C:\Program Files\Java\jre1.8.0_231\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_231\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_231\classes
sun.boot.library.path C:\Program Files\Java\jre1.8.0_231\bin
sun.cpu.endian little
sun.cpu.isalist amd64
sun.desktop windows
sun.io.unicode.encoding UnicodeLittle
sun.java.command C:\Users\Chrispy\Downloads\drjava-beta-20160913-225446.exe
sun.java.launcher SUN_STANDARD
sun.jnu.encoding Cp1252
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level Service Pack 1
user.country US
user.dir C:\Users\Chrispy\Downloads
user.home C:\Users\Chrispy
user.language en
user.name Chrispy
user.script
user.timezone America/New_York
user.variant
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/drjava/support-requests/360/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Support Requests: #360
IDK if this will help you or not, but I had the same problem with compilation not working. In my case, I am using a Linux system that has both OpenJDK and a manually installed Oracle JDK (extracted from a tarball obtained from java.com), along with some other JRE environments in various places. I "installed" the DrJava Version : drjava-20190813-220051 jar file and ran it from the command-line. I then clicked [ Manual Download ] when it asked about installing updates (drjava-beta-2019-220051).
DrJava reported that my compiler was JDK 8.0_222. Note, I don't know where that compiler came from. As far as I know, I didn't have that version installed. My OpenJDK was:
$ /bin/java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
I typed in a simple "Hello World" program, and every attempt to compile produced:
Compiler Output:
"Compilation completed."
This is a bug, because in fact compilation apparantly did not complete.
Clicking "Run" produced:
Interactions
Welcome to DrJava. Working directory is /home/krb/Projects/Software/java
Current document is out of sync with the Interactions Pane and should be recompiled!
>
Restarting DrJava, saving, clicking Reset, etc., would not clear the problem.
In any event, at some point I noticed the Console tab was full of messages like:
Console
Compiler is using classPath = '[/home/krb/Projects/Software/java, /home/apps/drjava/drjava-beta-20190813-220051.jar]'; bootClassPath = 'null'
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
At this point, I tried various things, but I focused on pointing DrJava to an Oracle Java JDK I had installed a few days ago. Everything I did was in Edit | Preferences ... | Resource Locations, though I beat around in there a while. All of the settings were "blank" before I started. Anyway, I eventually had some success after I'd set:
Web Browser
/usr/lib64/firefox/firefox
Web Browser Command
Tools.jar Location
/home/raid/apps/oracle/jdk-1.8.0_251/jre/lib/tools.jar
Display All Compiler Version [ ]
Extra Classpath
/home/raid/apps/oracle/jdk1.8.0_251/jre/lib
/home/raid/apps/oracle/jdk1.8.0_251/lib
At this point I decided to try to figure out the minimum required to get it working. After a lot of fudging around, I found it is sufficient just to set Tools.jar location, but with with one MAJOR caveat. You must BROWSE to the file using that dialog. YOU CANNOT JUST PASTE IN THE PATH! If you just paste in the path, it can look like it is set correctly, but the compiler will continue to not work. This was how I got the oracle jdk compiler to work.
Next, I set about to see if I could get OpenJDK to work. I searched my entire system for another tools.jar that belonged to OpenJDK, and did not find one. Then I realized I did not have the DEVEL OpenJDK package installed (on Mageia Linux 7).
java-1.8.0-openjdk-headless-1.8.0.252-1.b09.1.mga7
java-1.8.0-openjdk-1.8.0.252-1.b09.1.mga7
I installed:
java-1.8.0-openjdk-devel-1.8.0.252-1.b09.1.mga7
Now, even after resetting defaults, DrJava no longer says it is using JDK 8.0_222, but rather JDK 8.0-openjdk-1.8.0.252-1.b09.1.mga7.x86_64-OpenJDK, and everything works fine with NO customization to preferences!
I don't know where the heck JDK 8.0_222 came from. There's nothing on my system with that version. I rather suppose it is some internal thing in DrJava. I think the takeaway is, either you have to:
1) Point Tools.jar Location to tools.jar, making sure to browse to it and not just past in a path
2) Make sure you actually have a tools.jar installed if your system might split up the OpenJDK installation.
I know what I saw was with Linux and a .jar install of DrJava, and this might not be what you have, but perhaps the information will be helpful in offering you things to look at and try.