+ 1
[SELF-SOLVED] Need help from Java expert. Java Security Exception
I've build a project for our sports club. This works very good in Eclipse and with "Java -jar test.jar" also on my Ubuntu 16.04 console. But now I tryed it on the target system: openSuse aka Leaf some what. And there I got a exception as attached as code below. What can I do to get it working? https://code.sololearn.com/cNqmk2kIyDer/?ref=app
3 Respostas
+ 3
Maybe this post explain about securityexception
https://examples.javacodegeeks.com/java-basics/exceptions/java-lang-securityexception-how-to-solve-securityexception/
+ 1
Thanks Sumit Programmer😎😎 I had a look at it. Seems not belong to my issue. I found a hint, that someting with the Eclipse jarinjarloader goes wrong. Now I've compiled it "by hand". The Security Exception does not longer appear.
Now, it founds no suitable driver for the database. But there is one in my jar file. Maybe I did something wrong. Have never done this before.
+ 1
Puhh, it works!
Compiled at command line.
Some hours to figure out how to start this. With
Java -cp ./lib/*:./build/: Program
does it work 😀