Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How I can give the -D option in wsad?

Posted on 2003-02-24
9
Medium Priority
?
204 Views
Last Modified: 2010-03-31
Hi,

  I have a program which needs -D option if I am running it from the command prompt it is working but when using wsad it is not working. This program also does some corba lookup. WSAD supports corba lookup? if yes then how I can set the -D options in wsad.
Thanks in advance

Vikas
0
Comment
Question by:vikas31
  • 5
  • 3
9 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 8008883
You'd have to set the options internally with System.setProperty
0
 

Author Comment

by:vikas31
ID: 8008937
Yes I could have but my class is calling to some other classes & that need's this option to be set.
0
 

Author Comment

by:vikas31
ID: 8008945
Yes I could have but my class is calling to some other classes & that need's this option to be set.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:vikas31
ID: 8009001
Yes I could have but my class is calling to some other classes & that need's this option to be set.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 8009025
It's set per VM, i.e. for all classes loaded.
0
 

Author Comment

by:vikas31
ID: 8009151
Can I make a corba call from wsad?I have changed the properties file stuff & now loading it with System.get..
but still getting same exception. While if the same stuff I am running with command Prompt it's working.
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 50 total points
ID: 8009350
>>Can I make a corba call from wsad?

Not sure.

The first class that gets loaded should have the following in its definition:

class SomeClass {
  static {
     System.setProperty("somekey", "someval");
  }
  // rest of class definition
}
0
 

Author Comment

by:vikas31
ID: 8017216
????? Is there any one who can give the correct reply..
0
 

Expert Comment

by:CleanupPing
ID: 9059108
vikas31:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question