[SELF-SOLVED] Need help from Java expert. Java Security Exception | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

19th Oct 2020, 6:42 PM
Coding Cat
Coding Cat - avatar
3 Answers
19th Oct 2020, 9:26 PM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
+ 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.
20th Oct 2020, 6:41 PM
Coding Cat
Coding Cat - avatar
+ 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 😀
21st Oct 2020, 4:01 PM
Coding Cat
Coding Cat - avatar