• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting problem in jws

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
anybody has any idea ?
i will highly appreciate.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can you post your jnlp file ?
 
Not so fast naughty spawn! I want you to know about
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic