|Re: Trouble with running java program [message #1114968 is a reply to message #1114426]
||Mon, 23 September 2013 13:29
| Russell Bateman
Registered: July 2009
Location: Provo, Utah, USA
On 9/22/2013 6:20 PM, amanda b wrote:|
> I've only been using Eclipse for the past few weeks. I'm use to simpler
> software like Jgrasp. I've grasped on pretty quick though. My problem is
> that when I create a program in my college class and choose my usb as
> the workspace, then come home and choose my usb drive as the workspace
> also on my personal computer, the program opens but won't run. It runs
> when I first create, but won't run when I try to open it at a later
> time. The same thing happens when I close the program and then try to re
> open it later. This happens even if i created the project at home and
> used my usb as the workspace. Nothing shows up under packages in the
> left side pane. I tried using my desktop at home as the workspace and it
> worked fine and would run whenever I opened it and chose my desktop as
> the workspace. I was a little confused why I can't get it to run because
> I use the usb drive as my workspace at all times. I tried to look up
> solutions to this, and some said to use the import/export feature on
> eclipse, but if I use the same workspace at all times I'm not sure why
> that would be necessary.
Eclipse workspaces aren't portable between computer hosts. Projects are.
You can untie your projects from your workspace to keep them on your USB
drive, but your workspace is only going to be useful from the host on
which you created it.
Assuming you'll want to follow this advice, here's what to do:
1. Create a new workspace from your existing one and pay attention to
keeping configuration from the old one.
2. Import* into that new workspace, the old projects. These can continue
to live on your USB drive even in that old workspace, you'll just be
abandoning the old workspace. Or, you can move them elsewhere as you wish.
3. Do the same thing "at home" or wherever else you were
working--importing your projects into your new workspace.
* File -> Import... -> General -> Import Existing Projects into Workspace.
Hope this helps. Come back here if anything is unclear or you have more
Powered by FUDForum
. Page generated in 0.04676 seconds