Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7554973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:28:46+00:00 2026-05-30T11:28:46+00:00

I have created a java SE application that uses the mysql database using mysql

  • 0

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

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://servername:80/" href="" >
    <information>
        <title>MyProject</title>
        <vendor>abd</vendor>
        <icon href="icon_1.jpg"/>
        <offline-allowed/>
    </information>
    <resources>
        <j2se version="1.7+" href=
           "http://java.sun.com/products/autodl/j2se"/>
        <jar href="MyJar.jar" />
    </resources>
    <application-desc
         main-class="" >
    </application-desc>
</jnlp>

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

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(NonRegisteringDriver.java:286)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at MyProject.database.connect(database.java:27)

Caused by: java.security.AccessControlException: access denied (“java.util.PropertyPermission” “file.encoding” “read”)
at java.security.AccessControlContext.checkPermission(Unknown Source)

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

Any help appreciated.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:28:47+00:00Added an answer on May 30, 2026 at 11:28 am

    Three things that come to mind:

    1. You need to sign the jar for javawebstart to allow access to sockets.
    2. You are obviously trying to connect to a mysql DB, it is unclear from your description where this db is and if connection to the host is allowed.
    3. did you bundle the mydql driver in your jar ? or is it referenced somehow ?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java application that uses an Apache Derby database with the embedded
I have created one application in flex that is accessing the Java webservice using
I have implemented an Java Swing application that uses an embedded JavaDB database. The
I have created a java application for Debian Linux. Now I want that that
I have created a java application and packed it into a jar file on
Using Restlet I have created a router for my Java application. From using curl,
i have created a java application which uses data from its config folder and
I have created an xPages application which uses a lot of server side javascript
I have a Java web application that uses the SLF4J logging facade. To date,
I have a Flex/Java web application that uses Maven as a build tool. Currently,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.