Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local JATOS doesn´t work, weird layout #298

Open
DavidBu16 opened this issue Dec 13, 2023 · 10 comments
Open

Local JATOS doesn´t work, weird layout #298

DavidBu16 opened this issue Dec 13, 2023 · 10 comments

Comments

@DavidBu16
Copy link

Hey there,

I have to get my local jatos running, but after installing JATOS (tried jatos and jatos_mac_java) and JAVA (Temurin-21 jdk) and typing http://127.0.0.1:9000/jatos in my browser (tried several), logging in with "admin admin" an weird result is shown (see photo). Not only the layout is weird, but also clicking on new study doesnt lead to any further reaction.
I tried deleting and installing both jatos and java again, but it stays the same.

Is there anyone that had the same problem and can help me out? I need to get a study running on jatos.

Kind regards
David

Bildschirmfoto 2023-12-13 um 09 21 22
@elisafilevich
Copy link

Hi, did you check on your settings -> security that Java isn't being blocked from running?

@DavidBu16
Copy link
Author

Yes I checked, there s nothing shown. Also tried shutting down the firewall for a second, but it doesnt change the result.

@elisafilevich
Copy link

That's odd. I'll ask these things, which is what I would do if I were around.
Which version of JATOS are you running? Do you have another java version that's interfering with this? What do you see on your console when you run jatos? It should say:

jatos_mac_java % ./loader.sh start
JATOS uses local Java
Starting JATOS... 
started
To use JATOS type 127.0.0.1:9000 in your browser's address bar

@DavidBu16
Copy link
Author

to me it says: ./loader.sh start
Starting JATOS...
started
To use JATOS type 127.0.0.1:9000 in your browser's address bar

@DavidBu16
Copy link
Author

--> with: java version "21.0.1" 2023-10-17 LTS
Java(TM) SE Runtime Environment (build 21.0.1+12-LTS-29)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.1+12-LTS-29, mixed mode, sharing)

@elisafilevich
Copy link

JATOS uses Java 11. Downloading the nudged-with-java version should do the trick, but it seems like your java is overriding this somehow. (https://www.jatos.org/Update-JATOS.html)

@EvBu4
Copy link

EvBu4 commented Dec 14, 2023

I´m stucked at the same point like David (also using a Mac). I installed Java 11, like you recommended @elisafilevich, tried different browser and activated JavaScript on every browser (I´m not sure if this could be the relevant error, because it´s not exactly the same like activated Java). Do you have any further ideas or recommendations how to fix the problem?

@elisafilevich
Copy link

I don't really have an answer. But while we wait for Kristian, who might have some ideas. What happens when you ask for java -version on your terminal?

@kristian-lange
Copy link
Member

JATOS still uses Java 8 or 11. There are compatibility issue between some libraries, Scala and Java on one side and the time that I am able to spend to fix them one the other side. They will be fixed but it needs some work. Until then JATOS only runs on Java 8 or 11 (which does not impose any security or other issues btw). I can only guess that on your system you have several Java installed and somehow JATOS chooses the wrong one to run. Can you try do download JATOS bundled with Java (https://github.com/JATOS/JATOS/releases). In those version JATOS is hard-coded to use the bundled Java and not the system's one.

@EvBu4
Copy link

EvBu4 commented Dec 15, 2023

Thanks a lot! Firstly, I tried to download Java 11 externally, which didn't fix the problem. But after downloading jatos_mac_java version and activating java in my local Mac settings (it was blocked because the java version wasn´t accepted at a trustable source) it finally worked :) My earlier error was thinking that activating JavaScript in my internet browser would be the same like activating java... Turned out that you have to activate Java locally in your settings. Thanks again for the fast responding, maybe the posts can help other people too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants