File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Jar working jnlp not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Jar working jnlp not working" Watch "Jar working jnlp not working" New topic

Jar working jnlp not working

coool killler

Joined: Feb 27, 2012
Posts: 1
I have created a java SE application that uses the mysql database using mysql java connector.I have hosted the apache and mysql server on ubuntu.

I have my .jar file on the apache server and also the jnlp,

When I simply download the jar file and run it, it seems to work, but, when I am trying to use it through jnlp the first view comes up then when I enter my username and password and click the login button it just stops there

Here is my JNLP file

Please let me know what it the error. On the server I have 80 8080 and 3306 ports as public ports. I am not the root user though.

as I said I can update the database using the jarfile that I downloaded from the server but when I try to run the file through JNLP I freezes.

I saw the exception in java console it says

Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError at com.mysql.jdbc.NonRegisteringDriver.connect( at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at MyProject.database.connect(

Caused by: access denied ("java.util.PropertyPermission" "file.encoding" "read")
at Source)

I cant figure out what the problem is? do I need some port open for JNLP or anything.

Any help appreciated.

Wendy Gibbons

Joined: Oct 21, 2008
Posts: 1107

I would be looking into the access denied error, but as I have never used JNLP (only just found out what it stands for) I can't be anymore help.

Caused by: access denied ("java.util.PropertyPermission" "file.encoding" "read")
at Source)
I agree. Here's the link:
subject: Jar working jnlp not working
It's not a secret anymore!