Referring back to a class

when classA creates an instance of classB, how can classB referr back to class A (withough being static) there is the way to use super to do things with the superclass that you extend, but is there a way to access a the class that created an instance of you?
I know that sounds confusing, so ill give an example:
I have a chat client application. It creates an instance of a little class that watches for incomming messages.
Can this watcher class send a little message to the main client reporting that it recieved a message?
or do I have to make a thread and use a method like
public String checkMessage()
to access it, and call this method ever 100 ms or something?
It seems a little bit over done to include a pointer to classA when creating classB:
new classB(this);
public classB(classA Caller)
caller = Caller;
public void recievedMessage(String message)
caller.reportMessage(message);
}just so that class be can report back. can i call a special keyword to find out who created the class instance?

It seems a little bit over done to include a pointer
to classA when creating classB:I wouldn't say it's overdone. If the B is associated with a particular A, and needs to know about that A, then passing a reference to the A into the ctor is the normal way you'd do that. You could also maintain a separate map of which Bs are associated with which As, but I doubt that will benefit you here.
just so that class be can report back. can i call a
special keyword to find out who created the class
instance?Nope.
Objects don't create objects. Code creates objects. The question "Which object created this other object over here?" is best answered "[url http://en.wikipedia.org/wiki/Mu_(Japanese_word)]Mu."

