Why my function can not get proper varaible value

Hi.
I write a MXML file like this.
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="
http://www.adobe.com/2006/mxml"
invoke="setint()"
creationComplete="getint()">
<mx:Script>
<![CDATA[
import mx.utils.StringUtil;
import mx.controls.Alert;
public var number:int = 100;
private function setint():void{
number = 200;
Alert.show("" + number);
private function getint():void{
Alert.show("" + number);
]]>
</mx:Script>
</mx:WindowedApplication>
I define a varaible in ActionScrip. one function is to set
its value, another is to get its value. why function getint()
always get value 100. this varaible can not be set. the two
function are trigger in invoke event and creationComplete.

"crystalChen" <[email protected]> wrote in
message
news:ghska7$31a$[email protected]..
> Hi.
> I write a MXML file like this.
> <?xml version="1.0" encoding="utf-8"?>
> <mx:WindowedApplication xmlns:mx="
http://www.adobe.com/2006/mxml"
> invoke="setint()"
> creationComplete="getint()">
>
> <mx:Script>
> <![CDATA[
> import mx.utils.StringUtil;
> import mx.controls.Alert;
>
> public var number:int = 100;
> private function setint():void{
> number = 200;
> Alert.show("" + number);
> }
>
> private function getint():void{
> Alert.show("" + number);
> }
> ]]>
> </mx:Script>
>
> </mx:WindowedApplication>
>
> I define a varaible in ActionScrip. one function is to
set its value,
> another
> is to get its value. why function getint() always get
value 100. this
> varaible
> can not be set. the two function are trigger in invoke
event and
> creationComplete.
Check out "Defining Public properties by using getter and
setter methods"
http://www.adobe.com/livedocs/flex/3/html/help.html?content=ascomponents_3.html

Similar Messages

  • Not getting proper date values for original GI Date

    Hi,
    I have to Calculate Original GI Date based on Original promise Date and transport Date(Original GI Date = Original promise Date-transport Date) and I am getting Original Promise date as"21112008" and transport date as"20112008". when I subtract in Update rules as formula as (Original promise Date-transport Date) getting Original GI DATE as"01000001" as it is giving wrong date values.please help me whether i am going right way or is there any thing else i have to select in Update rule level (formula) to get proper date values or how can i approach to get original GI date.
    it is QUITE Urgent...please help any one to solve the Issue.
    REGARDS
    VENKAT.

    Hi Venkatesh,
    Please search SDN forum before you post any questions. There are lots of threads available for this scenarios.
    Use formula variables in Bex in order to achieve your requirement. 
    Links below, may be helpful:
    Formula variable with replacement path on system date
    How to creae days count variable in SAP BI-BEx
    http://help.sap.com/saphelp_nw70/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/frameset.htm
    Regards,
    Ravi Kanth.

  • Why I can not get the email value?

    I tried to pull out the email address from database, but for some reason i could not get it. Here is the code.
    Javabean:
    public class ProgramBean {
    private String programId;
    private String programTitle;
    private String programDesc;
    private String sponsorId;
    private String sponsorName;
    private String providerId;
    private String provider;
    private String providerEmail;
    private String providerPhone;
    private String programStatus;
    private String receiveDay;
    private String receiveMonth;
    private String receiveYear;
    private String receivedDate;
    private String approvedDay;
    private String approvedMonth;
    private String approvedYear;
    private String approvedDate;
    private String approvedBy;
    private String notifyBy;
    private String expiredDay;
    private String expiredMonth;
    private String expiredYear;
    private String expiredDate;
    private String attachments;
    private String website;
    private String programComments;
    private String section;
    private String notes;
    private String requestedMaxCeu;
    private String approvedMaxCeu;
    private String whoAdded;
    private String dateAdded;
    private String whoChanged;
    private String dateChanged;
    public ProgramBean() {
    public ProgramBean(String programId,String programTitle, String programDesc, String sponsorId, String sponsorName,String providerId,String provider, String providerEmail, String providerPhone,String programStatus,
    String receiveDay,String receiveMonth,String receiveYear, String approvedDay, String approvedMonth, String approvedYear,
    String approvedBy,String notifyBy,String expiredDay,String expiredMonth,String expiredYear,String attachments, String website,String programComments,
    String section,String notes,String whoAdded,String dateAdded,String whoChanged,String dateChanged){
    this.programId = programId;
    this.programTitle = programTitle;
    this.programDesc = programDesc;
    this.sponsorId = sponsorId;
    this.sponsorName = sponsorName;
    this.providerId = providerId;
    this.provider = provider;
    this.providerEmail = providerEmail;
    this.providerPhone = providerPhone;
    this.programStatus = programStatus;
    this.receiveDay = receiveDay;
    this.receiveMonth = receiveMonth;
    this.receiveYear = receiveYear;
    this.approvedDay = approvedDay;
    this.approvedMonth = approvedMonth;
    this.approvedYear = approvedYear;
    this.approvedBy = approvedBy;
    this.notifyBy = notifyBy;
    this.expiredDay = expiredDay;
    this.expiredMonth = expiredMonth;
    this.expiredYear = expiredYear;
    this.attachments = attachments;
    this.website = website;
    this.programComments = programComments;
    this.section = section ;
    this.notes = notes;
    this.whoAdded = whoAdded;
    this.dateAdded = dateAdded;
    this.whoChanged = whoChanged;
    this.dateChanged = dateChanged;
    public void setProgramId(String b_programId){
              this.programId = b_programId;
         public String getProgramId(){
              return     programId;
         public void setProgramTitle(String b_programTitle){
              this.programTitle = b_programTitle;
         public String getProgramTitle(){
              return     programTitle;
    public void setProgramDesc(String b_programDesc){
              this.programDesc = b_programDesc;
         public String getProgramDesc(){
              return     programDesc;
    public void setProgramStatus(String b_programStatus){
              this.programStatus = b_programStatus;
         public String getProgramStatus(){
              return     programStatus;
    public void setApprovedDay(String b_approvedDay){
              this.approvedDay = b_approvedDay;
         public String getApprovedDay(){
              return     approvedDay;
    public void setApprovedMonth(String b_approvedMonth){
              this.approvedMonth = b_approvedMonth;
         public String getApprovedMonth(){
              return     approvedMonth;
    public void setApprovedYear(String b_approvedYear){
              this.approvedYear = b_approvedYear;
         public String getApprovedYear(){
              return     approvedYear;
    public void setApprovedDate(String b_approvedDate){
              this.approvedDate = b_approvedDate;
         public String getApprovedDate(){
              return     approvedDate;
    public void setProvider(String b_provider){
              this.provider = b_provider;
    public String getProvider(){
              return     provider;
    public void setProviderEmail(String b_providerEmail){
              this.providerEmail = b_providerEmail;
    public String getProviderEmail(){
              return     providerEmail;
    public void setSponsorId(String b_sponsorId){
              this.sponsorId = b_sponsorId;
    public String getSponsorId(){
              return     sponsorId;
    public void setSponsorName(String b_sponsorName){
              this.sponsorName = b_sponsorName;
    public String getSponsorName(){
              return     sponsorName;
    public void setProviderPhone(String b_providerPhone){
              this.providerPhone = b_providerPhone;
    public String getProviderPhone(){
              return     providerPhone;
    public void setProviderId(String b_providerId){
              this.providerId = b_providerId;
    public String getProviderId(){
              return     providerId;
    public void setReceiveDay(String b_receiveDay){
              this.receiveDay = b_receiveDay;
         public String getReceiveDay(){
              return     receiveDay;
    public void setReceiveMonth(String b_receiveMonth){
              this.receiveMonth = b_receiveMonth;
         public String getReceiveMonth(){
              return     receiveMonth;
    public void setReceiveYear(String b_receiveYear){
              this.receiveYear = b_receiveYear;
         public String getReceiveYear(){
              return     receiveYear;
    public void setReceivedDate(String b_receivedDate){
              this.receivedDate = b_receivedDate;
         public String getReceivedDate(){
              return     receivedDate;
    public void setApprovedBy(String b_approvedBy){
              this.approvedBy = b_approvedBy;
         public String getApprovedBy(){
              return     approvedBy;
    public void setNotifyBy(String b_notifyBy){
              this.notifyBy = b_notifyBy;
         public String getNotifyBy(){
              return     notifyBy;
    public void setExpiredDay(String b_expiredDay){
              this.expiredDay = b_expiredDay;
         public String getExpiredDay(){
              return     expiredDay;
    public void setExpiredMonth(String b_expiredMonth){
              this.expiredMonth = b_expiredMonth;
         public String getExpiredMonth(){
              return     expiredMonth;
    public void setExpiredYear(String b_expiredYear){
              this.expiredYear = b_expiredYear;
         public String getExpiredYear(){
              return     expiredYear;
    public void setExpiredDate(String b_expiredDate){
              this.expiredDate = b_expiredDate;
         public String getExpiredDate(){
              return     expiredDate;
    public void setAttachments(String b_attachments){
              this.attachments = b_attachments;
         public String getAttachments(){
              return     attachments;
    public void setWebsite(String b_website){
              this.website = b_website;
         public String getWebsite(){
              return     website;
    public void SetProgramComments(String b_programComments){
              this.programComments = b_programComments;
         public String getProgramComments(){
              return     programComments;
    public void SetSection(String b_section){
              this.section = b_section;
         public String getSection(){
              return     section;
    public void SetNotes(String b_notes){
              this.notes = b_notes;
         public String getNotes(){
              return     notes;
    public void SetWhoAdded(String b_whoAdded){
              this.whoAdded = b_whoAdded;
         public String getWhoAdded(){
              return     whoAdded;
    public void SetDateAdded(String b_dateAdded){
              this.dateAdded = b_dateAdded;
         public String getDateAdded(){
              return     dateAdded;
         public void SetWhoChanged(String b_whoChanged){
              this.whoChanged = b_whoChanged;
         public String getWhoChanged(){
              return     whoChanged;
    public void SetDateChanged(String b_dateChanged){
              this.dateChanged = b_dateChanged;
         public String getDateChanged(){
              return     dateChanged;
    public void SetRequestedMaxCeu(String b_requestedMaxCeu){
              this.requestedMaxCeu = b_requestedMaxCeu;
         public String getRequestedMaxCeu(){
              return     requestedMaxCeu;
         public void SetApprovedMaxCeu(String b_approvedMaxCeu){
              this.approvedMaxCeu = b_approvedMaxCeu;
         public String getApprovedMaxCeu(){
              return     approvedMaxCeu;
    Servlet:
    HttpSession session = request.getSession();
    ProgramBean updatedProgramInfo = new ProgramBean();
    try
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection("");
    stmt_get_classes = conn.createStatement();
    sql = "SELECT p.program_id,upper(p.program_title),upper(p.program_desc),p.sponsor_id,p.provider_id, upper(d.last_name||', '||d.First_name),p.program_status, "+
    " to_char(p.date_received,'mm/dd/yyyy'), to_char(p.date_approved,'mm/dd/yyyy'),upper(p.approved_by), Upper(p.notified_by), to_char(p.date_expiration,'mm/dd/yyyy'), nvl2(p.agenda_file,'AGENDA - '||p.agenda_file,'DON''T FORGET THE ATTACHMENTS!'),"+
    " p.website, upper(p.program_comments), p.section, upper(p.administrator_notes), upper(p.cre_user), to_char(p.cre_date,'mm/dd/yyyy hh:mm:ss PM'), upper(p.mod_user), to_char(p.mod_date, 'mm/dd/yyyy hh:mm:ss PM'),"+
    "d.email;
    rs = stmt_get_classes.executeQuery(sql);
    while(rs.next()){
    updatedProgramInfo.setProgramId(rs.getString(1));
    updatedProgramInfo.setProgramTitle(rs.getString(2));
    updatedProgramInfo.setProgramDesc(rs.getString(3));
    updatedProgramInfo.setSponsorId(rs.getString(4));
    updatedProgramInfo.setProviderId(rs.getString(5));
    updatedProgramInfo.setProvider(rs.getString(6));
    updatedProgramInfo.setProgramStatus(rs.getString(7));
    date =rs.getString(8);
    updatedProgramInfo.setApprovedBy(rs.getString(10));
    updatedProgramInfo.setNotifyBy(rs.getString(11));
    date =rs.getString(12);
    updatedProgramInfo.setAttachments(rs.getString(13));
    updatedProgramInfo.setWebsite(rs.getString(14));
    updatedProgramInfo.SetProgramComments(rs.getString(15));
    updatedProgramInfo.SetSection(rs.getString(16));
    updatedProgramInfo.SetNotes(rs.getString(17));
    updatedProgramInfo.SetWhoAdded(rs.getString(18));
    updatedProgramInfo.SetDateAdded(rs.getString(19));
    updatedProgramInfo.SetWhoChanged(rs.getString(20));
    updatedProgramInfo.SetDateChanged(rs.getString(21));
    updatedProgramInfo.setProviderEmail(rs.getString(22));
    System.out.print(rs.getString(21));
    session.setAttribute("ProgramBean",updatedProgramInfo);
    response.sendRedirect("UpdateProgram.jsp");
    JSP:
    <a href="mailto:<c:out value="${sessionScope.ProgramBean.providerEmail}"/>">Email <c:out value="${sessionScope.ProgramBean.provider}"/> </a>
    The problem is I could not ge tthe value: ${sessionScope.ProgramBean.providerEmail}, but I have no problem to get the value: ${sessionScope.ProgramBean.provider}.
    By the way, the original program was written by someone else, i am kind of new of jsp stuff. I just tried to add an email part which shows on the bold text. Did I do something wrong? Thanks.

    Mate,
    Two things...
    1. Please try just printing the email address with a straight: <c:out value="${sessionScope.ProgramBean.providerEmail}"/>, then do a VIEW SOURCE off the result... I SUSPECT that the @ in the email address is being translated by the c:out into a character entity... if that's the case just use escapeXml="false" in your c:out tag... but then you'll need to beware of crosssight scripting attacks, apparently.
    See: http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/tld-summary.html
    ... or just use the standard SQL tag library, and avoid the issue completely.
    2. When you post, format your code with the \[code\] \[\/code\] tags... and just remove all the superflious code (don't just bold the pertintant bits... It took me longer to read your code then you took to post it, and I won't bother again.
    Cheers. Keith.

  • Why my textfield can not get focus?

    I put a textfield on the first tab of a tabbed panel. I need this textfield to get the focus when I open the first tab. I tried to use grabfocus() method in the constructor of class, but it does not work. Does anybody know why? and how can I solve it?
    Thanks!

    No, I didn't call grab/requestFocus on the event thread.
    My code is like this:
    public class GeneralPane extends JPanel {
    JPanel ltPane;
    private JTextField txtCountry;
    public GeneralPane() {
    initComponents();
    private void initComponents(){
    setLayout(new BorderLayout());
    //Add another Panel to contain Labels and Text fileds
    ltPane = new JPanel();
    FocusListener mFL = new FL();
    txtCountry = new JTextField("US", 20);
    //this listener is used to store the data in the textfield into a variable
    txtCountry.addFocusListener(mFL);
    // add the textfield into ltPane
    mUtil.insertTextPane(txtCountry,ltPane);
    //txtCountry got focus
    //txtCountry.setFocusable(true);
    ltPane.requestFocus();
    //txtCountry.requestFocusInWindow();
    Then in the main program, I create an instance of this class and then use addTab(...) function into the my tabbedPanel.
    The logic is simple, but the textfield still couldn't get focus when I open the tabbedPanel.

  • Can not get proper font , alignment while generation pDF using Itextsharp

      
     I am developing a winform in which i m taking html data from  which have in line css so when i m genrating pdf it is 
    not properly aligned.
     private void HtmlToPdfConvert()
                try
                    string ClientID;
                    string AssociateID;
                    string DocumentType;
                    //styles.LoadTagStyle(HtmlTags.H1, HtmlTags.FONTSIZE, "16");
                    //styles.LoadTagStyle(HtmlTags.P, HtmlTags.FONTSIZE, "20");
                    //styles.LoadTagStyle(HtmlTags.P, HtmlTags.COLOR, "Green");
                   // styles.LoadTagStyle(HtmlTags.DIV, HtmlTags.COLOR, "Green");
                    string file1 = ConfigurationManager.AppSettings["Pdffilename"].ToString();
                    HtmltoPdfBusinessLogic htmlpdf = new HtmltoPdfBusinessLogic();
                    ds = htmlpdf.GetContent();
                    if (ds != null)
                        for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                            file2 = file1;
                            label2.Text = ds.Tables[0].Rows[i]["PdfFileName"].ToString();
                            string fname = label2.Text.ToString();
                            string[] words = fname.Split('_');
                            for (int j = 0; j < words.Length - 2; j++)
                                ClientID = words[0];
                                file2 = file2 + ClientID;
                                AssociateID = words[1];
                                file2 = file2 + "\\" + AssociateID;
                                DocumentType = words[2];
                                file2 = file2 + "\\" + DocumentType;
                            //Directory.CreateDirectory(file2);    
                            pdffname = file2 + "\\" + label2.Text + ".pdf";
                            if (System.IO.Directory.Exists(file2))
                                string[] files = System.IO.Directory.GetFiles(file2);
                                if (files.Length > 0)
                                    foreach (string file in files)
                                    File.Delete(file);
                                    ConvertHtmlToPdf(i);
                                else
                                    ConvertHtmlToPdf(i);
                            else
                                ConvertHtmlToPdf(i);
                        this.Close();
                        //if (ds.Tables[0].Rows.Count < 1)
                        //    MessageBox.Show("Documents Are Not Exist");
                        //    this.Close();
                    /*  System.IO.Directory.CreateDirectory((file2));
                      outputFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), pdffname);
                      label1.Text = ds.Tables[0].Rows[0]["TM_Content"].ToString();
                      string htmltxt = label1.Text.ToString() + imgpath;
                      // HtmlStream = label1.Text;
                      Document document = new Document(PageSize.A4, 5, 5, 15, 5);
                      FileStream fs = new FileStream(outputFile, FileMode.Create, FileAccess.Write, FileShare.None);
                      PdfWriter w = PdfWriter.GetInstance(document, fs);
                      document.Open();
                      List<IElement> objects = HTMLWorker.ParseToList(new StringReader(htmltxt), styles);
                      foreach (IElement element in objects)
                          document.Add(element);
                      document.Close();
                      file2 = string.Empty;
                catch (Exception exp)
                    MessageBox.Show(exp.Message);

    iText is a third party library to create PDF originally written for java. iTextSharp is the C# adaptation of that library.
    Question regarding iText are better asked on the iText forum, rather then the Microsoft Forum:
    http://itextpdf.com/support
    They mostly use StackOverflow and SourceForge for the free support, so either of those might be a good place to start.
    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

  • HT4910 i save my photos to camera roll. then back up but can't see it on icloud. why? we just lost 300 photos on my other iphone because we do not get proper help. that's why i need to learn now.

    i save my photos to camera roll. then back up but can't see it on icloud. why? we just lost 300 photos on my other iphone because we do not get proper help. that's why i need to learn now.

    You can't view your back up files at icloud.com.
    You can't view your camera roll and you can't view your Photo Stream files at icloud.com.
    The icloud back up plan allows you to "restore" your iOS device from the files you backed up at icloud.com.

  • Why the 2LIS_08TRTK extractor can not get  all data

    Hello, BW Gurus.
    Why the 2LIS_08TRTK and 2LIS_08TRTLP extractors can not get all data. I had used the RSA3 and get 10 registers, when a check at the VTTK table I had 20 registers, I didnt use filters at RSA3, could you help to know what happen o correct it.

    Is it because
    <i>
    Shipment documents and their dependent objects (shipment stages as well as shipment items [deliveries in the shipment]) are only extracted into BW when the Shipment completion status has been set.
    This is necessary because the numeric values that result from the delivery documents are only established at the time. If the data were already stored earlier in BW, the shipment data would not be updated if the delivery notes were changed in BW.
    </i>
    - from oss note 573470.

  • HT1454 why i can not get video out from my ipod touch after i did the upgrade

    why i can not get video out from my ipod touch after i did the upgrade

    why i can not get video out from my ipod touch after i did the upgrade

  • I have Firefox 6.0 running under Windows XL. When I forward an email with a URL in it, my recipients tell me the URL is not highlighted and they have to cut and paste it into their browser. Why? How can I get my forwarded URLs to be highlighted?

    I have Firefox 6.0 running under Windows XL. When I forward an email with a URL in it, my recipients tell me the URL is not highlighted and they have to cut and paste it into their browser. Why? How can I get my forwarded URLs to be highlighted?

    If you think getting your web pages to appear OK in all the major browsers is tricky then dealing with email clients is way worse. There are so many of them.
    If you want to bulk email yourself, there are apps for it and their templates will work in most cases...
    http://www.iwebformusicians.com/Website-Email-Marketing/EBlast.html
    This one will create the form, database and send out the emails...
    http://www.iwebformusicians.com/Website-Email-Marketing/MailShoot.html
    The alternative is to use a marketing service if your business can justify the cost. Their templates are tested in all the common email clients...
    http://www.iwebformusicians.com/Website-Email-Marketing/Email-Marketing-Service. html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • Lost newly purchased Iphone5, Reported complain in police station but not getting proper responce. Can apple help me out for this?

    Lost newly purchased Iphone5, Reported complain in police station but not getting proper responce. Can apple help me out for this?

    Oh, don't worry. I know exactly. I'm a retired law enforcement officer after 30 years. I didn't mean for them to allow you to use the Internet, I meant for them to assign an officer to try and track the device for the victim. Again, that would require the victim to provide their Apple ID and password, which most would not want to provide.
    Pinging the phone as you mention is only when there is probable cause and that is done through the carrier.
    I'm glad to see someone also understand that a stolen cell phone is not as important to law enforcement as it is to the victim. It is unfortunate as smartphones get more expensive. Hopefully as iOS 7 makes it debut later this year, the work Apple has done will have some impact on smartphone theft. Other manufactures and carriers are starting to improve here in the states. It never was something carriers worryed about with blacklisting. This is where they were a step ahead in Europe.

  • Why I can not get the medium crate of gold

    I need to ask why I buy medium crate of gold in the contract killer : zombies 2 I can not get it can help me check what happen

    What happens when you try to buy it ? If you are getting a message to contact iTunes support then you can do so via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then try selecting Purchases, Billing & Redemption

  • HT5484 Hi, I am using "Avenir Heavy" font in my iOS 6 app but when I run it on iOS5 the label on which I am placing Avenir fonts changes lot and I am not getting proper look n feel. How can I solve this issue ?

    Hi, I am using "Avenir Heavy" font in my iOS 6 app but when I run it on iOS5 the label on which I am placing Avenir fonts changes lot and I am not getting proper look n feel. How can I solve this issue ?

    Post your question on the Developer forums:  http://devforums.apple..com

  • I am having same problem with apple tv need 4.4 version and can not find solution this a brand new product out of box yesterday why would it not already have updated version. I am getting frustrated that I can not get this mirroring icon to work. I

    I am having same problem with apple tv need 4.4 version and can not find solution this a brand new product out of box yesterday why would it not already have updated version. I am getting frustrated that I can not get this mirroring icon to work. I have tried all suggestions in this thread and nothing works. I also hooked up to laptop through iTunes with micro USB nothing!!!

    The new appletv software came out 2 or 3 days ago, how would Apple get it on the device in the box in a store?
    Why don't ou update the appletv software?

  • Please I can not get a .jar file to run on XP SP3 start/run/cmd/

    I can not get a .jar file to run on XP SP3 start/run/cmd/
    Please help if can figure this out. I'm convinced it is a Windows XP SP3 problem from searching on google and seeing other ppl on XP SP3 with same problem (but no working solution for myself). I'll try to be complete-listing all I've done.
    I had installed: Java SE Runtime Environment v6u14 for Windows Multi-language
    I had checked here it was working properly: http://www.java.com/en/download/manual.jsp
    I'm trying to run this jar file (soht-client-0.6.2.jar):
    http://prdownloads.sourceforge.net/telnetoverhttp/soht-java-client-0.6.2.zip?download
    http://www.ericdaugherty.com/dev/soht/javaclient.html < this is the information for the program.
    (yes the file can be executed and should open the program's window
    I wanted to post screenshot of it but friend that it's working for isn't here)
    _(Please find log of all cmds I did in this post here: http://pastebin.com/f792983df )_
    _I have extracted +'all' the files to: C:\062\+_ (I have tried using other directories, same problem)
    ++I then start/open/run/cmd+
    then I: cd C:\062\+
    then I try various commands - all+ of these do absolutely nothing- meaning no errors, no reply, no window opens, nothing except enters that directoy again:
    java -jar soht-client-0.6.2.jar
    java -jar -client soht-client-0.6.2.jar
    java -client -jar soht-client-0.6.2.jar
    java -jar soht-client-0.6.2.jar soht.properties
    soht-client-0.6.2.jar
    So I try this cmd: java soht-client-0.6.2.jar
    Reply:
    C:\062>java soht-client-0.6.2.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: soht-client-0/6/2/jar
    Caused by: java.lang.ClassNotFoundException: soht-client-0.6.2.jar
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: soht-client-0.6.2.jar. Program will exit.
    I try this cmd:
    java -jar soht-client-0.6.2.jar -client
    Reply:
    C:\062>java -jar soht-client-0.6.2.jar -client
    Unable to load configuration file: -client - java.io.FileNotFoundException: -cli
    ent (The system cannot find the file specified)
    SOHT Java Client
    The SOHT Java Client requires a properties file. Either start
    the application in the same directory as the soht.properties
    file, or specify the file name on the command line:
    java -jar soht-cleint-<version>.jar c:\soht.properties
    So then I do these cmds which produce the exact same error/reply just above; Unable to load..:
    j_ava -jar soht-client-0.6.2.jar -client soht.properties_
    java -jar soht-client-0.6.2.jar -client C:\062\soht.properties
    So then I copy soht.properties to C root and do:
    java -jar soht-client-0.6.2.jar -client C:\soht.properties <same error as above
    Then from other information I have read I right click on the .jar file, select open with Always open with:
    _"C:\Program Files\Java\jre6\bin\javaw.exe"_
    Try again.. same problem.
    Then I do cmd:
    _"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\062\soht-client-0.6.2.jar"_
    does nothing, retry the other commands same thing (either nothing or those same replies)
    Then I read (http://forums.sun.com/thread.jspa?threadID=5384879) someone had the same problem as I and they solved it by uninstalling all Java/reboot/ then install JDK 6 Update 14 with NetBeans 6.5.1 start NetBeans and then it worked for them.
    So I unistalled all Java, rebooted and gave the cmd another try (before re-installing), now a new error, of course:
    C:\062>java -jar soht-client-0.6.2.jar
    'java' is not recognized as an internal or external command, operable program or batch file.
    Then I install  Java SE and NetBeans Cobundle (JDK 6u14 and NB 6.5.1) Final Release/ reboot/ open Netbeans/
    go to test java page; all is good, run cmds again -and still nothing..
    C:\062>java -version
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
    I reassociate program with: C:\Program Files\Java\jre1.6.007\bin\javaw.exe_
    same thing.. nothing
    Thank you very much for your time :D_
    PS. My computer has been newly reformatted so needing another reformat I'm sure is not the solution.

    Thank you very much for your replies Taggert_77 & swmtgoet_x :D
    Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
    Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
    This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
    swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
    The proper cmd is simply: java -jar soht-client-0.6.2.jar
    I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
    java -client -jar soht-client-0.6.2.jar soht.properties
    Thank you again...the mystery remains
    PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above).

  • Can not get wiki to work

    Hey there,
    I have been trying to set up Leopard server for over a week. I can not get DNS, Open Directory and Wiki to work for me. This is my 5th instal. The first attempt, I went with standard thinking that the ease of use would be an asset, but then after getting it going I realized that there was no FTP access with standard, which was not an option.
    INSTAL 2: I reformatted and went ahead with the advanced server this time around. In no time I had FTP; AFP; iChat and web services running fine. Then when I went to set up wiki i realized that I had to have DNS and Open Directory running before that would work. I guess that I should of read up on that one... I had actually created all of my users and groups in local directory which seemed to work fine for ftp; afp and ichat for a few days but I really wanted to get the wiki going.
    INSTAL 3: I reformatted, set up DNS (or at least I thought I did) Open Directory and then recreated all of my users and groups in Open directory. I quickly got afp running; then ftp and ichat (jabber) with no issues. But when I went ahead with wiki, I could not get it to work properly. I could log into the wiki from my LAN using the local domain name that I had chosen but could not get it to work when I would attempt to do it from home using my dyndns.org account which forwards to my office IP which is mapped through router port 80 to my servers local IP. When doing this I was taken to: http://myurl.dyndns.org/groups/workgroup/
    I got the message:
    "Not Found
    404: No group with that name (workgroup) hosted on this server"
    If I click on "Groups" the error goes away and I see my wiki group but if I clicked on it I would get:
    "Not Found
    404: No group with that name (marcato) hosted on this server"
    When I went back to the office I could still get at my wiki by going to my local url: minserver.local and then selecting groups and then clicking on the desired wiki and then logging in. I then tried to accessing it using the machine's local IP since that is essentially what is happening when I come in from the WAN side using my dyndns.org account. So i typed in its local address and got the 404 error. When I click on groups again, just like when I was home coming in over the WAN, I get the same message. Why would I be seeing the group but not able to log in to it. Why would it allow me to access and use the Wiki from the LAN using miniserver.local but not using the machine's static Local IP address?
    I then decided to go watch all of Sean Collin's videos on Leopard Server in oder to get a handle on this.
    INSTAL 4: Walked through everything with Sean's video up to getting DNS set up. It failed! At this point I was frustrated so I decided to throw in the towel on Advanced. I got out my old tiger installer and set up ftp on another older G4 and then went for INSTAL 5. This time I reverted back to Standard, got all of the services running fine but as soon as I got home I ran into the same issue with the wiki. I could not access it from outside of the Office LAN. I went through and opened every port recommended and still nothing. Then, in efforts to try to make it work and in frustration of the limitations of the Standard interface I upgraded the configuration from standard to advanced to see if I could get to the bottom of this. I went back to reading a bunch more stuff about Mac Server and found the Sudo Changeip -checkhostname. It gave me the proper IP of the server as well as the proper hostname but said that the DNS was not working properly and needed to be repaired. I tried a few hacks I found online but still could not get the DNS going properly
    I am not sure what to do now. In an ideal world I would love to get leopard Advanced running properly so that I could host the wiki, afp, ftp, and ichat (jabber) from the same machine. But no matter what I try I can not seem to wrap my head around DNS. Even if I could do it with Standard and keep the ftp on the old mac with tiger... This is frustrating since I feel really confident with setting up everything else, I just do not seem to be able to get DNS to work properly which I assume has to do with the problem with the wiki not working from the WAN.
    Can someone please help me here?

    I have tried a bunch of hacks to try to get things working and still nothing. I actually find that the server is running really slow now so I am clearly going to be starting from skratch again. I will wait for some advice before I proceed. Here is what I have set up:
    1. I made a fake url using dyndns which routes to the IP address of the router at work. I want to be able to use this address to access the wiki from WAN
    2. I have the following ports opened and assigned to my servers LAN address:
    On TCP 113 113 10.0.1.22 Identification Protocol
    On TCP 88 88 10.0.1.22 Kerberos
    On TCP 106 106 10.0.1.22 Mac OS X Server Password Server
    On TCP 25 25 10.0.1.22 Mail service smtp
    On TCP 123 123 10.0.1.22 Network Time Protocol (NTP)
    On Both 311 311 10.0.1.22 Remote Server Admin / Workgroup
    On TCP 22 22 10.0.1.22 SSH
    On Both 3283 3283 10.0.1.22 Server ARD
    On Both 5900 5900 10.0.1.22 Server VNC ARD
    On UDP 500 500 10.0.1.22 VPN
    On UDP 1701 1701 10.0.1.22 VPN
    On TCP 1723 1723 10.0.1.22 VPN
    On UDP 4500 4500 10.0.1.22 VPN
    On UDP 170 170 10.0.1.22 VPN L2TP
    On Both 80 80 10.0.1.22 Web Server on Mini
    On TCP 625 625 10.0.1.22 Workgroup Manager
    On TCP 21 21 10.0.1.22 ftp
    On Both 8443 8443 10.0.1.22 iCal SSL
    On Both 8008 8008 10.0.1.22 ical server
    On TCP 5190 5190 10.0.1.22 ichat Server
    On TCP 5220 5220 10.0.1.22 ichat Server
    On TCP 5222 5222 10.0.1.22 ichat Server
    On TCP 5223 5223 10.0.1.22 ichat Server
    On TCP 5298 5298 10.0.1.22 ichat Server
    On UDP 5190 5190 10.0.1.22 ichat Server
    On UDP 5297 5297 10.0.1.22 ichat Server
    On UDP 5298 5298 10.0.1.22 ichat Server
    On UDP 5353 5353 10.0.1.22 ichat Server
    On UDP 5678 5678 10.0.1.22 ichat Server
    On UDP 16384-16403 10.0.1.22 ichat Server
    On Both 7777 7777 10.0.1.22 ichat Server file
    On TCP 5269 5269 10.0.1.22 ichat Server to Server
    On Both 5109 5109 10.0.1.22 istat for mini server
    On Both 16563 16563 10.0.1.119 pc
    On Both 8086 8086 10.0.1.22 wiki server
    On Both 8010 8010 10.0.1.22
    3. I am not sure what is meant exactly by a fully qualified domain. From what I understood in Sean's Collin's videos was that this was a url that I was to make up on my local network and that putting the . at the end made it FQDN. I choose: miniserver.local. Am I totally missing the mark here?
    Here are the parts of the set up where I am really confused:
    a. When setting up the server with Server Assistant, when it asks for Primary DNS and computer name. What am I supposed to put in here? I read one post that recommended that quiting the set-up assistant before this point and doing it manually?
    b. Once I get through the assistant and launch Server Admin, and sign into it using the servers local IP, get into DNS and go to add zones, I am REALLY CONFUSED.
    - I add my primary zone, What is the primary zone? What do I enter here? What about the name server? I do not understand the difference between these 2 things.
    c. Then I go to add my A record for the machine. What should its Machine name be? the same as the primary zone?
    What is the easiest way to get through this? I know that once I this is set up and I can get the wiki to work over the WAN that I am not going to have any problems with the rest. I don't even want to bind the computers to the server if I don't have to. I know that for ichat (jabber); afp and ftp that this is not required since every time I have attempted to get the server up these services worked every time without the binding.

Maybe you are looking for

  • How to switch between pages in a JTabbedPane

    I hava form with a JTabbedPane whit 5 "pages" om page 1 there is a button that when pressed i want to switch to page 5 and display that content I have tried the setSelectedIndex method but i does not work.. Any tips?

  • UNIX command required to elevate end user Admin privs on  mac

    Hi All, I thought this would be easy but we've drawn a blank. So much detail online and in the ARD manual seems to be about setting admin priveledges for end users of actual ARD. What we would like to do is to make the user an administrator of their

  • Prevent user from opening an applescript file

    Greetings,      I have written an Applescript for use by the User to change file permissions on folders or files they get from clients from outside our company.  The permissions of these files denies the User from opening the files and work with them

  • Videos for new ipod nano

    How can i know which videos will play in my Ipod before download them?

  • Firewire issues with Leopard

    I updated to Leopard few days ago on my G5 Dual 2Ghz FW Card is http://www.sonnettech.fr/product/tango_2.html - First problem was : tasks UserEventAgent and CoreAudio turned to red into activity monitor - I sampled the tasks (Actity monitor/Inspect)