Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Getting problem in jws  RSS feed

 
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.
 
Rancher
Posts: 43009
76
  • 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.
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you post your jnlp file ?
 
And inside of my fortune cookie was this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!