This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting problem in jws

 
Khushwinder Chahal
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
even i an trying to load the that class by classloader like:



but it is not working.
 
Khushwinder Chahal
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anybody has any idea ?
i will highly appreciate.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Khushwinder Chahal
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
Regards.
 
prateek urmaliya
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you post your jnlp file ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic