Forums

Java fails to run

I need to do local testing of my app with DynamoDB which requires java. When I try and run java, I get the error java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory. Since I don't have root on the system I can't really try and debug the issue. I can't be the first person to run into this, so I'm hoping you have some insight.

Thanks

Sorry, there's not much we can do about that one.

Why not?

We don't support Java I'm afraid...

You made it available on the system though.

Well, the slightly-longer explanation is: we did do some investigations to enable java, and we have an experimental console type ("docker consoles") that will let you run java. but: those consoles have performance issues, and you will only be able to use java in consoles, not web apps or scheduled tasks. So they're of limited use, but I can switch them on for you if you want?

I just wanted to be able to run dynamodb-local during testing: it won't be in support of a web app or scheduled task. If it were possible to run it on here that would be great.

OK -- I've switched your account over to using Docker for consoles, so if you start a new console, Java should work -- but there's no guarantee, as this is still an experimental feature and not officially supported yet. That said, we'd be glad to hear of any error messages you get, as that might be able to help us develop it further and in the future make it an official feature.

Sounds good. Thanks!

Hello, i'm facing the same prob, i'm actually using tika to do some parsing, as its server is in java i'm stuck with "java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory".

Could it be possible to activate this experimental feature to my account too ? Else i'll explore a pure python solution for my parsing problem.

Thanks in advance, Florent

ok. that's active for you now. same caveats before tho!

Hi,

I am also seeing this error: "java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory". Could you please enable docker consoles for my account?

Thanks

okay- any new consoles you start should be docker ones. you can check this by doing a ps in it.

Hello, please can my consoles also be activated because I am having the same issues

okay- any new consoles you start will be docker ones. keep in mind this does not extend to your webapps etc. you can check that you are in a new console by doing a ps in it (docker consoles won't error).

will this also work when we create a virtualenv

will this also work when we create a virtualenv

Yes, Java support is completely independent of which virtualenv you're in.

I need java for running tabula in my app. But it is throwing error as java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

is there any way to solve this problem

Yes. Read the previous messages where the solution is described and the warnings that go with it are detailed and let us know what you want to do.

thanks for your immediate response. please activate docker console for my account if possible. Thank you.

okay- we've enabled that for you

Hi I'm creating a website that needs to compile and test java code and was wondering if I could I get the feature enabled for my account.

Ok. I have enabled docker consoles for your account.

Hey Glenn - could you enable this for me as well? Trying to run tika to parse PDFs.

Sure, that's done now. Just to reiterate the warning, though, it will only work in consoles -- not website code or scheduled tasks.

I am hitting the same error: java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

Would you please enable docker consoles for my account ?

Ok. I have enabled docker consoles for your account.

Thank you! I am hitting this error "Unsupported major.minor version 52.0", you don't support java 8 ?

We have 1.7 installed by default. I can't think of any reason why 8 wouldn't work, but you'd have to install it yourself into your home directory from the official download page.

Thanks a lot for your help! I managed to install java8 in my home directory and it worked! and from my bash I managed to run the java command I wanted.

I really wished I could run the command for my website, but it didn't work, I have my python script running a shell script that is running java command, but it didn't work, anything you could help me with regarding this ?

I am trying to run Stanford Name entity recognition library, and after failing to run the java command from my website, I am trying a different approach that relies on "nltk" package which has Stanford library in it.

The problem is that I am hitting "No module named 'nltk'" error when trying to import "nltk", do you know why this is happening ?

I do appreciate your input for the problem I hitting above! do I need special setup to use nltk from my application ?

See http://help.pythonanywhere.com/pages/InstallingNewModules/

Hi, I also need java for running tabula, could I have the console type ("docker consoles") for me to run java?

Sure! We have enabled docker consoles for your account- any new consoles should be docker ones. You can check that you are in a new console by doing a ps in it (docker consoles won't error).

Hello i also planning to use tabula (java dependencie). Could you help me ?

Thanks in advance!

Sure! I've switched on docker consoles for your account. It's worth noting that this only affects consoles -- Java still won't work in website code or in scheduled tasks.

Hello

If i understen well, i cant use tabulapy as a backend of my webapp ?

That is correct. It will only work in consoles.