Answer
$y=\dfrac{e^x}{x}+\dfrac{c}{x}$
Here, $c$ is an arbitrary constant.
Work Step by Step
In order to determine the general solution, isolate the x and y terms on one side and integrate both sides.
$\int (xy)' dx=\int e^x dx$ ...(1)
Equation (1) gives:
$xy=e^x+c$
Thus, the general solution as follows:
$y=\dfrac{e^x}{x}+\dfrac{c}{x}$
Here, $c$ is an arbitrary constant.