Running javafx app with hibernate takes too much t

2019-02-21 08:29发布

I am working on javafx 2.0 using netbeans 7.4 and hibernate..

the issue was that i am run application its build all jar and take too much time to run..

how can i get run fast...

enter image description here

 SessionFactory sess = new Configuration().configure().buildSessionFactory();
        Session ses = sess.openSession();

         Query qry = ses.createQuery("select count(*) from UserDo");
         Iterator it  =qry.iterate();

2条回答
forever°为你锁心
2楼-- · 2019-02-21 08:51

NetBeans build time improvement suggestions

It seems that likely your issue is not the time taken to run the application, but more the time taken to build it using your current build settings in NetBeans.

Here are some suggestions you can try out which will improve build speed under NetBeans:

JavaFX Ant Build Script in Netbeans: How to improve build speed?

Background on when you need to sign applications

From Jitendra's answer, which you marked correct, it seems that your main issue is that you are requesting NetBeans to sign all of your jar files.

Unless you will be deploying your application as a browser embedded application or WebStart application, you don't need to sign the application.

Even if you are going to eventually deploy your application using either of those two modes, you can do all of your development of the application as a standalone application (which does not require signing), and just sign the application when you are ready to deliver it.

How to disable signing in NetBeans

Under NetBeans 7.4, to prevent the NetBeans from signing all of your application's jar files, choose:

Project Properties | Build | Deployment

And make sure the following setting is NOT checked:

Request unrestricted access (Enable signing)
查看更多
Explosion°爆炸
3楼-- · 2019-02-21 09:05

Actually there is some licensing issues, whenever you run Javafx APP Java Environment check your licensing, if you have default jar then Netbeans show warning messages to avail you for the licensing issues. That's why it seems slow than other apps. Try to communicate with Oracle Support it definitely give you better solution.

The below screen shot you will confirm every jar want a licensing key :

enter image description here

查看更多
登录 后发表回答