aspose file tools*
The moose likes Java Micro Edition and the fly likes How to change root directory of sun mobile emulator? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to change root directory of sun mobile emulator?" Watch "How to change root directory of sun mobile emulator?" New topic
Author

How to change root directory of sun mobile emulator?

Karol Smith
Greenhorn

Joined: Jul 27, 2011
Posts: 2
I need to change the default root directory of sun mobile emulator. I know that you can create and delete roots in the appdb/filesysytem directory, but I need the root to be outside that directory lets say at my hard drive C:/root , is it possible? Thanks, hope you can help me.
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
I don't understand what you are asking for.

Do you want the SDK to run from a different directory? -- Uninstall/Reinstall the SDK.

Do you want the open/save window to open inside a specific directory instead of the default one? -- I'm not sure this is possible, the file dialog box doesn't appear to have a memory of the "last directory" (The setting, to change the default diretory, could be in a hidden system file, but I don't know).

Are you trying to bundle files from your computer into your project? -- Go to Project menu (Right Click) >> Properties >> Libraries & Resources >> Add Folder.

Do you want a Project's Location to be in a different folder? -- New Project >> Next button >> Project Location: Browse button.

I'm not sure if there is something else regarding the SDK and "root" directory that would help you.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4543
    
    5

Hi Karol, and welcome to the Ranch!

John asked the identically same question on StackOverflow and got a couple of responses, which he wasn't courteous enough to reply to, but maybe you can benefit from them.


luck, db
There are no new questions, but there may be new answers.
Karol Smith
Greenhorn

Joined: Jul 27, 2011
Posts: 2
Walter Gabrielsen Iii wrote:I don't understand what you are asking for.

Do you want the SDK to run from a different directory? -- Uninstall/Reinstall the SDK.

Do you want the open/save window to open inside a specific directory instead of the default one? -- I'm not sure this is possible, the file dialog box doesn't appear to have a memory of the "last directory" (The setting, to change the default diretory, could be in a hidden system file, but I don't know).

Are you trying to bundle files from your computer into your project? -- Go to Project menu (Right Click) >> Properties >> Libraries & Resources >> Add Folder.

Do you want a Project's Location to be in a different folder? -- New Project >> Next button >> Project Location: Browse button.

I'm not sure if there is something else regarding the SDK and "root" directory that would help you.


Thanks for the reply, Here is my problem, when the sun mobile emulator starts it's only access to files is in the appd/filesystyem directory it has there his own two drives which are supossed to stand for internal memory and sd card, so if i want it to have some files to use I have to copy them in that directory, or they need to be already there, and for my purposes I can not do that, so I need that the emulator would have his filesystem directory specified by me, that I can somehow say where it is , i need to give it my path instead that default one in appdb.
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
Okay, here is what I think you are looking for:

First, learn about How to Map a Network Drive (Depending on your knowledge, you might also want to learn How to Create a Shared Drive on a Home Network, and sharing a local Folder is also similar to how you share a Drive).

Then, in the Projects window of Java ME SDK,

1. right-click on your project and choose "Properties" from the pop-up menu.
2. Under "Category" go to Build > Libraries & Resources.
3. Click the "Add Folder..." button.
4. Select your Mapped Drive.

If you're using Windows, try "Look in:" Desktop and then your Computer > Mapped drive letter. Click the open button.

Note: A mapped network Drive is a door into the original location -- not a copy. If you change or remove the original location, such as ejecting a real storage card from your computer, or mapping to a new location, those files are no longer there -- the files aren't saved or backed up but what is in a Mapped Drive is exactly what is there, in the original location, at the current moment.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to change root directory of sun mobile emulator?