Giter VIP home page Giter VIP logo

Comments (9)

pekkakaho avatar pekkakaho commented on June 10, 2024

Fernando, have you already looked into this?

from testar_dev.

mdeiman avatar mdeiman commented on June 10, 2024

We are now on Java 12. Can we give it some prio?
Testar needs Java 8 now...

from testar_dev.

ferpasri avatar ferpasri commented on June 10, 2024

Installed java 12 JDK :

Into windows/native_src/Makefile_w10, we're using into compilation:
javah -jni -force -o windows.h -classpath ..\target\classes\java\main $(JAVA_CLASS)

  • Issue with gradlew compilation:
    'javah' is not recognized as an internal or external command.

javah was removed since Java 10, http://openjdk.java.net/jeps/313

At least a new branch and TESTAR version will be needed:
https://github.com/TESTARtool/TESTAR_dev/tree/testar_new_jdk

from testar_dev.

ferpasri avatar ferpasri commented on June 10, 2024

Related question:
https://stackoverflow.com/questions/48816188/kotlin-replacement-for-javah

The problem is, javah operates on compiled .class files, while javac operates on source files (i.e. .java files.)

Branch "testar_new_jdk" allows the compilation "gradlew installdist" and execution of TESTAR into a VM with Java JDK12.
c7d480a

from testar_dev.

ferpasri avatar ferpasri commented on June 10, 2024

We have a TODO task:

  • We need the Java 8 JDK to compile the protocols, and we were thinking about allow the TESTAR execution if the users have the JAVA_HOME defined into the JRE instead the JDK.
  • Since Java 10, JDK and JRE are no more separated into two distributions. Now all Java package is a JDK with the compilation tools.
  • Should we include here the discussion?

from testar_dev.

ferpasri avatar ferpasri commented on June 10, 2024

Connect to Java Swing applications from TESTAR problems (Access Bridge??)

  • Normal cmd: java -jar suts\SwingSet2.jar opens the application with a warning
  • TESTAR cmd: java -jar suts\SwingSet2.jar opens the application with a warning, and then throws the Runtime Java Error
  • TESTAR connect with windows_title: throws same error and closes the SUT (trying to read some java register of the SUT breaks?)

AccessBridgeExplorer (https://github.com/google/access-bridge-explorer) works

Other WARNINGS about Java Swing applications and Java JDK 12 ??
https://stackoverflow.com/questions/50251798/what-is-an-illegal-reflective-access
https://stackoverflow.com/questions/50251798/what-is-an-illegal-reflective-access/50251958#50251958

from testar_dev.

ferpasri avatar ferpasri commented on June 10, 2024

c11ee17

More debuggin shown an error into Access Bridge method:
Windows.GetHWNDFromAccessibleContext(vmidAC[0],vmidAC[1]);

Disabled temporally

from testar_dev.

carlosengers avatar carlosengers commented on June 10, 2024

Consider the following modification/workaround in Makefile_w10 and openjdk 13 installed.
This works for me. (using IDEA intellij )
only cavea till now: windows.h isn't automatically deleted on rebuild. you need to perform the GRADLE clean task before.

# up to jdk 8:
JAVA_CLASS = org.fruit.alayer.windows.Windows
# > jdk 8:
JAVA_SOURCE = ..\src\org\fruit\alayer\windows\Windows.java

OBJFILES= main_w10.obj\
# by urueda
		  AccessBridgeCalls.obj

HPPFILES= windows.h\


CPPFLAGS= /EHsc /O2 /MD /wd4311 /wd4312


all: windows.h $(DLLFILE)

windows.h: $(JAVA_CLASSFILE)
#requires jdk 8
#    javah -jni -force -o windows.h -classpath ..\target\classes\java\main $(JAVA_CLASS)
#requires jdk >8 CSS 20200405
     javac -h  tmp -classpath  .;..\target\classes\java\main\;..\..\core\target\classes\java\main  $(JAVA_SOURCE)
     move tmp\*.h .
     rename org*.h windows.h
     RD /S /Q  tmp

$(OBJFILES): windows.h

from testar_dev.

rneeft avatar rneeft commented on June 10, 2024

The JAVA_SOURCE is outdated: correct line must be:

JAVA_SOURCE = ..\src\org\testar\monkey\alayer\windows\Windows.java

from testar_dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.