Serializing Vectors that are in other classes

If I have...
public MyPanel extends Jpanel implements serializable
private vector d;
public MyPanel()
d=new Vector();
public void paint comp(gra g)//etc
Part f=(part)d.get(i);//etc
d.draw(g)
and i OutputStream.write(MyPanel); and InputStream.read(MYpanel) is the vector serialized as well?(Yes the objects "(Part)"within the vector are/is serializable) because when i do:
MyPanel g=(MyPanel)in.readObject();
and then MyFrame.setMyPanel(g);
the vector becomes empty!! and the parts in the vector can no longer be drawn;
help?
dev

I am not sure what the problem is, but,
- The vector class is Serializable (it isn't the spelling (capital 's') is it??).
OR
- Should it be JPanel g=(MyPanel)in.readObject();
OR
- How do you actually get the vector as there is no accessor method and the vector is private? Could it be you are just not getting the vector because of this.
Please ignore this if I am talking rubbish (it is late).

Similar Messages

  • "Calling functions that are in a class based DLL (MFC extention DLL)"

    "Calling functions that are in a class based DLL (MFC extention DLL)"
    "Calling functions that are in a class based DLL (MFC extention DLL)
    I have a DLL written in VC++ using MFC exteintion DLL.
    The functions are used to extract information from a hardware card.
    eg.:
    class AFX_EXT_CLASS WSDevice : public cAsyncSocket
    This is a class in a DLL. There are a number of functions in this DLL that we need to call from Labview 5.0
    How do we call these functions?
    Normally (in VC++ /C++) we ceate a instance of this class like WSDeviceObj and use the function call :
    WSDeviceObj.fucntion name
    Kindly Help.
    Satish Narayana"

    You can create a wrapper dll from which you can call your dlls functions.
    Guidelines on how to create a dll that can communicate with LabVIEW are provided in the document "Using External Code in LabVIEW", which should be included with LabVIEW. You can download the document also from www.ni.com at:
    http://digital.ni.com/manuals.nsf/web_productcurre​nt/4F1447F7CD83D6D88625690D00637CED?OpenDocument
    Regards;
    Vargas
    www.vartortech.com

  • HT2515 Does iChat work with other users that are on other types of smartphones?  or only Mac phones and Mac mail, contacts, etc?

    Does iChat work with other users that are on other types of smartphones?  or only Mac iPhones and iMac Mail, Contacts, etc?

    Hi,
    The Messages Beta will Send iMessage to iPhones (Messages replaces iChat)
    iChat can SMS to phones
    It needs the computer to be listed as if it in the United States and contacting a Phone that is on a Carrier in the United States that is accepting SMS forwarding from AIM
    You list the Buddy as AIM and then +plus their number as in +123456789
    The computer can be made to "think" it is in the United States in System Preferences > International (or Text a Language in Lion) then Formats tab.
    The Phone has to be a US phone with all the trimmings about AIM's SMS forwarding.
    11:14 PM      Monday; February 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Could you (in the next verions of firefox), include a Warning Box, for people deleting "recently bookmarked". It does not tell you that your systematicallly deleting bookmarks that are in other folders.

    You should change firefox, or at least have a warning box when deleting "recently bookmarked". I decided to clear that folder out, and then when I went to use a bookmark.. I didn't have any bookmarks in ANY FOLDER at all. I did manage to restore the booksmarks, but easier to just warm people, or just let them clear out the recently bookmarked. It had bookmarks from over a year ago that I had deleted in other folders, but still manage to hang out in the "recently bookmarked" folder. Oh, and if I delete a bookmark in a folder, please have it delete the bookmark in the "recently bookmarked" also.
    == This happened ==
    Just once or twice
    == Cleaning up my bookmarks

    "Recently Bookmarked" is a so called [[Smart Bookmarks folders|Smart Bookmark]] that shows the result of a place query in a list.
    "Most Visited" and "Recently Bookmarked" are examples of the so called [[Smart Bookmarks folders]] and are not real existing folders.
    Such smart folders show a list created by a query of the places.sqlite database that stores the bookmarks and the history in Firefox 3.
    The bookmarks that show up in such smart folder listing are stored elsewhere in another folder and any changes made are applied to the real bookmark or history item.
    Such lists show a maximum of 10 entries by default and you add a new bookmark or visit a website then a new item is added at the top and the entry at the bottom disappears from that list.
    The items that are removed from the list are not gone, but merely do not show up anymore in that list.
    Any actions like copy & paste or delete that you perform on bookmarks in such a list are done on the original bookmark.
    If you do not want a specific list then remove that query (right-click: Delete), but do not delete the content that is displayed in such a list.

  • How to attatchment some files that are in other server to send an email?

    Hi
    I need to send an enmail with sql, but i have to attatchment some files, those files are in anohter server, so I want to know, how attatchment those files? 
    Thanks in advance 

    Yeah, I don't know if you can attach a file on a remote server.  Why not just copy it over to the SQL Server machine, and attach it form there (which would be the local machine when the file is downloaded).
    Please see this for info about using email in SQL Server.
    Create account, permission account, and send Email from SQL Server Express:
    http://www.sqlservercentral.com/blogs/querying-microsoft-sql-server/2013/09/02/sending-mail-using-sql-server-express-edition/
    Check email event log, and remove unsent emails from server
    http://www.dotnet-tricks.com/Tutorial/sqlserver/4761260812-Remove-unsent-database-email-from-SQL-Server.html
    Troubleshoot email error message:
    http://www.mytechmantra.com/LearnSQLServer/Troubleshooting-SQL-Server-blocked-access-to-procedure-sp_send_dbmail.html
    When you get your email processes working fine, download the file using C#.
    http://www.microsoft.com/en-us/download/details.aspx?id=34673
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Net;
    using System.IO;
    namespace ConsoleApplication2
    class Program
    static void Main(string[] args)
    string localPath = @"C:\Downloads\";
    string fileName = "your_file.txt";
    FtpWebRequest requestFileDownload = (FtpWebRequest)WebRequest.Create("ftp://ftp.server.com/" + fileName);
    requestFileDownload.Credentials = new NetworkCredential("your_username", "your_password");
    requestFileDownload.Method = WebRequestMethods.Ftp.DownloadFile;
    FtpWebResponse responseFileDownload = (FtpWebResponse)requestFileDownload.GetResponse();
    Stream responseStream = responseFileDownload.GetResponseStream();
    FileStream writeStream = new FileStream(localPath + fileName, FileMode.Create);
    int Length = 2048;
    Byte[] buffer = new Byte[Length];
    int bytesRead = responseStream.Read(buffer, 0, Length);
    while (bytesRead > 0)
    writeStream.Write(buffer, 0, bytesRead);
    bytesRead = responseStream.Read(buffer, 0, Length);
    responseStream.Close();
    writeStream.Close();
    requestFileDownload = null;
    responseFileDownload = null;
    Sorry if this is a little more complex than what you were looking for, but I think this is the easiest way to do it.  :0
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Can I read/write global variables that are in other PC?

    I attach the vis and the executables.
    My problem is that when I run( continuosly, because in other way, I read the default value of the variable) getvalue.vi and setvalue.vi, I don´t have any problem, I can read/write the global variables, the two vis is running in the same PC.
    But when I do the exe and I run them continuosly , it doesn´t work.
    Any solution?
    Thanks in advanced!
    Graci
    Attachments:
    Get_Value.vi ‏30 KB
    Set_Value.vi ‏30 KB
    Exe.zip ‏272 KB

    Hello Bichillo,
    By running the vis continuously you are running into race conditions. If you cannot control when you are writing to or reading from a global variable, you cannot know whether the value writen/read is the right one or not.
    In your case the global variable value that is read is sometimes the last value writen and sometimes an empty string.
    To make the global variable behave as desired, that is, keeping its last value, the global variable must be in memory when you access it using VI Server. If it is not in memory, the returned value is an empty string. That´s why you sometimes get a non-empty string: when you access the global variable to read its value, it happens to be in memory because you´ve just writen to it.
    To ensure that the global
    variable is always in memory and it keeps its last value, you must include the global variable into your block diagram. I am attaching modified vis that implement this.
    Hope it helps.
    César Verdejo
    Training and Certification | National Instruments
    Attachments:
    Get-_Set_Value.llb ‏48 KB

  • Propagate application exceptions that are in other jar.

    Hello:
    I am trying to deploy an application (call APP-ONE)which has an "applicacion exception" (call App-exp), this extends from another "cross application exception" (call cross-app-exp), and it is on CROSS-APP-EXP.jar.
    The example is:
    APP-ONE.jar
    delegate.java
    class delegate throws App-exp {
    ejb.clase();
    ejb.java
    interface ejb extends remote {
    public void clase() throws App-exp, RemoteException
    CROSS-APP-EXP.jar
    Cross-app-exp.java
    class cross-app-exp extends RemoteException
    Then, my APP-ONE has APP-INF/lib/CROSS-APP-EXP.jar
    When I execute ANT it generates APP-ONE.ear with APP-INF/lib/CROSS-APP-EXP.jar (and other things). When I deployed this, the server launch me the following exception:
    <04-03-2005 01:17:33 PM VET> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 0 for the application newMakeAnt.
    weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: prepare failed for APP-ONE.jar
    Module: APP-ONE.jar Error: Exception
    preparing module:
    EJBModule(APP-ONE.jar,status=NEW)
    Unable to deploy EJB: APP-ONE.jar from APP-ONE.jar:
    Compiler failed executable.exec at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274)
    ¿Where must I put the CROSS-APP-EXP.jar for weblogic server reads that in deploy time?
    Please I need some help.
    Thanks a lot.

    Hello Hussein:
    I can not use the second option, because one requeriment was that anything must be on startServer.config.
    Here is the trace:
    <04-03-2005 01:17:33 PM VET> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating Deploy task for application APP-ONE.>
    <04-03-2005 01:17:33 PM VET> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 0 for the application APP-ONE.
    weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: prepare failed for APP-ONE.jar
    Module: APP-ONE.jar Error: Exception preparing module: EJBModule(APP-ONE.jar,status=NEW)
    Unable to deploy EJB: APP-ONE.jar from APP-ONE.jar:
    Compiler failed executable.exec
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
    at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
    at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
    at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
    at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2847)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    java.io.IOException: Compiler failed executable.exec
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:329)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:337)
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
    at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
    at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
    at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
    at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2847)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2588)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: prepare failed for APP-ONE.jar
    Module: APP-ONE.jar Error: Exception preparing module: EJBModule(APP-ONE.jar,status=NEW)
    Unable to deploy EJB: APP-ONE.jar from APP-ONE.jar:
    Compiler failed executable.exec
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
    at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
    at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
    at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
    at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2847)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    java.io.IOException: Compiler failed executable.exec
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:329)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:337)
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
    at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
    at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
    at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
    at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2847)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2523)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >
    I appreciate your help. Thank you.

  • Bumper type cases that are available other than Apple's brand...

    Are there anymore out there...i do like the Apple Bumper...also there is the SGP Hybrid Neo Ex case, looks the same but different feature...any one teied this by any chsnce...what other alternatives are there aside from these two?

    I got the free black Apple bumper when they first started shipping them. I can't definitely say if I get better performance with or without a bumper. However, I can definitely say that I'm not getting any scratches under the bumper(s). The reason I made bumper plural is that I bought the "lime green" Apple one after using the black one for about a month.
    The reason I switched is because the IP is SO much easier to see when it's laying around waiting for me to pick it up. The black model just fades into the background and is NOT easy to spot when I'm in a hurry and want to get out the door.
    Also, I've dropped the IP a couple of times since I "bumpered" it and no nicks or other damage occurred. Whether I would have the results without a bumper, I can't say.
    My previous IP's (3G and 3G S) all got scratches on the back using cases. I suspect sand/dirt gets under the cases and acts like sandpaper when the case is rubbed.

  • I'm trying to write an email and import files that are in other emails I've been sent.  Some are attachments. How can I do this?

    Hello,
    I'm new to the mac world and would like to know how to compose an email including information from emails I've received.  I want to forward the contents of three emails to my a new email I'm composing.   One email has attachments and the others have typed info.  I know I can copy/paste but I'm not sure about the attachments.  Is it best to open them and copy them to the email?

    Save those attachments > Default location is the Downloads Folder.
    Then re-attach to your new email.

  • Need some help archiving and photos that are in multiple collections.

    After creating a new catalog for photos from a collection, I'd want to remove the photos from Lightroom and keep on disk.  In the collection, there are some photos that are in multiple other collections and I'd want to keep those images in their other collections and so not removed them from Lightroom.
    Need some advice on how to easily identlfy those images that are in other collections and thus might not want to remove those images from Lightroom.

    Well, Bob, that works, but agreeing with Geoff, I don't think this is the best solution to the problem; in fact I don't even think this is a good solution to this problem.
    If there isn't a lot of space left, and the user wants to do something about the photos in those collections, then the photos should be moved (in Lightroom, or via this process: http://www.computer-darkroom.com/lr2_find_folder/find-folder.htm) to a different drive. This generates more free space on the SSD drive. The photos remain in the Lightroom catalog, and they remain in the multiple collections that they are in now.
    MrhoniKeith -- your photos probably should not go on the SSD in the first place. Photos ought to be stored on a normal hard drive, not an SSD. You can move them to a regular hard drive en masse, freeing up plenty of space on the SSD via this method: http://www.computer-darkroom.com/lr2_find_folder/find-folder.htm. This is the BEST solution to your problem -- keep everything in a single catalog, with photos on a normal hard disk. The idea of having multiple catalogs to help free up space on one drive works opposite to the best practices of using Lightroom, in which most people recommend using a single catalog for all of your photos, except in special cases where the photo's contents are completely non-overlapping, for example Personal and Business catalogs.
    Removing photos from some collections but not others will NOT free up space. That's not how Lightroom works. Lightroom has not made multiple copies of your photos for each collection. Deleting photos from collections will NOT free up space.

  • Javac = "cannot find symbol" when compiling class referencing other classes

    I have several Java files in a directory which is declared as a package at the start of the files
    package filemanager;
    This program works perfectly in an IDE, however I'm having problems with compiling in command line.
    I have set the classpath as I understand to be right for my computer to:
    C:\Program Files\Java\jdk1.6.0_02\bin
    I can compile a class that references no other classes in this package/directory.
    However files which reference other classes bring up such errors:
    javac AllFiles.javaAllFiles.java:174: cannot find symbol
    symbol : variable Bob
    location : class filesmanager.AllFiles
    Bob.getItem(itemRef);
    Where Bob is an example of another class. Even though I can say, compile Bob on it's own as it doesnt have any such reference.
    I've tried:
    javac -cp "C:\Program Files\Java\jdk1.6.0_02\bin" AllFiles.javaThis also failed.
    Any ideas?
    Edited by: ajr87 on Feb 8, 2008 10:26 AM

    I've tried spoon_'s suggestion, but I'm still getting the error ("cannot find symbol"). Here is my code:
    File Hello/Fred.java:
    package Hello;
    public class Fred
        public int age;
        public Fred()
            this.age = 1;
    } // public class FredFile Hello/Hello.java:
    package Hello;
    public class Hello
        public static void main(String args[])
            Fred fred = new Fred();
            System.out.println("Fred is " + fred.age);
    } // public class HelloAnd here is my attempt to compile Fred.java and Hello.java:
    C:/Users/levner/programs[219]javac -cp c:\users\levner\programs\hello Hello\Fred.java
    C:/Users/levner/programs[220]javac -cp c:\users\levner\programs\hello Hello\Hello.java
    Hello\Hello.java:14: cannot find symbol
    symbol  : class Fred
    location: class Hello.Hello
            Fred fred = new Fred();
            ^
    Hello\Hello.java:14: cannot find symbol
    symbol  : class Fred
    location: class Hello.Hello
            Fred fred = new Fred();
                            ^
    2 errorsI am doing this work on a PC running Vista using javac 1.6.0_10. I've tried various combinations of upper and lower case names for the package and file names, and I always get the same errors.
    Thanks in advance for your help. David

  • Serializing classes that contain other classes

    Hi all,
    Hoping someone can answer me a quick question, I'm familiar enough with Java + OO in general but just starting to try to put a multiplayer game framework together so running into a few areas I haven't encountered before... so sorry if this is a bit of a newbie sounding question...
    I have a serializable class that contains a reference to another serializable class, very similar to:
    public class ClassA implements Serializable
        private ClassB b;
        ...and some other fields...
        public ClassA ()
            super ();
        ...and a standard public getB and setB
    public class ClassB implements Serializable
        int someValue;
        ...standard no arguments constructor...
        ...standard getSomeValue and setSomeValue...
    }Now that all works fine, serializes fine, send it down an ObjectOutputStream down a network socket, deserializes the other end, all no problem. What I don't like is that to create a ClassA I have to do:
    ClassA myClassA = new ClassA ();
    myClassA.setB (new ClassB ());   <--- this line
    myClassA.getB ().setSomeValue (5);because it could easily be ommitted (especially since the real situation is more complex that two simple classes like above) and I'll get a NullPointerException. Normally (in a non-serialized ClassA) I'd have put b = new ClassB (); in the constructor.
    However I don't like the idea of doing that because when deserializing a ClassA, I imagine the deserialization mechanism creates its own ClassB object to set into ClassA? And so if in the ClassA constructor, I create my own ClassB, then the deserialization will then immediately go and create its own ClassB and the ClassB I created will go to the garbage collector, i.e. it was a pointless object to create?
    Just wondering what suggestions anyone has on this, there must be a standard approach to deal with this?
    Thanks very much,
    Nigel.

    Allthough you give a lot of information I do not quite understand what you mean, but maybe a little re-arrangement of the setB en getB methods will do it:
    public ClassB getB() {
        if(b == null) {
            setB(new ClassB());
        return b;
    public void setB(ClassB b) {
        this.b = b;
    }

  • I am trying to install Lightroom and I am OK until it asks for a serial number. I purchased Lightroom from B&H and the have entered the seal number on the the B&H invoice. Nothing happens, not all the entry boxes are filled with the serial number that was

    I am trying to install Lightroom and I am OK until it asks for a serial number. I purchased Lightroom from B&H and the have entered the seal number on the the B&H invoice. Nothing happens, not all the entry boxes are filled with the serial number that was provided by B&H. I looked for a serial number on and in the box it came in, nada. Need a bit of help here, what can I do?
    RJ@

    Try to connect on Live chat one more time.
    Still not connected , better to contact Adobe Phone Support
    Click on Phone option and check once :
    Contact Customer Care

  • Hi, trying to reinstall my adobe photoshop and premier on computer the adobe download does not recognise the serial nos that i have that are in my adobe account.thanks,gem

    trying to reinstall my adobe photoshop and premier on computer the adobe download does not recognise the serial nos that i have that are in my adobe account.thanks,gem

    Here are a couple links that might help
    Error "The serial number is not valid for this product" | Creative Suite
    Creative Cloud applications ask for serial number
    And try using this cleaner
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Ive tried almost EVERYTHING and i still cant track my iPod that was recently stolen. Ive called apple been all over the website and still no way of tracking it. What are some other ways!?

    Ive tried almost EVERYTHING and i still cant track my iPod that was recently stolen. Ive called apple been all over the website and still no way of tracking it. What are some other ways!?

    Only the old fashioned way, like if you lost a wallet or purse.
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

Maybe you are looking for

  • Text file I/O

    Hello, I want to read a text file containing text data like this: 34.5 56.0 78.4 20.887 34.7 23.9987 etc... and get the double values: 34.5 56.0 etc. How do I do that ? Thank you

  • How do I access my podcasts when the official podcast app won't run on my iPod?

    I am trying to load new episodes of a podcast onto my iPod, and I cannot.  It tells me I have to use the podcast app, but I am unable to install it.  It needs OS 7, but my iPod appears to not support that OS- attempts to update tell me that I have th

  • Photoshop CS3 refuses to install

    Have had to reinstall my CS3 Design Premium suite but Photoshop refuses to install all the others are fine, I'm on Mac OS10.5.8

  • How do I clean up my computer hard drive?

    When I go to the tab for Find out More about Computer, it claims I have 96G of "Other" and 46G of movies, but I can't find them! What are the steps I need to take to clean house so I can properly use my computer?! I have manually gone through and era

  • Urgent-NAC OOB VG Deplyment

    hi all,          Iam in the middle of design of NAC OOB Virtual Gateway. I have the following doubts regading the placement of NAC Server to my existing Network I have two Core ( redundancy -HSRP ) running VTP & 25 Edge Switches ( VTP Client ) Accord