Similar Messages

  • Converting a class object back to a .class file

    Hi,
    How can i convert a class object back to a .class file ? Thanks

    any pointers on how to do it then ? i don't have
    access to the native codeIf I have understood you correctly, you have native code that generates bytecode. Currently you load the class this bytecode represents right into the classloader, but you want to save it to disk as a .class file. Right?
    If so, you just have to get hold of that bytecode before it "disappears" into the classloader, and save it to disk. How you can best do this depends on exactly how you communicate with that native code.
    If I have misunderstood your problem (and that's not unlikely), please try to be clearer.

  • HT204088 I have itunes transactions on my bank statement that are not mine. I want to speak to someone, but I keep being referred back to the website!

    I have tried to use the freephone number, but just get referred back to the website. How do you get to speak to someone?

    Welcome to the Apple Community.
    You'll have to go through the usual channels, just like everyone else.
    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History.

  • In IPhone Apps crash when press back buton . When press back back button Last class is appeared slightly slighly ash, with no error or warning .

    Hi,
    I am developing apps on for 4.1 and on Xcode3.2. My Apps crash when press back buton . When press back back button Last class is appeared slightly than crash, with no error or warning ....Here are the code....crash on Back Funtion
    #import "TransactionSummaryDetailViewController.h"
    #import "TransactionSummaryData.h"
    #import "Constant.h"
    #import "DataBase.h";
    #import "Common.h"
    #import "YPCardHolderServiceService.h"
    #import "SelectionScreenViewController.h"
    @implementation TransactionSummaryDetailViewController
    @synthesize table,cardReference;
    @synthesize waitIndicator,transactionsummary,keyArray,valueArray,isSummaryAvailable;
    @synthesize startDate,endDate;
    // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
        if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
            // Custom initialization
        return self;
    -(void)getrowcount{
        if(transactionsummary.cardholdernmae !=nil){
            [keyArray addObject:@"Card Holder Name: "];
            [valueArray addObject:transactionsummary.cardholdernmae];
        if(transactionsummary.cardnumber!=nil){
            [keyArray addObject:@"Card Number: "];
            [valueArray addObject:transactionsummary.cardnumber];
        if(transactionsummary.debittransactioncount != nil){
            [keyArray addObject:@"Debit Tx. Count: "];
            [valueArray addObject:transactionsummary.debittransactioncount];
        if(transactionsummary.debittransactionvalue!=nil){
            [keyArray addObject:@"Debit Tx. Value"];
            [valueArray addObject:transactionsummary.debittransactionvalue];
        if(transactionsummary.credittransactioncount!=nil){
            [keyArray addObject:@"Credit Tx. Count: "];
            [valueArray addObject:transactionsummary.credittransactioncount];
        if(transactionsummary.credittransactionvalue!=nil){
            [keyArray addObject:@"Credit Tx. Value: "];
            [valueArray addObject:transactionsummary.credittransactionvalue];
    // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    - (void)viewDidLoad {
        appDelegate = [[UIApplication sharedApplication]delegate];
        keyArray = [[NSMutableArray alloc]init];
        valueArray = [[NSMutableArray alloc]init];
        [self getrowcount];
        NSLog(@"Key Array Count is %d",[keyArray count]);
        [table setBackgroundColor:[UIColor clearColor]];
        [table setSeparatorColor:TableViewCellSeperatorColor];
        [waitIndicator setHidden:YES];
        [self setTitle:@"Summary Details"];
        UIButton *button =  [UIButton buttonWithType:UIButtonTypeCustom];
        [button setImage:[UIImage imageNamed:@"list.png"] forState:UIControlStateNormal];
        [button addTarget:self action:@selector(BacktoView) forControlEvents:UIControlEventTouchUpInside];
        [button setFrame:CGRectMake(0, 0, 76, 44)];
        self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:button];
        if(!isSummaryAvailable)
            if([Common isNetworkAvailable])
                [waitIndicator startAnimating];
                YPCardHolderServiceService *services = [[YPCardHolderServiceService alloc] init];
                YPTransactionsSummaryRequest *summaryRequest = [[YPTransactionsSummaryRequest alloc] init];
                summaryRequest.SC = appDelegate.SC;
                summaryRequest.userName = appDelegate.userName;
                summaryRequest.valid =TRUE;
                summaryRequest.cardReference =[NSString stringWithFormat:@"%@",cardReference];
                NSLog(@"Start Date Is %@ and End Date is %@",startDate,endDate);
                summaryRequest.startDate = startDate;
                summaryRequest.endDate = endDate;
                summaryRequest.applicationType = @"M";
                [services getTransactionsSummary:self action:@selector(getTransactionsSummaryHandlers:) transactionsSummaryRequest:summaryRequest];
                [summaryRequest release];
                [services release];
        [super viewDidLoad];
    //Handle the Response of getTransactionsSummary
    -(void)getTransactionsSummaryHandlers:(id) value
        [waitIndicator stopAnimating];
        // Handle errors
        if([value isKindOfClass:[NSError class]]) {
            NSLog(@"%@", value);
            return;
        // Handle faults
        if([value isKindOfClass:[SoapFault class]]) {
            NSLog(@"%@", value);
            return;
        // Do something with the YPLoginResponse* result
        YPTransactionsSummaryResponse* result = (YPTransactionsSummaryResponse*)value;
        if(result.statusCode == 0)
            NSLog(@"Number of Transaction is =%d",[result.transactionSummaryList count]);
            NSLog(@"Step 1 ='%@'",appDelegate.userID);
            NSString *deleteQuery = @"delete from TransactionSummary where userid = ";
            NSLog(@"Step 1 ='%@'",appDelegate.userID);
            deleteQuery = [deleteQuery stringByAppendingString:[NSString stringWithFormat:@"%@ and cardreference = '%@'",appDelegate.userID,cardReference]];
            NSLog(@"delete query= '%@'",deleteQuery);
            [DataBase deleteDataFromTable:deleteQuery];
            NSLog(@"delete query= '%@'",deleteQuery);
            //for (int i =0; i< [result.transactionSummaryList count]; i++)
            for (int i =0; i< [result.transactionSummaryList count] -2; i++)
                NSLog(@"for loop= %d",i);
                YPTransactionSummaryDetails *transactionSummary = (YPTransactionSummaryDetails*)[result.transactionSummaryList objectAtIndex:i];
                NSLog(@"cardholdername= '%@'",transactionSummary.cardholderName);
                /*NSString *insertQuery = @"Insert into TransactionSummary(cardholdername,cardnumber,debittransactioncount,debittransac tionvalue,credittransactioncount,credittransactionvalue,userid) values(";
                insertQuery =[insertQuery stringByAppendingString:[NSString stringWithFormat:@"'%@','xxxx xxxx xxxx %@',%d,%d,%d,%d,'%@',%@)",
                                                                   transactionSummary.cardholderName,transactionSummary.cardNumber,transactionSumm ary.debitTransactionCount,
                                                                   transactionSummary.debitTransactionValue,transactionSummary.creditTransactionCo unt,transactionSummary.creditTransactionValue,
                                                                   appDelegate.userID]];*/
                //Add by sarvesh
                NSString *insertQuery = @"Insert into TransactionSummary(cardholdername,cardnumber,debittransactioncount,debittransac tionvalue,credittransactioncount,credittransactionvalue,cardreference,userid) values(";
                insertQuery =[insertQuery stringByAppendingString:[NSString stringWithFormat:@"'%@','%@',%d,%d,%d,%d,'%@',%@)",
                                                                   transactionSummary.cardholderName,transactionSummary.cardNumber,transactionSumm ary.debitTransactionCount,
                                                                   transactionSummary.debitTransactionValue,transactionSummary.creditTransactionCo unt,transactionSummary.creditTransactionValue,cardReference,
                                                                   appDelegate.userID]];
                NSLog(@"Insert Query for Transaction Summary is %@",insertQuery);
                [DataBase InsertIntoTable:insertQuery];
            //Read Update Data From DataBase and Refresh Table
                NSString *query = @"Select * from TransactionSummary where userid = ";
                query = [query stringByAppendingString:[NSString stringWithFormat:@"%@ and cardreference = '%@'",appDelegate.userID,cardReference]];
            NSLog(@"select query= %@",query);
                NSMutableArray *temp=[DataBase getTransactionSummaryTableData:query];
                if([temp count] > 0)
                    transactionsummary = (TransactionSummaryData*)[temp objectAtIndex:0];
                    [keyArray removeAllObjects];
                    [valueArray removeAllObjects];
                [self getrowcount];
                [table reloadData];
    -(void)viewDidAppear:(BOOL)animated
        CGFloat navBarHeight = 50.0f;   
        CGRect frame = CGRectMake(0.0f, 20.0f, 320.0f, navBarHeight);
        [self.navigationController.navigationBar setFrame:frame];
        [super viewDidAppear:animated];
    -(IBAction)BacktoView
        NSLog(@"in back function..TrasactionSummaryDetail");
        SelectionScreenViewController *screenView=[[SelectionScreenViewController alloc] initWithNibName:@"SelectionScreenViewController" bundle:nil];
        [self.navigationController popViewControllerAnimated:YES];
        [screenView release];
    - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{
        return UITableViewCellEditingStyleNone;
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
        return 1;
    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
        return cellHeightForGroupedTable;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
        if(section == 0)
            return [keyArray count];
        else       
            return 0;
    - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section{
        NSString *title = nil;
        switch (section){
            case 0:{
                //title = @"Summary Details";
                break;
        return title;
    - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
        if ([self tableView:tableView titleForHeaderInSection:section] != nil) {
            return tableHeaderHeight;
        else {
            // If no section header title, no section header needed
            return 0;
    - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
        NSString *sectionTitle = [self tableView:tableView titleForHeaderInSection:section];
        if (sectionTitle == nil) {
            return nil;
        // Create label with section title
        UILabel *label = [[[UILabel alloc] init] autorelease];
        label.frame = CGRectMake(20, 6, 300, 30);
        label.backgroundColor = [UIColor clearColor];
        label.textColor = HeaderTextColor;
        label.shadowColor = HeaderTextShadowColor;
        label.shadowOffset = CGSizeMake(0.0, 1.0);
        label.font = HeaderTextFontSize;
        label.text = sectionTitle;
        // Create header view and add label as a subview
        UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320,60)];
        [view autorelease];
        [view addSubview:label];
        return view;
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
        UITableViewCell *cell = nil;
        NSString *cellIdentifier;
        cellIdentifier = @"SectionsTableIdentifier";
        int row = [indexPath row];
        CGRect nameLabelRect = CGRectMake(19 , 8, 240, 29);
        CGRect cardlabelRect = CGRectMake(19,31,240,15);
        UILabel *nameLabel = [[UILabel alloc] initWithFrame:nameLabelRect];
        UILabel *cardnumber = [[UILabel alloc] initWithFrame:cardlabelRect];
        cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
        if(cell == nil){
            cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:cellIdentifier] autorelease];
        // Remove all subview from cell content view
        for (UIView *view in cell.contentView.subviews){
            [view removeFromSuperview];
         [cell setAccessoryType:UITableViewCellAccessoryNone];
        [nameLabel setTextColor:firstLabelFontColor];
        [nameLabel setFont:firstLabelFont];
        [nameLabel setFont:firstLabelFontSize];
         nameLabel.textAlignment = UITextAlignmentLeft;
         nameLabel.text = [NSString stringWithFormat:@"%@ : %@",[keyArray objectAtIndex:row],[valueArray objectAtIndex:row]];
         [cell.contentView addSubview: nameLabel];
         cell.selectionStyle = UITableViewCellSelectionStyleNone;
        [cell setBackgroundColor:[UIColor clearColor]];
        [cell setBackgroundColor:TableViewCellColor];
        [nameLabel setBackgroundColor:[UIColor clearColor]];
        [cardnumber setBackgroundColor:[UIColor clearColor]];
        [cardnumber release];
        [nameLabel release];
        return cell;
    // Override to allow orientations other than the default portrait orientation.
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceO rientation {
        // Return YES for supported orientations
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    - (void)didReceiveMemoryWarning {
        // Releases the view if it doesn't have a superview.
        [super didReceiveMemoryWarning];
        // Release any cached data, images, etc that aren't in use.
    - (void)viewDidUnload {
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    - (void)dealloc {
        [table release];
        [waitIndicator release];
        [keyArray release];
        [valueArray release];
        [transactionsummary release];
        [super dealloc];
    @end

    This is the user-to-user tech support site.  For carrier issues go to the Dev forums.
    You might want to note that the current iOS is 4.3.3, and the current SDK is 4.3 and XCode 4.0.2

  • Bought an app one month ago. Now it demands that I repay the subscription fee for it. Tried to report problems on iTunes and just get referred back to Apple Support website. What do I do?

    Bought an app one month ago. Now it demands that I repay the subscription fee for it. Tried to report problems on iTunes and just get referred back to Apple Support website. What do I do?

    Micromedex Drug Interactions. The app itself is free. A one year subscription costs $9.99. It worked fine for a month. THen an "update" was automatically installed and it now demands a new $9.99 payment. Thank you.

  • Compiling java package class referring a default package class.

    I am trying to compile a java class having a package defination referring a java class with a default package.
    The code for the default package class is .
    public class Test{.
    public static void main(String[] args){
    System.out.println("Hello World!");
    This class compiles fine.
    I have another class called PackJava, whose code is :
    package test;
    import Test;
    public class PackJava{
    public static void main(String[] args){
    Test test = new Test();
    System.out.println("Hello World!");
    I have Test file in the windows path
    D:\development\packagetest\example
    and the PackJava java file in the path
    D:\development\packagetest\example\test
    I have set the CLASSPATH environment varibale as
    D:\development\packagetest\example;.
    When I try to compile the PackJava from the
    D:\development\packagetest\example path giving the command as
    javac -classpath . test\PackJava.java
    or
    javac -classpath %CLASSPATH% test\PackJava.java
    it gives me error,
    Do any of you have an idea of the parameter i should pass
    to the -classpath option
    Thanks

    There is a way around all this. The classes in the default packages need to implement an interface with the methods require. The interface can be in any package you want ie. com.work.around.interf.MyInterface1. Next, make this interface available in a Singleton. - The only catch here is that, the main method must reside in default package as well. And o, on start of main, instantiate the class you want and put it in the singleton. There after, you may refer to it from the singleton.
    Enjoy.

  • Child-class refering to other Child-classes

    Hello!
    I am an inexperienced Java-programmer who have recently given the following some thought: if I have a Parent class that creates an instance of another class, and that class, in turn, needs to refer back to a sibling instance in the Parent class, what is the best way to go?
    I can see possibilities with creating a static method in Parent, that returns a reference to whatever other child class you might need to access. Also, I guess you could send the Parent-class to the child class as an argument, and save it in a reference-variable to use when you need to use one of the Parents non-static methods. Probably there are more possible ways.
    But what I'm asking is; which way is the most "legitime" when it comes to OOP? Surely it's butt-ugly to have a load of static methods in a Parent-class, or to propagate the Parent class through levels and levels of childs and grand-childs.
    If I haven't made myself clear -- I have doubts about my English :P -- I'll try to illustrate my question with a short code-snippet below
    Class Parent
    Child myChild;
    Sibling mySibling;
    public Parent()
    myChild = new Child();
    mySibling = new Sibling();
    // ... more follows
    Class Child
    public Child()
    // Here, I want to somehow access "mySibling" in class Parent
    // ... more follows
    // ... more follows
    Class Sibling
    // ... more follows
    }

    As I tried to illustrate with my code snippet, the children are of separate classes. I could yet again clarify my point by giving a more concrete example, one that's the actual cause of my question.
    I have a class [MainClass] that extends JFrame, implements MouseListener, and calls its own constructor in a main()-method.
    The constructor then goes about creating the Frame's interior by creating instances of JPanels and, in one case, an extenden JPanel called CardPanel (implements ActionListener). So now we have three JPanels (including the extended) active:
    JPanel cardPanelButtons; // is the topmost panel in the frame, and lets the user switch between the different cards in the CardPanel. It contains three buttons that are in a ButtonGroup to make sure only one of them is pressed at any one time.
    CardPanel cardPanel; // is centered in the frame, and contains every interactive item in the application, except for the buttons in the cardPanelButtons-JPanel
    JPanel statusPanel; // contains a non editable JTextArea for status-messages
    CardPanel creates three panels in its constructor, and adds these to itself.
    In one of these panels (that are selected by the user, clicking on the buttons in the cardPanelButtons-JPanel) there is a "Search"-button that when pressed, performs a Database-search and then pops up the next card in the CardPanel with the apropiate query result filled in and displayed. This is all good, however for GUI-purposes, this action requires the apropiate button in the cardPanelButtons-JPanel to be "pushed" automatically when this switch between cards take place. Since these buttons are unknown to CardPanel, it needs to somehow reach them, which is where I'm starting to wonder what the best way around this is.
    Should I have the CardPanel-constructor take the parent class as an argument, and access the buttonGroup by a public getter-method in MainClass. Or should I static a public getter-method in the MainClass, letting me ignore to pass on the MainClass for reference. Should I ignore extending JPanel to create CardPanel altogether, and add everything straight into the JFrame from a MainClass-method?
    What is the most correct way, or the way programmers usually go about this type of problem?
    (In order to make myself perfectly clear, this reply is quite extensive. I apologize if I got a bit carried away..)

  • Event triggering changes back to consumer class

    Hi all, newbie at Java and I hope you can give me a hand on this.
    Suppose I have 2 classes A and B. A has an instance of B, an event takes place in B and is caught by a listener in B.
    Can the listener call a method in A? I cant see how this can be done since B hasnt a handle to A.
    Many thanks...Peter

    It is cleaner to use an inner class if only the containing class will be using it. However, it's common to have listeners (especially those that are resued) as a separate class.
    You can either use reflection (see Class.getMethods()) or something like this:
    If all classes that can potentially have the method you're referring to implement an interface that declares the method, you can just blindly call the method. If it doesn't make sense for a given class to implement the behavior, you can leave the implementation blank.
    For example:
    public interface I {
        void doIt();
    // source of an event
    public class A implements I {
        public void doIt() {
            // do something special
            // code goes here
    // source of an event
    public class C implements I {
        public void doIt() {
            // do nothing
    // the listener
    public class B {
        public void actionPerformed( Event e ) {
            I source = (I) e.getSource();
            source.doIt();
    }In the above case, when the event originates from A, "code goes here" gets executed. When the event originates from C, doIt() still gets called, but the method doesn't do anything.
    From a responsibility point of view, deciding what to do lies with A and C, and when to do it with B.

  • Convert javadoc output back to java class.

    Hi All,
    I have the javadoc for a certain specification and would like to convert that to the java interface definition class. The generated source code would be used to generate the implementation class later.
    Do you know of any utility that converts javadoc html back into java source code?
    Thanks in advance,
    Piyush.

    Just use your browser's copy and past functions to cut the text out of the documentation and then paste it into a programming editor.
    Delete the text and add a couple of semi-colons and you are all set.

  • VB- Java  Native InProcess getObject error 800401E5

    I am receiving this error on get object my object string is
    GetObject("NATIVEJVM:Bridge.myEJBComProxy").
    I registered NATIVEJVM as an in process server. I have
    Bridge.myEJBComProxy on my classpath.
    I am assuming that NATIVEJVM is a class in the registry that
    points to the JVM.dll and has enough information to instantiate.
    NATIVEJVM points to [{41C6FBB0-17AE-11D3-B481-204C4F4F5020}]
    [..]points to [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{41C6FBB0-17AE-11D3-B481-204C4F4F5020}]
    @="JintegraMoniker Class"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{41C6FBB0-17AE-11D3-B481-204C4F4F5020}\InprocServer32]
    @="C:\\WebGain\\bea\\wlserver6.1sp1\\jcom\\bin\\JintMk.dll"
    "ThreadingModel"="both"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{41C6FBB0-17AE-11D3-B481-204C4F4F5020}\ProgID]
    @="JintMk.JintegraMoniker.1"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{41C6FBB0-17AE-11D3-B481-204C4F4F5020}\VersionIndependentProgID]
    @="JintMk.JintegraMoniker"
    JintMk.JintegraMoniker refers back to the class id.
    I don't see where the settings are located? e.g. logging,
    runs inproc, classpath etc.
    Any assistance appreciated.
    John Moss

    I am receiving this error on get object my object string is
    GetObject("NATIVEJVM:Bridge.myEJBComProxy").
    I registered NATIVEJVM as an in process server. I have
    Bridge.myEJBComProxy on my classpath.
    I am assuming that NATIVEJVM is a class in the registry that
    points to the JVM.dll and has enough information to instantiate.
    NATIVEJVM points to [{41C6FBB0-17AE-11D3-B481-204C4F4F5020}]
    [..]points to [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{41C6FBB0-17AE-11D3-B481-204C4F4F5020}]
    @="JintegraMoniker Class"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{41C6FBB0-17AE-11D3-B481-204C4F4F5020}\InprocServer32]
    @="C:\\WebGain\\bea\\wlserver6.1sp1\\jcom\\bin\\JintMk.dll"
    "ThreadingModel"="both"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{41C6FBB0-17AE-11D3-B481-204C4F4F5020}\ProgID]
    @="JintMk.JintegraMoniker.1"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{41C6FBB0-17AE-11D3-B481-204C4F4F5020}\VersionIndependentProgID]
    @="JintMk.JintegraMoniker"
    JintMk.JintegraMoniker refers back to the class id.
    I don't see where the settings are located? e.g. logging,
    runs inproc, classpath etc.
    Any assistance appreciated.
    John Moss

  • Back to .class file

    hello all,
    I'm not big into java yet, but I have a script I'm playing around with that I decompiled from a .class file and moved things around a bit... now I want to compile it back to a .class file and have no idea how. I can't seem to find a freeware program to do it with.
    please excuse my newbiness...
    thanks for the help
    ziggy

    Start with this tutorial http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    Do not skip anything, and be sure to read the Installation Instructions (there's a link), especially #5, and set the PATH variable as instructed.
    It will lead you through installing and learning to use the compiler, then running a program.

  • Referring to parent class...

    I have this kind of setup:
    class first{
    someMethod(){...}
    class second{
    anotherMethod(){
    <need to run someMethod()>
    }The second class (subclass) is not an extention of the first class - how do I refer back to main class? I tried using super but I believe thats only if the subclass extends the main class.
    My way around this problem right now is having an instance variable inside the second class set to the main class.. just doesn't seem right.

    I don't see the problem....
    public class Test {
         public static void main(String[] args) {
              new Test();
         Test() {
              second ob = new Test.second();
              ob.anotherMethod();          
         void someMethod() {
              System.out.println("someMethod.");
         class second {
              second() {}
              void anotherMethod() {
                   System.out.println("anotherMethod.");
                   someMethod();
    }I believe that the class 'second' is called an inner class and that inner classes have access to their 'outer' class.

  • How can I get my old account back?

    my old skye is very nasasarre so please creat agin
    Post transferred to create its own new thread,
    Subject/title edited accordingly.

    Hi, Shanz.79, and welcome to the Community,
    Regardless of the circumstances which led you to post here in the Community, all account-related matters must be referred to Skype Customer Service to be resolved. 
    Here is a link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service
    As you know you intend to contact Customer Service, skip past Step 2 of the instruction where several articles from the FAQ library will appear for you to review, and proceed to Step 3, Continue Support Request (the "button" appears at the lower right corner of the website page). You may also skip past in Step 4 where you will be referred back here to the Community; no need to do this as the Community is where you started.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Account hacked; how to get my information back

    hello Skype team and costumers i have recently been hacked and i was wondering if anyone had any suggestions as to how to get my address and personal info back i have tried the standardf thing skype have had to offer with no joy so if anyone could i would be truly greatful
    This post was transferred from its previous location to create its own new topic here; its subject and/or title has been edited to differentiate the post from other inquiries and to reflect the post's content.

    Hi, Gregster, and welcome to the Community,
    Here is a link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service
    Here are a few extra notes to guide you along the way ...
    You will need to proceed through each step, one at a time. Sign on to the Skype website as requested. Choose the subject and topic which most closely matches the item you need assistance with. Then, continue past Step 2 of the instruction where several articles from the FAQ library will appear for you to review, and proceed to Step 3, Continue Support Request (the blue "button" appears at the lower right corner of the website page). You may also skip through Step 4 where you will be referred back here to the Community; no need to do this as the Community is where you started. When you complete the web-form and click Submit, your information is relayed to Skype and you will receive a reply via e-mail unless you are transferred to start an instant message chat session with a Customer Service agent.
    If you experience difficulty reaching Skype Customer Service, try again using a different web browser. Also, look to approve a pop-up dialogue box which would connect you to start an instant message chat with a customer service agent. If you have pop-ups blocked in your browser settings, this will also impede reaching an agent.
    Skype is aware of these website issues.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Returning a string from one class to another

    I have a file from where i creating an object of another class and calling the fuctionsl
    This is how i am doing
    public login()
    String input =new String (passwordField.getPassword());
         input= input.trim();
    tempuser= userField.getText();
              db2sqln patientsqln =new db2sqln(); //creating an object
              patientsqln.connectdb2();// calling a connect to database function
              patientsqln.dbselect(tempuser);// passing the login informaiont
    in patientsqln i am getting the password from the database and want to pass it back to login class so that i can compare the entered password and the database password
    here is i am using my patientsqln.dbselect()
    //public void dbselect(String userinput)
              try
              Statement stmt = con.createStatement();
              String select = "Select patientpass from patient where PATIENTUSER="+"'"+userinput+"'";
              ResultSet rs = stmt.executeQuery(select);
              while (rs.next())
              name=rs.getString("PATIENTPASS");
              name = name.trim();
              System.out.println(name+"from db2sqln");
              rs.close();
    My question is that everything else works fine, but i donot get any password back in login() class it returns null value. looks like i am not returing the string back. how should i do that
    I am comparing like this
    if(input.equals("name"))
    System.out.println("Correct password");
    else{
    System.out.println("Incorrect password");
    //

    I have a file from where i creating an object of another class and calling the fuctionsl
    This is how i am doing
    public login()
    String input =new String (passwordField.getPassword());
    input= input.trim();
    tempuser= userField.getText();
    db2sqln patientsqln =new db2sqln(); //creating an object
    patientsqln.connectdb2();// calling a connect to database function
    patientsqln.dbselect(tempuser);// passing the login informaiont
    in patientsqln i am getting the password from the database and want to pass it back to login class so that i can compare the entered password and the database password
    here is i am using my patientsqln.dbselect()
    //public void dbselect(String userinput)
    try
    Statement stmt = con.createStatement();
    String select = "Select patientpass from patient where PATIENTUSER="+"'"+userinput+"'";
    ResultSet rs = stmt.executeQuery(select);
    while (rs.next())
    name=rs.getString("PATIENTPASS");
    name = name.trim();
    System.out.println(name+"from db2sqln");
    rs.close();
    My question is that everything else works fine, but i donot get any password back in login() class it returns null value. looks like i am not returing the string back. how should i do that
    I am comparing like this
    if(input.equals("name"))
    System.out.println("Correct password");
    else{
    System.out.println("Incorrect password");
    //

Maybe you are looking for

  • Help! I think my hard drive is about to kick it.

    Hello everyone, My G4 (MDD) started to make a loud clicking noise after I completed the May 11 Security and Quicktime Updates. I'm not sure if these two things are connected or just coincedence. Whenever the hard drive (120 GB Ultra ATA/100; 7200 RPM

  • LMS 4.2 Device Update without a proxy server

    I'm running LMS 4.2.2, and when I try to initiate a device package update via the webinterface, it fails because I do not have a proxy server configured.  Is there a way to tell LMS that I don't want it to use a proxy?  I have my cisco.com creds in p

  • Tab Preview in Windows 7 Taskbar

    Hello everyone, I'm wondering if it is possible to disable tab preview in Safari 5 on windows 7 taskbar. I find this highly annoying as i just want to see individual instances of Safari (Should i have them that is) and not X amount of tabs in a seemi

  • SQL error -20000 at location stats_oradict_collect-4

    Hi, I have just upgraded BRTOOLS (6.4 to 7.10), but having following error while updating statistics for Oracle Dictionary, do you have any clue ? oranq2> brconnect -u / -c -f stats -t ORADICT_STATS BR0801I BRCONNECT 7.10 (24) BR0805I Start of BRCONN

  • Can't copy dvd's

    I want to copy dvds, mostly my own which includes dvd copies of VHS movies I wrote as well as home dvds. I tested DVD-Cloner based on reviews but it seems to only copy dvds it wants to and others it won't. There's no pattern and their support said "s