It's not a secret anymore!*
The moose likes JNLP and Web Start and the fly likes Getting problem in jws Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Getting problem in jws" Watch "Getting problem in jws" New topic

Getting problem in jws

Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
Hi All,

I am executing swing application as a jar file from my web application.
I have a link on a web page which is calling jnlp file from my server.
In this jnlp file i am calling the jar file.
Up to this it is working very well.
In this jar file i have a class, in which i am calling another
class's main() method, on clicking a button like following:

Here i am getting the problem, this main() is not being called up.
I am getting no exception or err on the console.

One more thing when i executing this jar file alone; not from the web application , its calling the main() method.

I am not getting what is the problem.
All classes are in the same package.
If any body has any idea help me.

Thanks and Regards.

Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
even i an trying to load the that class by classloader like:

but it is not working.
Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
anybody has any idea ?
i will highly appreciate.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41114
How do you know it is not being called? Have you placed something at the beginning of the method that would unmistakeably tell you it's being called?

Same for the newInstance approach - is there something in the constructor that would let you know it's being run?

Ping & DNS - my free Android networking tools app
Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
Thanks for reply.
If i try to call another class constructor on that place then it works.
But i am getting problem when i try to call main() for that specific class.
Is it mean that there is some problem with my child class to whom i am calling?
But then it also should not open when i try to run jar file alone.
prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
can you post your jnlp file ?

this message brought to you by .... PIE! .... it's yummy! ;)
I agree. Here's the link:
subject: Getting problem in jws
Similar Threads
Is editing of client copy of jnlp file possible when using JWS?
Web Start Console :NoClassDefFoundError: javax/jms/JMSException
deploying JNLP in Jetty web server of jboss.
problem with Persistence.createEntityManagerFactory
Signing JNLP - Where does JNLP-INF directory go?