Installation Error

218 views
Skip to first unread message

109_CSE_VENKATESH

unread,
Dec 29, 2021, 10:35:38 AM12/29/21
to Java™ Pathfinder

Hi JPF Community I installed gradle abut when I am trying to run ./gradlew buildJars I am getting errors related to sun.misc.JavaOISAccess eventhough I am using java 15.0.2.
Please can anyone help me to resolve this error.

fra...@cs.yorku.ca

unread,
Dec 29, 2021, 10:53:19 AM12/29/21
to Java™ Pathfinder
Since you are using the Gradle wrapper, you do not have to install Gradle.

JPF currently works with Java 8.  You can have multiple versions of Java on the same machine.  Make sure that JAVA_HOME points to Java 8 when you build JPF.

Rounak Sain

unread,
Dec 29, 2021, 11:04:16 AM12/29/21
to java-pa...@googlegroups.com
Hi 
I am new to open source .

I know java very well .
Can I contribute your project??


--

---
You received this message because you are subscribed to the Google Groups "Java™ Pathfinder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-pathfind...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/java-pathfinder/9ab67374-87dc-4c4a-961a-52ce3ef861c0n%40googlegroups.com.

fra...@cs.yorku.ca

unread,
Dec 29, 2021, 11:07:23 AM12/29/21
to Java™ Pathfinder
See the post "To get started" below.

109_CSE_VENKATESH

unread,
Dec 29, 2021, 11:36:10 AM12/29/21
to Java™ Pathfinder
Hi I tried using java 8 and its still showing the same error related to JavaOISAccess

109_CSE_VENKATESH

unread,
Dec 30, 2021, 8:40:19 AM12/30/21
to Java™ Pathfinder
I am getting 12 warnings and 1 error

HP-Notebook:~/Desktop/JPF_HOME/jpf-core$ javac -version
javac 1.8.0_311
HP-Notebook:~/Desktop/JPF_HOME/jpf-core$ java -version
java version "1.8.0_311"
Java(TM) SE Runtime Environment (build 1.8.0_311-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode)
HP-Notebook:~/Desktop/JPF_HOME/jpf-core$ ./gradlew

