question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running unit tests from eclipse on Windows

See original GitHub issue

Hi

I’am trying to run the TestArrays test provided in your code repo from Eclipse, on Windows.

First I installed everything with opencl and ptx drivers and the benchmarks are running nicely in MINGW64. Then I created simple maven project with tornado dependencies (0.14), and just copied the test Array tests locally (with required TornadoTestBase and few other Exception classes). It compiles fine.

Then I exported the Java flags using tornado --printFlags command and added in the Eclipse launcher. So it looks like -ea -server -XX:-UseCompressedOops -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -Djava.library.path=c:\Users\Greg\Gaia\TornadoVM\bin\sdk\lib --module-path c:\Users\Greg\Gaia\TornadoVM\bin\sdk\share\java\tornado -Dtornado.load.api.implementation=uk.ac.manchester.tornado.runtime.tasks.TornadoTaskSchedule -Dtornado.load.runtime.implementation=uk.ac.manchester.tornado.runtime.TornadoCoreRuntime -Dtornado.load.tornado.implementation=uk.ac.manchester.tornado.runtime.common.Tornado -Dtornado.load.device.implementation.opencl=uk.ac.manchester.tornado.drivers.opencl.runtime.OCLDeviceFactory -Dtornado.load.device.implementation.ptx=uk.ac.manchester.tornado.drivers.ptx.runtime.PTXDeviceFactory -Dtornado.load.device.implementation.spirv=uk.ac.manchester.tornado.drivers.spirv.runtime.SPIRVDeviceFactory -Dtornado.load.annotation.implementation=uk.ac.manchester.tornado.annotation.ASMClassVisitor -Dtornado.load.annotation.parallel=uk.ac.manchester.tornado.api.annotations.Parallel -XX:+UseParallelGC @c:\Users\Greg\Gaia\TornadoVM\bin\sdk\etc\exportLists\ptx-exports @c:\Users\Greg\Gaia\TornadoVM\bin\sdk\etc\exportLists\opencl-exports --add-modules ALL-SYSTEM,tornado.runtime,tornado.annotation,tornado.drivers.common,tornado.drivers.ptx,tornado.drivers.opencl

But I have the error

java.lang.IllegalAccessError: class uk.ac.manchester.tornado.runtime.TornadoCoreRuntime (in module tornado.runtime) cannot access class org.graalvm.compiler.options.OptionValues (in module jdk.internal.vm.compiler) because module jdk.internal.vm.compiler does not export org.graalvm.compiler.options to module tornado.runtime Any idea ? Thanks

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gjevardatcommented, Aug 25, 2022

Ok Understood, I’ll see what I can do with MINGW64.

0reactions
jjfumerocommented, Dec 8, 2022

I am going to close this issue. @gjevardat feel free to re-open if you encounter more issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running Junit Tests from Eclipse - Tools QA
To open Junit runner you have to go to Window > Show View > Other. · In the pop up window select Java....
Read more >
How to set up JUnit in Eclipse - Qualitest
Procedure: · File -> New -> JUnit Test Case. If this option is there, JUnit was included. · Help -> Install New Software....
Read more >
Eclipse tutorials - Washington
Once you have written one or two test methods, run your JUnit test case. There are two ways to do this. One way...
Read more >
Java in Eclipse and JUnit Tests
Run the Eclipse Installer. Select "Eclipse IDE for Java Developers" and then "Install" to install Eclipse. Launch Eclipse. The first time you run...
Read more >
Using the Eclipse IDE for writing and executing JUnit tests
To run a test, select the test class, right-click on it and select Run-as JUnit Test. This starts JUnit and executes all test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found