Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Trouble with running java program(Program runs when I create it but when I try to open it later it will not run)
Trouble with running java program [message #1114426] Sun, 22 September 2013 18:29 Go to next message
amanda b is currently offline amanda bFriend
Messages: 1
Registered: September 2013
Junior Member
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.
Re: Trouble with running java program [message #1114968 is a reply to message #1114426] Mon, 23 September 2013 13:29 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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.


Amanda,

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
trouble.
Re: Trouble with running java program [message #1115383 is a reply to message #1114968] Tue, 24 September 2013 03:36 Go to previous message
Princess Villanueva is currently offline Princess VillanuevaFriend
Messages: 1
Registered: September 2013
Location: Miami
Junior Member
I'm also having this problem. Thanks Russel
Previous Topic:how to generating pdf using birt?
Next Topic:Can't get eclipse downloader to work, crashes comp
Goto Forum:
  


Current Time: Mon Mar 01 13:41:38 GMT 2021

Powered by FUDForum. Page generated in 0.04676 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top