> Task :compileClassesJava FAILED
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/java/lang/ClassLoader.java:29: warning: CompoundEnumeration is internal proprietary API and may be removed in a future release
import sun.misc.CompoundEnumeration;
               ^
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/SharedSecrets.java:175: error: cannot find symbol
  public void setJavaObjectInputStreamReadString(sun.misc.JavaObjectInputStreamReadString ignored) {
                                                         ^
  symbol:   class JavaObjectInputStreamReadString
  location: package sun.misc
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/java/lang/ClassLoader.java:114: warning: CompoundEnumeration is internal proprietary API and may be removed in a future release
    return new CompoundEnumeration<URL>(resEnum);
               ^
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/JavaNetAccess.java:32: warning: URLClassPath is internal proprietary API and may be removed in a future release
    URLClassPath getURLClassPath (URLClassLoader ucl);
    ^
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/SharedSecrets.java:52: warning: JavaUtilJarAccess is internal proprietary API and may be removed in a future release
  private static JavaUtilJarAccess javaUtilJarAccess;
                 ^
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/SharedSecrets.java:60: warning: JavaOISAccess is internal proprietary API and may be removed in a future release
  private static JavaOISAccess javaOISAccess;
                 ^
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/SharedSecrets.java:61: warning: JavaObjectInputStreamAccess is internal proprietary API and may be removed in a future release
  private static JavaObjectInputStreamAccess javaObjectInputStreamAccess;
                 ^
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/SharedSecrets.java:82: warning: JavaUtilJarAccess is internal proprietary API and may be removed in a future release
  public static JavaUtilJarAccess javaUtilJarAccess() {
                ^
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/SharedSecrets.java:88: warning: JavaUtilJarAccess is internal proprietary API and may be removed in a future release
  public static void setJavaUtilJarAccess(JavaUtilJarAccess access) {
                                          ^
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/SharedSecrets.java:142: warning: JavaObjectInputStreamAccess is internal proprietary API and may be removed in a future release
  public static JavaObjectInputStreamAccess getJavaObjectInputStreamAccess() {
                ^
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/SharedSecrets.java:151: warning: JavaObjectInputStreamAccess is internal proprietary API and may be removed in a future release
  public static void setJavaObjectInputStreamAccess(JavaObjectInputStreamAccess access) {
                                                    ^
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/SharedSecrets.java:162: warning: JavaOISAccess is internal proprietary API and may be removed in a future release
  public static void setJavaOISAccess(JavaOISAccess access) {
                                      ^
/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/SharedSecrets.java:166: warning: JavaOISAccess is internal proprietary API and may be removed in a future release
  public static JavaOISAccess getJavaOISAccess() {
                ^
1 error
12 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileClassesJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
5 actionable tasks: 1 executed, 4 up-to-date

109_CSE_VENKATESH

unread,
Dec 31, 2021, 11:24:13 PM12/31/21
to Java™ Pathfinder
I am getting 3 errors and 30 warnings when I compile SharedSecrets.java and the error is cannot find symbol

HP-Notebook:~/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc$ javac SharedSecrets.java
SharedSecrets.java:55: error: cannot find symbol
  private static JavaIODeleteOnExitAccess javaIODeleteOnExitAccess;
                 ^
  symbol:   class JavaIODeleteOnExitAccess
  location: class SharedSecrets
SharedSecrets.java:119: error: cannot find symbol
  public static void setJavaIODeleteOnExitAccess(JavaIODeleteOnExitAccess jida) {
                                                 ^
  symbol:   class JavaIODeleteOnExitAccess
  location: class SharedSecrets
SharedSecrets.java:123: error: cannot find symbol
  public static JavaIODeleteOnExitAccess getJavaIODeleteOnExitAccess() {
                ^
  symbol:   class JavaIODeleteOnExitAccess
  location: class SharedSecrets
SharedSecrets.java:50: warning: Unsafe is internal proprietary API and may be removed in a future release
  private static final Unsafe unsafe = Unsafe.getUnsafe();
                       ^
SharedSecrets.java:50: warning: Unsafe is internal proprietary API and may be removed in a future release
  private static final Unsafe unsafe = Unsafe.getUnsafe();
                                       ^

SharedSecrets.java:52: warning: JavaUtilJarAccess is internal proprietary API and may be removed in a future release
  private static JavaUtilJarAccess javaUtilJarAccess;
                 ^
SharedSecrets.java:53: warning: JavaLangAccess is internal proprietary API and may be removed in a future release
  private static JavaLangAccess javaLangAccess;
                 ^
SharedSecrets.java:54: warning: JavaIOAccess is internal proprietary API and may be removed in a future release
  private static JavaIOAccess javaIOAccess;
                 ^
SharedSecrets.java:56: warning: JavaNetAccess is internal proprietary API and may be removed in a future release
  private static JavaNetAccess javaNetAccess;
                 ^
SharedSecrets.java:57: warning: JavaIOFileDescriptorAccess is internal proprietary API and may be removed in a future release
  private static JavaIOFileDescriptorAccess javaIOFileDescriptorAccess;
                 ^
SharedSecrets.java:58: warning: JavaNioAccess is internal proprietary API and may be removed in a future release
  private static JavaNioAccess javaNioAccess;
                 ^
SharedSecrets.java:59: warning: JavaAWTAccess is internal proprietary API and may be removed in a future release
  private static JavaAWTAccess javaAWTAccess;
                 ^

SharedSecrets.java:60: warning: JavaOISAccess is internal proprietary API and may be removed in a future release
  private static JavaOISAccess javaOISAccess;
                 ^
SharedSecrets.java:61: warning: JavaObjectInputStreamAccess is internal proprietary API and may be removed in a future release
  private static JavaObjectInputStreamAccess javaObjectInputStreamAccess;
                 ^
SharedSecrets.java:64: warning: JavaLangAccess is internal proprietary API and may be removed in a future release
  public static JavaLangAccess getJavaLangAccess() {
                ^
SharedSecrets.java:68: warning: JavaLangAccess is internal proprietary API and may be removed in a future release
  public static void setJavaLangAccess(JavaLangAccess jla) {
                                       ^
SharedSecrets.java:73: warning: JavaNetAccess is internal proprietary API and may be removed in a future release
  public static void setJavaNetAccess(JavaNetAccess jna) {
                                      ^
SharedSecrets.java:77: warning: JavaNetAccess is internal proprietary API and may be removed in a future release
  public static JavaNetAccess getJavaNetAccess() {
                ^

SharedSecrets.java:82: warning: JavaUtilJarAccess is internal proprietary API and may be removed in a future release
  public static JavaUtilJarAccess javaUtilJarAccess() {
                ^
SharedSecrets.java:88: warning: JavaUtilJarAccess is internal proprietary API and may be removed in a future release
  public static void setJavaUtilJarAccess(JavaUtilJarAccess access) {
                                          ^
SharedSecrets.java:93: warning: JavaIOAccess is internal proprietary API and may be removed in a future release
  public static void setJavaIOAccess(JavaIOAccess jia) {
                                     ^
SharedSecrets.java:99: warning: JavaIOAccess is internal proprietary API and may be removed in a future release
  public static JavaIOAccess getJavaIOAccess() {
                ^
SharedSecrets.java:108: warning: JavaNioAccess is internal proprietary API and may be removed in a future release
  public static void setJavaNioAccess(JavaNioAccess a) {
                                      ^
SharedSecrets.java:111: warning: JavaNioAccess is internal proprietary API and may be removed in a future release
  public static JavaNioAccess getJavaNioAccess() {
                ^
SharedSecrets.java:130: warning: JavaIOFileDescriptorAccess is internal proprietary API and may be removed in a future release
  public static void setJavaIOFileDescriptorAccess(JavaIOFileDescriptorAccess jiofda) {
                                                   ^
SharedSecrets.java:133: warning: JavaIOFileDescriptorAccess is internal proprietary API and may be removed in a future release
  public static JavaIOFileDescriptorAccess getJavaIOFileDescriptorAccess() {
                ^

SharedSecrets.java:142: warning: JavaObjectInputStreamAccess is internal proprietary API and may be removed in a future release
  public static JavaObjectInputStreamAccess getJavaObjectInputStreamAccess() {
                ^
SharedSecrets.java:151: warning: JavaObjectInputStreamAccess is internal proprietary API and may be removed in a future release
  public static void setJavaObjectInputStreamAccess(JavaObjectInputStreamAccess access) {
                                                    ^
SharedSecrets.java:155: warning: JavaAWTAccess is internal proprietary API and may be removed in a future release
  public static void setJavaAWTAccess (JavaAWTAccess jaa){
                                       ^
SharedSecrets.java:158: warning: JavaAWTAccess is internal proprietary API and may be removed in a future release
  public static JavaAWTAccess getJavaAWTAccess(){
                ^

SharedSecrets.java:162: warning: JavaOISAccess is internal proprietary API and may be removed in a future release
  public static void setJavaOISAccess(JavaOISAccess access) {
                                      ^
SharedSecrets.java:166: warning: JavaOISAccess is internal proprietary API and may be removed in a future release
  public static JavaOISAccess getJavaOISAccess() {
                ^
SharedSecrets.java:175: warning: JavaObjectInputStreamReadString is internal proprietary API and may be removed in a future release
  public void setJavaObjectInputStreamReadString(sun.misc.JavaObjectInputStreamReadString ignored) {
                                                         ^
3 errors
30 warnings

with javac -verbose command I am getting this

HP-Notebook:~/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc$ javac -verbose SharedSecrets.java
[parsing started RegularFileObject[SharedSecrets.java]]
[parsing completed 26ms]
[search path for source files: .]
[search path for class files: /usr/lib/jvm/jdk1.8.0_311/jre/lib/resources.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/rt.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/sunrsasign.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/jsse.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/jce.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/charsets.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/jfr.jar,/usr/lib/jvm/jdk1.8.0_311/jre/classes,/usr/lib/jvm/jdk1.8.0_311/jre/lib/ext/cldrdata.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/ext/sunpkcs11.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/ext/zipfs.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/ext/jaccess.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/ext/dnsns.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/ext/nashorn.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/ext/jfxrt.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/ext/sunec.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/ext/localedata.jar,/usr/lib/jvm/jdk1.8.0_311/jre/lib/ext/sunjce_provider.jar,.]

rt.jar is also on the search path for class files.

109_CSE_VENKATESH

unread,
Jan 1, 2022, 12:54:44 PM1/1/22
to Java™ Pathfinder
Yes it contains rt.jar

public class BootClassPath
{
        public static void main(String[] args) {
               
                System.out.println(System.getProperty("sun.boot.class.path"));
        }
}

HP-Notebook:~/Desktop$ javac BootClassPath.java
HP-Notebook:~/Desktop$ java BootClassPath
/usr/lib/jvm/jdk1.8.0_311/jre/lib/resources.jar:/usr/lib/jvm/jdk1.8.0_311/jre/lib/rt.jar:/usr/lib/jvm/jdk1.8.0_311/jre/lib/sunrsasign.jar:/usr/lib/jvm/jdk1.8.0_311/jre/lib/jsse.jar:/usr/lib/jvm/jdk1.8.0_311/jre/lib/jce.jar:/usr/lib/jvm/jdk1.8.0_311/jre/lib/charsets.jar:/usr/lib/jvm/jdk1.8.0_311/jre/lib/jfr.jar:/usr/lib/jvm/jdk1.8.0_311/jre/classes

Rahmadi Trimananda

unread,
Jan 1, 2022, 6:31:12 PM1/1/22
to java-pa...@googlegroups.com
Hi Venkatesh,

You might want to try a different version of JDK 1.8. Please see the list here: https://www.oracle.com/java/technologies/javase/8u-relnotes.html
I am suspecting that the recent updates made by Oracle to JDK 1.8 3XX and above might have broken the build flow of JPF due to major class/API changes (I had a similar problem recently). You can try something like JDK 1.8 201 which was from 2019 or even earlier. I believe you should still see warnings but JPF should be able to finish its compilation process.

Hope this helps.

Kind regards,
Rahmadi Trimananda

Researcher @ University of California, Irvine
Keep dreaming - Keep praying - Keep fighting *


109_CSE_VENKATESH

unread,
Jan 2, 2022, 7:46:51 AM1/2/22
to Java™ Pathfinder
Hi I tried running  ./gradlew with jdk 1.8.0_192 and also jdk 1.8.0_201. In both the versions I am getting 1 error and 12 warnings

This is what the error is

/home/loges/Desktop/JPF_HOME/jpf-core/src/classes/sun/misc/SharedSecrets.java:175: error: cannot find symbol
  public void setJavaObjectInputStreamReadString(sun.misc.JavaObjectInputStreamReadString ignored) {

Is there any other option that I could try? Is it impossible to contribute to JPF without gradle?

fra...@cs.yorku.ca

unread,
Jan 2, 2022, 12:48:35 PM1/2/22
to Java™ Pathfinder
JDK 1.8_311 seems to be working for me (Windows 10).

913120104109 Venkatesh S

unread,
Jan 2, 2022, 12:53:22 PM1/2/22
to java-pa...@googlegroups.com
Is there anything that I can try to solve this problem?

Rahmadi Trimananda

unread,
Jan 3, 2022, 11:34:55 AM1/3/22
to java-pa...@googlegroups.com
I have just tried building (by just typing "gradlew") the latest version of JPF that you can grab on the Github: https://github.com/javapathfinder/jpf-core

I am using Java 1.8.0_271 (on MacOS) and I managed to build everything successfully (with some warnings of course).

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

4 warnings


BUILD SUCCESSFUL in 25s

16 actionable tasks: 16 executed

MacBook-Pro jpf-core % java -version

java version "1.8.0_271"

Java(TM) SE Runtime Environment (build 1.8.0_271-b09)

Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)


Hope it works similarly on your machine.

Kind regards,
Rahmadi Trimananda

Researcher @ University of California, Irvine
Keep dreaming - Keep praying - Keep fighting *

Rahmadi Trimananda

unread,
Jan 3, 2022, 11:37:15 AM1/3/22
to java-pa...@googlegroups.com
Another solution that I can think of is to use a Virtual Machine like VirtualBox with some guest OS like Ubuntu 20.04 that's pretty standard. You can try different Java versions without actually breaking the host OS. :) I am pretty sure a standard Ubuntu with a standard Java 1.8 installation should let you compile JPF easily.

Kind regards,
Rahmadi Trimananda

Researcher @ University of California, Irvine
Keep dreaming - Keep praying - Keep fighting *

913120104109 Venkatesh S

unread,
Jan 4, 2022, 1:18:30 AM1/4/22
to java-pa...@googlegroups.com
Hi I tried running gradlew with jdk1.8.0_271 but it also throws the same error cannot find symbol so instead of gradle I thought of going with ant so I installed ant and junit but when I am trying to build jpf core using ant it says build.xml file is missing in jpf core. Now what should I do? Can anyone help me?

Rahmadi Trimananda

unread,
Jan 4, 2022, 10:50:42 AM1/4/22
to java-pa...@googlegroups.com
Since there have been many successful cases for other people (including Windows and MacOS), I am inclined to believe that your machine's OS, or Java installation might be messed up or something like that. You might want to try to install JDK 1.8.0_271, for instance, on a Ubuntu 20.04 Virtual Machine (perhaps you can use VirtualBox or VMWare Fusion or something like that). Then you can "git clone" and try to compile JPF there. 

Hope this one works out for you.

Kind regards,
Rahmadi Trimananda

Researcher @ University of California, Irvine
Keep dreaming - Keep praying - Keep fighting *

109_CSE_VENKATESH

unread,
Jan 5, 2022, 12:09:07 PM1/5/22
to Java™ Pathfinder
No it provides a warning and no error for me

package sun.misc;

public class Test
{
        private static JavaObjectInputStreamReadString example;
}

HP-Notebook:~/Desktop$ javac -verbose ./sun/misc/Test.java
[parsing started RegularFileObject[./sun/misc/Test.java]]
[parsing completed 111ms]
[search path for source files: /usr/local/JUNIT/junit-4.13.2.jar,/usr/local/JUNIT/hamcrest-core-1.3.jar,.]
[search path for class files: /usr/lib/jvm/jdk1.8.0_271/jre/lib/resources.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/rt.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/sunrsasign.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/jsse.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/jce.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/charsets.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/jfr.jar,/usr/lib/jvm/jdk1.8.0_271/jre/classes,/usr/lib/jvm/jdk1.8.0_271/jre/lib/ext/cldrdata.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/ext/sunpkcs11.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/ext/zipfs.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/ext/jaccess.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/ext/dnsns.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/ext/nashorn.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/ext/jfxrt.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/ext/sunec.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/ext/localedata.jar,/usr/lib/jvm/jdk1.8.0_271/jre/lib/ext/sunjce_provider.jar,/usr/local/JUNIT/junit-4.13.2.jar,/usr/local/JUNIT/hamcrest-core-1.3.jar,.]
[loading ZipFileIndexFileObject[/usr/lib/jvm/jdk1.8.0_271/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Object.class)]]
[loading ZipFileIndexFileObject[/usr/lib/jvm/jdk1.8.0_271/lib/ct.sym(META-INF/sym/rt.jar/sun/misc/JavaObjectInputStreamReadString.class)]]
[checking sun.misc.Test]
[loading ZipFileIndexFileObject[/usr/lib/jvm/jdk1.8.0_271/lib/ct.sym(META-INF/sym/rt.jar/java/io/Serializable.class)]]
[loading ZipFileIndexFileObject[/usr/lib/jvm/jdk1.8.0_271/lib/ct.sym(META-INF/sym/rt.jar/java/lang/AutoCloseable.class)]]
./sun/misc/Test.java:5: warning: JavaObjectInputStreamReadString is internal proprietary API and may be removed in a future release
        private static JavaObjectInputStreamReadString example;
                       ^
[wrote RegularFileObject[./sun/misc/Test.class]]
[total 954ms]
1 warning

109_CSE_VENKATESH

unread,
Jan 5, 2022, 12:13:53 PM1/5/22
to Java™ Pathfinder
I think I am having some problem with the java in my system or with my ubuntu OS let me look into it and if doesn't go well I think I have to try with vitualBox as suggested by Rahmadi Trimananda and check if that works. Thanks Frank van Breugel and Rahmadi Trimananda for helping me out.

Rahmadi Trimananda

unread,
Jan 5, 2022, 12:15:29 PM1/5/22
to java-pa...@googlegroups.com
Then congratulations! That means you have successfully compiled JPF. :)

Kind regards,
Rahmadi Trimananda

Researcher @ University of California, Irvine
Keep dreaming - Keep praying - Keep fighting *

913120104109 Venkatesh S

unread,
Jan 5, 2022, 12:18:17 PM1/5/22
to java-pa...@googlegroups.com
Do you mean that I can start contributing now to JPF??

Rahmadi Trimananda

unread,
Jan 5, 2022, 12:19:45 PM1/5/22
to java-pa...@googlegroups.com
You're welcome. I am glad we could work together and resolve it. I think at this point you actually can try running it on your Ubuntu OS: https://github.com/javapathfinder/jpf-core/wiki/Running-JPF. Having one warning means that you have compiled JPF and it's ready to run.

Kind regards,
Rahmadi Trimananda

Researcher @ University of California, Irvine
Keep dreaming - Keep praying - Keep fighting *

913120104109 Venkatesh S

unread,
Jan 5, 2022, 12:24:01 PM1/5/22
to java-pa...@googlegroups.com

Rahmadi Trimananda

unread,
Jan 5, 2022, 12:28:57 PM1/5/22
to java-pa...@googlegroups.com
Oh I see... now I understand that Venkatesh only ran the following command line:

HP-Notebook:~/Desktop$ javac -verbose ./sun/misc/Test.java

Well, unfortunately this only compiled Test.java. We should be able to run "gradlew" (warnings are fine) and at the end we should see "BUILD SUCCESSFUL" which means that the entire JPF is compiled successfully.

Kind regards,
Rahmadi Trimananda

Researcher @ University of California, Irvine
Keep dreaming - Keep praying - Keep fighting *

913120104109 Venkatesh S

unread,
Jan 5, 2022, 12:35:44 PM1/5/22
to java-pa...@googlegroups.com
Yeah when running gradlew it throws an error

913120104109 Venkatesh S

unread,
Jan 6, 2022, 8:23:47 AM1/6/22
to java-pa...@googlegroups.com
I upgraded my ubuntu OS from 18.04 to 20.04 and downloaded java 1.8.0_271 and  cloned JPF again and it still throws the same error. I dont think that virtualbox would work. Is there any other alternative that I can use instead of gradle??

Rahmadi Trimananda

unread,
Jan 6, 2022, 8:32:06 AM1/6/22
to java-pa...@googlegroups.com
I see. The point of using VirtualBox is really to start from scratch without any other software that might interfere with the Java installation. Unless you installed your Ubuntu to 20.04 from scratch (clean installation), then I wouldn't be surprised if you still see the same errors. So clean installation means we start from an empty HDD. Please think about it this way, if other people don't have any problem using JPF with Gradle, then you should have the same experience as well. Since you are the only one having the problem, then the problem is with your machine. So, unfortunately Gradle isn't the problem here I think. :)

Kind regards,
Rahmadi Trimananda

Researcher @ University of California, Irvine
Keep dreaming - Keep praying - Keep fighting *

913120104109 Venkatesh S

unread,
Jan 6, 2022, 8:55:17 AM1/6/22
to java-pa...@googlegroups.com
Okay then let me try it out with virtualbox and let you know. 

Rahmadi Trimananda

unread,
Jan 6, 2022, 9:01:24 AM1/6/22
to java-pa...@googlegroups.com
Sounds good. Upgrading Ubuntu directly would just give you the updated OS version while keeping all the installed software as is, as far as I know.

I feel sorry for the hassle as well, but using a VM just allows us to do stuff cleanly without affecting our machine. So, if you could try installing Ubuntu 20.04 with just the necessary software (Java 1.8_271 for instance) to compile JPF, then that would be great.

Kind regards,
Rahmadi Trimananda

Researcher @ University of California, Irvine
Keep dreaming - Keep praying - Keep fighting *

913120104109 Venkatesh S

unread,
Jan 6, 2022, 9:17:43 AM1/6/22
to java-pa...@googlegroups.com
Yeah Sure I will try installing ubuntu in virtualbox


Rahmadi Trimananda

unread,
Jan 6, 2022, 12:24:55 PM1/6/22
to java-pa...@googlegroups.com
So, just to help you a bit more, I happen to have a Xubuntu VM on my machine. I tried Xubuntu 20.04 and installed the OpenJDK 8 as per the instructions here: https://linuxbuz.com/linuxhowto/install-java-8-ubuntu (please see the bottom part).
It gave me Java 1.8.0_312 I think. I managed to compile JPF to the end fairly quickly and easily.

Earlier, I had the version 1.8.0_201 on that VM and I got an error because of the fix for this issue: https://linuxbuz.com/linuxhowto/install-java-8-ubuntu. I guess there has been a change in the package sun.misc sometime between the updates 201 and 312. But, 1.8.0_201 could still work anyway when I commented out the setJavaObjectInputStreamReadString class.

Hope this helps.

Kind regards,
Rahmadi Trimananda

Researcher @ University of California, Irvine
Keep dreaming - Keep praying - Keep fighting *

913120104109 Venkatesh S

unread,
Jan 6, 2022, 12:44:18 PM1/6/22
to java-pa...@googlegroups.com
Ok Thanks for the information I am installing ubuntu on virtual box and I hope by tomorrow I can test it with JPF and let you know


913120104109 Venkatesh S

unread,
Jan 7, 2022, 9:25:52 AM1/7/22
to java-pa...@googlegroups.com
Hello I tried installing ubuntu with virtual box and ran ./gradlew in jpf core and the build was successful with just some warnings and no error. Thankyou Frank and Rahmadi for helping me with this error. I am happy that I can start contributing now but my only fear is that sometimes black screen occurs in ubuntu when opening with virtual box which occured for me once today and I tried resolving it but couldnt and I finally had to reinstall the ubuntu os entirely to make it work again. I hope that doesnt occur again in the future. Once again thank you for helping me guys.

Rahmadi Trimananda

unread,
Jan 7, 2022, 11:08:16 AM1/7/22
to java-pa...@googlegroups.com
Awesome! You're welcome. Glad to hear that you finally got JPF compiled. :) For the Ubuntu OS issue, it's known that Ubuntu 20.04 might flicker on VirtualBox: https://blog.surges.eu/virtualbox-how-to-fix-screen-flickering-on-ubuntu-20-04/. When I fixed it on my Ubuntu VM, I had to do something else which was changing the display setting on VirtualBox. The black screen issue is perhaps caused by the OS going into sleep mode or something like that, so you can just make it awake forever. Another solution if none of these works is to use VMWare Fusion instead. My Ubuntu VM always runs flawlessly there (no display/screen issue at all).

Welcome to JPF and happy contributing!

Kind regards,
Rahmadi Trimananda

Researcher @ University of California, Irvine
Keep dreaming - Keep praying - Keep fighting *

Reply all
Reply to author
Forward
0 new messages