Jump to content

Java System.setProperty help. Need to set classpath and appdata variable

- - - - -

  • Please log in to reply
No replies to this topic

#1
liamzebedee

liamzebedee

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
I'm designing a portable Minecraft launcher with multiple version launching support and need to set the classpath and appdata variable. I know that you can set the classpath using

System.setProperty(

             "java.class.path",

             "./");
however I'm not sure will work to set the path to local.

My second issue is finding the java code equivalent of batch
APPDATA=%CD%\minecraft
. I have looked into exec() but don't know if this will work on MAC/LINUX.

I'm developing on Console, not Swing




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users