I want Spark to store user’s data in special folder (not in c:\documents and settings\username\Application data\Spark) but I can’t understand where I was wrong.
I use following batch file to start Spark 2.6.0 on Win2k3:
The JAVA manual says that I can change user’s home directory with -Duser.home=some_path in the command line. But it seems that Spark 2.6.0 does not use user.home variable to get user’s profile path.
I bet we have the same intention of changing the spark home directory… maybe we can help each other to this… I guess you need to rebuild spark according to source, not with the one’s installed on your pc…
I have build a branded or skinned version of spark, every name and every icon or images was changed… The only thing that’s left unchange is the spark home directory and the default downloads directory…, where “%HOMEDRIVE%%HOMEPATH%\Spark” originaly looks like this **“C:\Documents and Settings\User\Spark\user\username@myserver.com\downloads”… **** **
As per master Wolf_P advise:
youll have to modify 3 parts of the source within spark.java to modify the home directory of spark
Now, I don’t have any programming knowledge… where do these lines set “**C:\Documents and Settings\User\Spark”? **in my case I wanted to replace “Spark” in my customed name like **C:\Documents and Settings\User\mysparkname" **can you set this one? also set one with C:\temp folder and I will build a installer for you. Spark.java.zip (4814 Bytes)