THammami01 / ulms

University Library Management System
MIT License
5 stars 1 forks source link

Update Main.java #2

Open Sandeep-source opened 1 year ago

Sandeep-source commented 1 year ago

1

@THammami01

I think now its good to go.

Sandeep-source commented 1 year ago

@THammami01,

That's my bad.

I had made some changes to the code and also tested it on windows and Linux(Debian).

The code now looks like this:

import java.nio.file.*;
.
.
.
Path path = Paths.get(backupsDir);
Files.createDirectories(path);
.
.
.

This will create directories under C: drive in windows and at the root in Linux. Note that creating a dirs in the root may need root privileges, so need to run code as root user or with sudo in Linux.

Sandeep-source commented 1 year ago

Please let me know it need any further changes, Thanks.

THammami01 commented 1 year ago

I attempted to use VirtualBox to run the first release on Ubuntu, but I encountered the following error:

Screenshot

Even if your changes are valid, there still a problem with the JavaFX jar files that I used bcz they're only compatible with Windows.

Sandeep-source commented 1 year ago

It looks separate issue from than previous one I'm looking into that

THammami01 commented 1 year ago

No worries, I'll see how I can fix it later. 😉

THammami01 commented 1 year ago

Can you check if the OS is based on Linux and then set the directories paths to start by the user's home directory ~/?

THammami01 commented 1 year ago

Then I'll merge your code.