Comments (9)
Fernando, have you already looked into this?
from testar_dev.
We are now on Java 12. Can we give it some prio?
Testar needs Java 8 now...
from testar_dev.
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.
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.
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.
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.
More debuggin shown an error into Access Bridge method:
Windows.GetHWNDFromAccessibleContext(vmidAC[0],vmidAC[1]);
Disabled temporally
from testar_dev.
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.
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)
- [Refactor] Reduce the number of protocols HOT 2
- [Refactor] Discuss the structure of the test.settings file HOT 1
- Research the creation of a custom GitHub runner
- Update OrientDB CI Actions URL HOT 1
- [Refactor] Webdriver spy custom clickable classes feature
- Edit Protocol feature does not work with Java > 14 HOT 3
- [Refactor] Disable Record Mode HOT 1
- [Dependency Bug] TESTAR issue with chromedriver version 111 HOT 4
- Add TypeableClasses as a WebDriver setting
- Add GUI buttons to verify regular expressions regex HOT 1
- [Refactor] Change index.log to debug.log and redirect system prints HOT 1
- Adapter class for Action Selectors
- Debug and check Action Selectors functionality HOT 1
- Bug: Bring the system to the foreground is not always selected HOT 1
- [Documentation] Add Android and Appium instructions to the Wiki HOT 1
- Bug: relative paths on `Application name` field may lead to `FileNotFoundException`. HOT 1
- Exception message about environment variables relative to java
- [Refactor] Settings values validation
- Triggered Action methods are not creating action screenshots
- Maximum Path Length Limitation affects TESTAR output files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testar_dev.